Refer to http://www.phoenixframework.org/docs/installation for installing Phoenix and dependencies.
mix phoenix.new hello_phoenix
# ...
Fetch and install dependencies? [Yn] y
| #include <stdio.h> | |
| #include <string.h> | |
| // serializing macros | |
| #define serialize1(name, t1) void name(char* buffer, t1 a) { \ | |
| memcpy(buffer, &a, sizeof(t1)); } | |
| #define serialize2(name, t1,t2) void name(char* buffer, t1 a, t2 b) { \ | |
| memcpy(buffer, &a, sizeof(t1)); \ | |
| memcpy(buffer + sizeof(t1), &b, sizeof(t1)); } |
Refer to http://www.phoenixframework.org/docs/installation for installing Phoenix and dependencies.
mix phoenix.new hello_phoenix
# ...
Fetch and install dependencies? [Yn] y
| /* | |
| * zipWith(...arrays, iteratee, [thisArg]) => array | |
| * | |
| * iteratee receives an element from each array as an argument | |
| */ | |
| function zipWith() { | |
| // Argument count | |
| var argc = arguments.length; |
| type MapToIterable<T> = { [K in keyof T]: Iterable<T[K]> }; | |
| type Tuple = readonly unknown[]; | |
| export function from<T>(it: Iterable<T>) { | |
| return new DelegatingIterable<T>(it); | |
| } | |
| export function repeat<T>(value: T) { | |
| return new RepeatIterable(value); | |
| } |