use of com.cinchapi.concourse.thrift.Type in project concourse by cinchapi.
the class TObjectResultDataset method deserializeValue.
@Override
protected TObject deserializeValue(Buffer buffer) {
Type type = Type.values()[buffer.readByte()];
int length = buffer.readInt();
byte[] data = new byte[length];
buffer.read(data);
return new TObject(ByteBuffer.wrap(data), type);
}
Aggregations