public void write(Encoder encoder, byte[] value) throws Exception { encoder.writeSmallInt(value.length); encoder.writeBytes(value); }