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);
 }
 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);
 }
Exemplo n.º 3
0
 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);
 }
 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);
 }
 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);
 }
 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);
 }
 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);
 }
 public static void startPathChmodResponse(FlatBufferBuilder builder) {
   builder.startObject(2);
 }
 public static void startRomsVector(FlatBufferBuilder builder, int numElems) {
   builder.startVector(4, numElems, 4);
 }
 public static void addRoms(FlatBufferBuilder builder, int romsOffset) {
   builder.addOffset(0, romsOffset, 0);
 }
Exemplo n.º 11
0
 public static int endTableInFirstNS(FlatBufferBuilder builder) {
   int o = builder.endObject();
   return o;
 }
Exemplo n.º 12
0
 public static void startFileCloseResponse(FlatBufferBuilder builder) {
   builder.startObject(2);
 }
Exemplo n.º 13
0
 public static void startDataVector(FlatBufferBuilder builder, int numElems) {
   builder.startVector(1, numElems, 1);
 }
Exemplo n.º 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();
 }
Exemplo n.º 15
0
 public static void addData(FlatBufferBuilder builder, int dataOffset) {
   builder.addOffset(3, dataOffset, 0);
 }
Exemplo n.º 16
0
 public static void addBytesRead(FlatBufferBuilder builder, long bytesRead) {
   builder.addLong(2, bytesRead, 0);
 }
Exemplo n.º 17
0
 public static void startFileReadResponse(FlatBufferBuilder builder) {
   builder.startObject(4);
 }
Exemplo n.º 18
0
 public static int endPathChmodResponse(FlatBufferBuilder builder) {
   int o = builder.endObject();
   return o;
 }
Exemplo n.º 19
0
 public static void addErrorMsg(FlatBufferBuilder builder, int errorMsgOffset) {
   builder.addOffset(1, errorMsgOffset, 0);
 }
 public static int createMbGetInstalledRomsResponse(FlatBufferBuilder builder, int romsOffset) {
   builder.startObject(1);
   MbGetInstalledRomsResponse.addRoms(builder, romsOffset);
   return MbGetInstalledRomsResponse.endMbGetInstalledRomsResponse(builder);
 }
Exemplo n.º 21
0
 public static void addSuccess(FlatBufferBuilder builder, boolean success) {
   builder.addBoolean(0, success, false);
 }
Exemplo n.º 22
0
 public static void addFooStruct(FlatBufferBuilder builder, int fooStructOffset) {
   builder.addStruct(2, fooStructOffset, 0);
 }
Exemplo n.º 23
0
 public static int endFileCloseResponse(FlatBufferBuilder builder) {
   int o = builder.endObject();
   return o;
 }
 public static void startPathSELinuxGetLabelRequest(FlatBufferBuilder builder) {
   builder.startObject(2);
 }
 public static void startMbGetInstalledRomsResponse(FlatBufferBuilder builder) {
   builder.startObject(1);
 }
 public static void addPath(FlatBufferBuilder builder, int pathOffset) {
   builder.addOffset(0, pathOffset, 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();
 }
 public static void addFollowSymlinks(FlatBufferBuilder builder, boolean followSymlinks) {
   builder.addBoolean(1, followSymlinks, false);
 }
 public static int endMbGetInstalledRomsResponse(FlatBufferBuilder builder) {
   int o = builder.endObject();
   return o;
 }
 public static int endPathSELinuxGetLabelRequest(FlatBufferBuilder builder) {
   int o = builder.endObject();
   return o;
 }