import mir.lob; ubyte[20] data; ubyte[] result = [0xA5, 'v', 'a', 'l', 'u', 'e']; auto payload = Blob(cast(ubyte[])"value"); assert(data[0 .. ionPut(data.ptr, payload)] == result); result = [ubyte(0xAE), ubyte(0x90)] ~ cast(ubyte[])"hexadecimal23456"; payload = Blob(cast(ubyte[])"hexadecimal23456"); assert(data[0 .. ionPut(data.ptr, payload)] == result);