Package com.netflix.zeno.fastblob.record

Examples of com.netflix.zeno.fastblob.record.ByteDataBuffer.reset()


                        if(beatMe != null) {
                            Assert.assertEquals(ordinal, beatMe);
                        }

                        buf.reset();
                    }

                }
            });
View Full Code Here


        for(Map.Entry<Integer, Integer> entry : controlMap.entrySet()) {
            Integer value = entry.getKey();
            Integer expected = entry.getValue();

            buf.reset();
            VarInt.writeVLong(buf, value.longValue());

            int actual = map.getOrAssignOrdinal(buf);

            Assert.assertEquals(actual, expected.intValue());
View Full Code Here

                serializationRecord.writeDataTo(deserializedRecordBuffer);

                int previousOrdinal = map.get(deserializedRecordBuffer);

                serializationRecord.reset();
                deserializedRecordBuffer.reset();

                if(previousOrdinal != -1 && !frameworkSerializer.isSerializationIntegrityFlawed()) {
                    typeDeserializationState.copyPrevious(currentOrdinal, previousOrdinal);
                    numObjectsReused++;
                } else {
View Full Code Here

            T obj = objects.get(i);
            if(obj != null) {
                serializer.serialize(obj, rec);
                rec.writeDataTo(scratch);
                ordinalMap.put(scratch, i);
                scratch.reset();
                rec.reset();
            }
        }

        previousObjects = objects;
View Full Code Here

        ByteDataBuffer scratch = scratch();
        rec.writeDataTo(scratch);

        int ordinal = addData(scratch, imageMembershipsFlags);

        scratch.reset();
        rec.reset();

        if (objectOrdinalMap != null) {
            objectOrdinalMap.put(data, ordinal, imageMembershipsFlags);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.