コード例 #1
0
 public static int createSetKernelRequest(
     FlatBufferBuilder builder, int rom_id, int boot_blockdev) {
   builder.startObject(2);
   SetKernelRequest.addBootBlockdev(builder, boot_blockdev);
   SetKernelRequest.addRomId(builder, rom_id);
   return SetKernelRequest.endSetKernelRequest(builder);
 }
コード例 #2
0
 public static int createPathSELinuxGetLabelRequest(
     FlatBufferBuilder builder, int pathOffset, boolean follow_symlinks) {
   builder.startObject(2);
   PathSELinuxGetLabelRequest.addPath(builder, pathOffset);
   PathSELinuxGetLabelRequest.addFollowSymlinks(builder, follow_symlinks);
   return PathSELinuxGetLabelRequest.endPathSELinuxGetLabelRequest(builder);
 }
コード例 #3
0
ファイル: Stat.java プロジェクト: CadeLaRen/flatbuffers
 public static int createStat(FlatBufferBuilder builder, int idOffset, long val, int count) {
   builder.startObject(3);
   Stat.addVal(builder, val);
   Stat.addId(builder, idOffset);
   Stat.addCount(builder, count);
   return Stat.endStat(builder);
 }
コード例 #4
0
 public static int createPathChmodResponse(
     FlatBufferBuilder builder, boolean success, int error_msg) {
   builder.startObject(2);
   PathChmodResponse.addErrorMsg(builder, error_msg);
   PathChmodResponse.addSuccess(builder, success);
   return PathChmodResponse.endPathChmodResponse(builder);
 }
コード例 #5
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);
 }
コード例 #6
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);
 }
コード例 #7
0
 public static int createPathSELinuxGetLabelResponse(
     FlatBufferBuilder builder,
     boolean success,
     int error_msgOffset,
     int labelOffset,
     int errorOffset) {
   builder.startObject(4);
   PathSELinuxGetLabelResponse.addError(builder, errorOffset);
   PathSELinuxGetLabelResponse.addLabel(builder, labelOffset);
   PathSELinuxGetLabelResponse.addErrorMsg(builder, error_msgOffset);
   PathSELinuxGetLabelResponse.addSuccess(builder, success);
   return PathSELinuxGetLabelResponse.endPathSELinuxGetLabelResponse(builder);
 }
コード例 #8
0
 public static void startPathChmodResponse(FlatBufferBuilder builder) {
   builder.startObject(2);
 }
コード例 #9
0
 public static void startRomsVector(FlatBufferBuilder builder, int numElems) {
   builder.startVector(4, numElems, 4);
 }
コード例 #10
0
 public static void addRoms(FlatBufferBuilder builder, int romsOffset) {
   builder.addOffset(0, romsOffset, 0);
 }
コード例 #11
0
 public static int endTableInFirstNS(FlatBufferBuilder builder) {
   int o = builder.endObject();
   return o;
 }
コード例 #12
0
 public static void startFileCloseResponse(FlatBufferBuilder builder) {
   builder.startObject(2);
 }
コード例 #13
0
 public static void startDataVector(FlatBufferBuilder builder, int numElems) {
   builder.startVector(1, numElems, 1);
 }
コード例 #14
0
 public static int createDataVector(FlatBufferBuilder builder, byte[] data) {
   builder.startVector(1, data.length, 1);
   for (int i = data.length - 1; i >= 0; i--) builder.addByte(data[i]);
   return builder.endVector();
 }
コード例 #15
0
 public static void addData(FlatBufferBuilder builder, int dataOffset) {
   builder.addOffset(3, dataOffset, 0);
 }
コード例 #16
0
 public static void addBytesRead(FlatBufferBuilder builder, long bytesRead) {
   builder.addLong(2, bytesRead, 0);
 }
コード例 #17
0
 public static void startFileReadResponse(FlatBufferBuilder builder) {
   builder.startObject(4);
 }
コード例 #18
0
 public static int endPathChmodResponse(FlatBufferBuilder builder) {
   int o = builder.endObject();
   return o;
 }
コード例 #19
0
 public static void addErrorMsg(FlatBufferBuilder builder, int errorMsgOffset) {
   builder.addOffset(1, errorMsgOffset, 0);
 }
コード例 #20
0
 public static int createMbGetInstalledRomsResponse(FlatBufferBuilder builder, int romsOffset) {
   builder.startObject(1);
   MbGetInstalledRomsResponse.addRoms(builder, romsOffset);
   return MbGetInstalledRomsResponse.endMbGetInstalledRomsResponse(builder);
 }
コード例 #21
0
 public static void addSuccess(FlatBufferBuilder builder, boolean success) {
   builder.addBoolean(0, success, false);
 }
コード例 #22
0
 public static void addFooStruct(FlatBufferBuilder builder, int fooStructOffset) {
   builder.addStruct(2, fooStructOffset, 0);
 }
コード例 #23
0
 public static int endFileCloseResponse(FlatBufferBuilder builder) {
   int o = builder.endObject();
   return o;
 }
コード例 #24
0
 public static void startPathSELinuxGetLabelRequest(FlatBufferBuilder builder) {
   builder.startObject(2);
 }
コード例 #25
0
 public static void startMbGetInstalledRomsResponse(FlatBufferBuilder builder) {
   builder.startObject(1);
 }
コード例 #26
0
 public static void addPath(FlatBufferBuilder builder, int pathOffset) {
   builder.addOffset(0, pathOffset, 0);
 }
コード例 #27
0
 public static int createRomsVector(FlatBufferBuilder builder, int[] data) {
   builder.startVector(4, data.length, 4);
   for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]);
   return builder.endVector();
 }
コード例 #28
0
 public static void addFollowSymlinks(FlatBufferBuilder builder, boolean followSymlinks) {
   builder.addBoolean(1, followSymlinks, false);
 }
コード例 #29
0
 public static int endMbGetInstalledRomsResponse(FlatBufferBuilder builder) {
   int o = builder.endObject();
   return o;
 }
コード例 #30
0
 public static int endPathSELinuxGetLabelRequest(FlatBufferBuilder builder) {
   int o = builder.endObject();
   return o;
 }