public void write(Object obj1, BOutput bout1, final long version) throws BException { BOutputBin bout = (BOutputBin) bout1; BBufferBin bbuf = bout.bbuf; java.util.List<byps.test.api.inl.Point2D> arr = (java.util.List<byps.test.api.inl.Point2D>) obj1; int n = arr.size(); bbuf.putLength(n); for (byps.test.api.inl.Point2D obj : arr) { // checkpoint byps.gen.j.PrintContext:313 bout.writeObj(obj, false, byps.test.api.inl.BSerializer_1835035436.instance); } }
public void write(Object obj1, BOutput bout1, final long version) throws BException { BOutputBin bout = (BOutputBin) bout1; BBufferBin bbuf = bout.bbuf; Map<java.lang.Integer, byte[]> map = (Map<java.lang.Integer, byte[]>) obj1; int n = map.size(); bbuf.putLength(n); for (Map.Entry<java.lang.Integer, byte[]> obj : map.entrySet()) { // checkpoint byps.gen.j.PrintContext:332 bbuf.putInt(obj.getKey() != null ? (Integer) obj.getKey() : 0); // checkpoint byps.gen.j.PrintContext:313 bout.writeObj(obj.getValue(), false, byps.test.api.BSerializer_1374008726.instance); } }
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; }
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; }
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; }