The OpenD Programming Language

ionPut

Examples

import mir.lob;

ubyte[20] data;

ubyte[] result = [0x95, 'v', 'a', 'l', 'u', 'e'];
auto str = Clob("value");
assert(data[0 .. ionPut(data.ptr, str)] == result);

result = [ubyte(0x9E), ubyte(0x90)] ~ cast(ubyte[])"hexadecimal23456";
str = Clob("hexadecimal23456");
assert(data[0 .. ionPut(data.ptr, str)] == result);

Meta