public T decode(ByteBuf buffer) {
buffer.order(ByteOrder.LITTLE_ENDIAN);
ByteBuf expandingBytes = Unpooled.buffer(buffer.writerIndex());
byte b;
while ((b = buffer.readByte()) != 0) {
expandingBytes.writeByte(b);
}
assert buffer.readByte() == 0; // Second null byte
String value = new String(expandingBytes.array(), CharsetUtil.US_ASCII);
return createMessage(value);