private static TBinaryProtocol generateReadProtocol(final ByteBuffer buffer)
      throws TTransportException {
    TTransport transport = generateTByteBuffer(buffer);
    return new TBinaryProtocol(transport);
  }
Utils for serialize and deserialize all the data struct defined by thrift-commons
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/ThriftCommonsSerDeUtils.java