The OpenD Programming Language

ionPut

Examples

ubyte[5] data;
assert(ionPut(data.ptr, -16f) == 5);
assert(data[0] == 0x44);
assert(data[1] == 0xC1);
assert(data[2] == 0x80);
assert(data[3] == 0x00);
assert(data[4] == 0x00);

assert(ionPut(data.ptr, 0f) == 1);
assert(data[0] == 0x40);

assert(ionPut(data.ptr, -0f) == 5);
assert(data[0] == 0x44);
assert(data[1] == 0x80);
assert(data[2] == 0x00);
assert(data[3] == 0x00);
assert(data[4] == 0x00);

Meta