コード例 #1
0
 public static int createFileCloseResponse(
     FlatBufferBuilder builder, boolean success, int error_msg) {
   builder.startObject(2);
   FileCloseResponse.addErrorMsg(builder, error_msg);
   FileCloseResponse.addSuccess(builder, success);
   return FileCloseResponse.endFileCloseResponse(builder);
 }
コード例 #2
0
 public static FileCloseResponse getRootAsFileCloseResponse(
     ByteBuffer _bb, FileCloseResponse obj) {
   _bb.order(ByteOrder.LITTLE_ENDIAN);
   return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb));
 }