@Override
        public PaddedLong deserialize(final ByteBuffer byteBuffer) {

            // Consume padding
            for (int i = 0; i < padding; i++) {
                byteBuffer.get();
            }
            final long val = byteBuffer.getLong();

            byteBuffer.flip();
            return new PaddedLong(padding, val);
        }
Borrowed from org.lmdbjava.ByteBufferProxy for testing
stroom-lmdb/src/test/java/stroom/lmdb/TestLmdbJavaComparator.java