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 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 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 createPathSELinuxGetLabelRequest(
     FlatBufferBuilder builder, int pathOffset, boolean follow_symlinks) {
   builder.startObject(2);
   PathSELinuxGetLabelRequest.addPath(builder, pathOffset);
   PathSELinuxGetLabelRequest.addFollowSymlinks(builder, follow_symlinks);
   return PathSELinuxGetLabelRequest.endPathSELinuxGetLabelRequest(builder);
 }
Пример #5
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 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 startFileCloseResponse(FlatBufferBuilder builder) {
   builder.startObject(2);
 }
 public static void startPathChmodResponse(FlatBufferBuilder builder) {
   builder.startObject(2);
 }
 public static void startPathSELinuxGetLabelRequest(FlatBufferBuilder builder) {
   builder.startObject(2);
 }
Пример #11
0
 public static void startStat(FlatBufferBuilder builder) {
   builder.startObject(3);
 }
Пример #12
0
 public static void startTableInFirstNS(FlatBufferBuilder builder) {
   builder.startObject(3);
 }
 public static void startMonster(FlatBufferBuilder builder) {
   builder.startObject(9);
 }
 public static void startSetKernelRequest(FlatBufferBuilder builder) {
   builder.startObject(2);
 }
 public static void startPathSELinuxGetLabelResponse(FlatBufferBuilder builder) {
   builder.startObject(4);
 }
 public static int createMbGetInstalledRomsResponse(FlatBufferBuilder builder, int romsOffset) {
   builder.startObject(1);
   MbGetInstalledRomsResponse.addRoms(builder, romsOffset);
   return MbGetInstalledRomsResponse.endMbGetInstalledRomsResponse(builder);
 }
 public static void startMbGetInstalledRomsResponse(FlatBufferBuilder builder) {
   builder.startObject(1);
 }
Пример #18
0
 public static void startFileReadResponse(FlatBufferBuilder builder) {
   builder.startObject(4);
 }