101102103104105106107108109110111
while (bufferBytes.remaining() > 0) { final long entrySize = bufferBytes.readStopBit(); final long position = bufferBytes.position(); final long limit = bufferBytes.limit(); bufferBytes.limit(position + entrySize); externalizable.readExternalEntry(bufferBytes);
107108109110111112113114115116117
final long limit = bufferBytes.limit(); bufferBytes.limit(position + entrySize); externalizable.readExternalEntry(bufferBytes); bufferBytes.position(position); bufferBytes.limit(limit); // skip onto the next entry bufferBytes.skip(entrySize);