@Override
    protected BigInteger readValue(final Buffer buffer, final GraphBinaryReader context) throws IOException {
        final byte[] bigIntBytes = new byte[buffer.readInt()];
        buffer.readBytes(bigIntBytes);
        return new BigInteger(bigIntBytes);
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/types/BigIntegerSerializer.java