Пример #1
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;
 }
Пример #2
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;
 }
Пример #3
0
 public Object read(final Object obj1, final BInput bin1, final long version) throws BException {
   final BInputJson bin = (BInputJson) bin1;
   final BJsonObject js = bin.currentObject;
   final Set<String> keys = js.keys();
   final HashMap<java.lang.Double, java.lang.Byte> map =
       new HashMap<java.lang.Double, java.lang.Byte>(keys.size());
   bin.onObjectCreated(map);
   for (String keyName : keys) {
     java.lang.Double key =
         keyName != null && keyName.length() != 0 ? Double.parseDouble(keyName) : 0.0;
     final java.lang.Byte value = js.getByte(keyName);
     map.put(key, value);
   }
   return map;
 }