Ejemplo n.º 1
0
  @Override
  public Object read(final Object obj1, final BInput bin1, final long version) throws BException {
    final BInputBin bin = (BInputBin) bin1;
    final AllTypesC obj = (AllTypesC) (obj1 != null ? obj1 : bin.onObjectCreated(new AllTypesC()));

    final BBufferBin bbuf = bin.bbuf;

    return obj;
  }
Ejemplo n.º 2
0
  @Override
  public Object read(final Object obj1, final BInput bin1, final long version) throws BException {
    final BInputBin bin = (BInputBin) bin1;
    final BRequest_RemoteEnums_getPlanet obj =
        (BRequest_RemoteEnums_getPlanet)
            (obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_RemoteEnums_getPlanet()));

    return obj;
  }
Ejemplo n.º 3
0
  @Override
  public Object read(final Object obj1, final BInput bin1, final long version) throws BException {
    final BInputBin bin = (BInputBin) bin1;
    final Evolve2 obj = (Evolve2) (obj1 != null ? obj1 : bin.onObjectCreated(new Evolve2()));

    final BBufferBin bbuf = bin.bbuf;

    obj.n1 = bbuf.getInt();

    return obj;
  }
Ejemplo n.º 4
0
 public Object read(final Object obj1, final BInput bin1, final long version) throws BException {
   final BInputBin bin = (BInputBin) bin1;
   final BBufferBin bbuf = bin.bbuf;
   final HashMap<java.lang.Integer, byte[]> map = new HashMap<java.lang.Integer, byte[]>();
   bin.onObjectCreated(map);
   int n = bbuf.getLength();
   for (int i0 = 0; i0 < n; i0++) {
     java.lang.Integer key = bbuf.getInt();
     byte[] value = (byte[]) bin.readObj(false, byps.test.api.BSerializer_1374008726.instance);
     map.put(key, value);
   }
   return map;
 }
Ejemplo n.º 5
0
  @Override
  public Object read(final Object obj1, final BInput bin1, final long version) throws BException {
    final BInputBin bin = (BInputBin) bin1;
    final BResult_1347703734 obj =
        (BResult_1347703734) (obj1 != null ? obj1 : bin.onObjectCreated(new BResult_1347703734()));

    final BBufferBin bbuf = bin.bbuf;

    obj.result =
        (java.util.Map<java.lang.Integer, java.lang.Integer>)
            bin.readObj(false, byps.test.api.BSerializer_1347703734.instance);

    return obj;
  }
Ejemplo n.º 6
0
 public Object read(final Object obj1, final BInput bin1, final long version) throws BException {
   final BInputBin bin = (BInputBin) bin1;
   final BBufferBin bbuf = bin.bbuf;
   final int n = bbuf.getLength();
   final ArrayList<byps.test.api.inl.Point2D> arr = new ArrayList<byps.test.api.inl.Point2D>(n);
   bin.onObjectCreated(arr);
   for (int i0 = 0; i0 < n; i0++) {
     byps.test.api.inl.Point2D obj =
         (byps.test.api.inl.Point2D)
             bin.readObj(false, byps.test.api.inl.BSerializer_1835035436.instance);
     arr.add(obj);
   }
   return arr;
 }
Ejemplo n.º 7
0
 public Object read(final Object obj1, final BInput bin1, final long version) throws BException {
   final BInputBin bin = (BInputBin) bin1;
   final BBufferBin bbuf = bin.bbuf;
   final HashMap<java.lang.Integer, byps.test.api.prim.PrimitiveTypes> map =
       new HashMap<java.lang.Integer, byps.test.api.prim.PrimitiveTypes>();
   bin.onObjectCreated(map);
   int n = bbuf.getLength();
   for (int i0 = 0; i0 < n; i0++) {
     java.lang.Integer key = bbuf.getInt();
     byps.test.api.prim.PrimitiveTypes value =
         (byps.test.api.prim.PrimitiveTypes) bin.readObj(false, null);
     map.put(key, value);
   }
   return map;
 }
Ejemplo n.º 8
0
  @Override
  public Object read(final Object obj1, final BInput bin1, final long version) throws BException {
    final BInputBin bin = (BInputBin) bin1;
    final BRequest_RemoteSetTypes_setFloat1 obj =
        (BRequest_RemoteSetTypes_setFloat1)
            (obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_RemoteSetTypes_setFloat1()));

    final BBufferBin bbuf = bin.bbuf;

    obj.float1 =
        (java.util.Set<java.lang.Float>)
            bin.readObj(false, byps.test.api.BSerializer_1898022288.instance);

    return obj;
  }
Ejemplo n.º 9
0
  @Override
  public Object read(final Object obj1, final BInput bin1, final long version) throws BException {
    final BInputBin bin = (BInputBin) bin1;
    final BBufferBin bbuf = bin.bbuf;

    // lengths
    final int n0 = bbuf.getLength();

    // create array
    final short[] arr = new short[n0];
    bin.onObjectCreated(arr);

    // read
    final short[] a0 = arr;
    for (int i0 = 0; i0 < n0; i0++) {
      a0[i0] = bbuf.getShort();
    }

    return arr;
  }