The OpenD Programming Language

ionPut

Examples

ubyte[19] data = void;
assert(ionPut(data.ptr, -16) == 2);
assert(data[0] == 0x31);
assert(data[1] == 0x10);

assert(ionPut(data.ptr, 258) == 3);
assert(data[0] == 0x22);
assert(data[1] == 0x01);
assert(data[2] == 0x02);

Meta