ByteDataBuffer fromDataBuffer = new ByteDataBuffer();
VarInt.writeVInt(fromDataBuffer, 100);
VarInt.writeVInt(fromDataBuffer, (int)buf.length());
fromDataBuffer.copyFrom(buf);
FastBlobDeserializationRecord rec = new FastBlobDeserializationRecord(schema, fromDataBuffer.getUnderlyingArray());
rec.position(0);
ByteDataBuffer toDataBuffer = new ByteDataBuffer();