コード例 #1
0
 public static int createFileReadResponse(
     FlatBufferBuilder builder, boolean success, int error_msg, long bytes_read, int data) {
   builder.startObject(4);
   FileReadResponse.addBytesRead(builder, bytes_read);
   FileReadResponse.addData(builder, data);
   FileReadResponse.addErrorMsg(builder, error_msg);
   FileReadResponse.addSuccess(builder, success);
   return FileReadResponse.endFileReadResponse(builder);
 }
コード例 #2
0
 public static FileReadResponse getRootAsFileReadResponse(ByteBuffer _bb, FileReadResponse obj) {
   _bb.order(ByteOrder.LITTLE_ENDIAN);
   return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb));
 }