Ejemplo n.º 1
0
 @Override
 public void internalWrite(final Object obj1, final BOutputJson bout, final BBufferJson bbuf)
     throws BException {
   final BRequest_FileSystemService_readAllText obj =
       (BRequest_FileSystemService_readAllText) obj1;
   bbuf.putString("path", obj.path);
 }
Ejemplo n.º 2
0
 // checkpoint byps.gen.j.GenSerMapJson:80
 @Override
 protected void internalWriteKeyValue(
     final BOutputJson bout, final BBufferJson bbuf, final Object key, final Object value)
     throws BException {
   final String keyName = key != null ? key.toString() : "";
   // checkpoint byps.gen.j.PrintContext:332
   bbuf.putByte(keyName, value != null ? (Byte) value : ((byte) 0));
 }
Ejemplo n.º 3
0
  @Override
  public void internalWrite(Object obj1, final BOutputJson bout, BBufferJson bbuf)
      throws BException {
    final byps.test.api.prim.PrimitiveTypes[][] arr = (byps.test.api.prim.PrimitiveTypes[][]) obj1;

    // lengths
    final int n1 = arr.length;
    final int n0 = n1 != 0 ? arr[0].length : 0;

    // write
    final byps.test.api.prim.PrimitiveTypes[][] a1 = arr;
    bbuf.beginArray();
    for (int i1 = 0; i1 < n1; i1++) {
      final byps.test.api.prim.PrimitiveTypes[] a0 = a1[i1];
      bbuf.beginArray();
      for (int i0 = 0; i0 < n0; i0++) {
        // checkpoint byps.gen.j.PrintContext:313
        bout.writeObj(null, a0[i0], false, null);
      }
      bbuf.endArray();
    }
    bbuf.endArray();
  }
Ejemplo n.º 4
0
 @Override
 public void internalWrite(final Object obj1, final BOutputJson bout, final BBufferJson bbuf)
     throws BException {
   final BRequest_RemotePrimitiveTypes_setByte obj = (BRequest_RemotePrimitiveTypes_setByte) obj1;
   bbuf.putByte("v", obj.v);
 }
Ejemplo n.º 5
0
 @Override
 public void internalWrite(final Object obj1, final BOutputJson bout, final BBufferJson bbuf)
     throws BException {
   final FindOptions obj = (FindOptions) obj1;
   bbuf.putString("reserved", obj.reserved);
 }