@Override
        public Buffer writerIndex(int writerIndex) {
            buffer.writerIndex(writerIndex);
            return this;
        }
An incomplete implementation that allows testing
gremlin-util/src/test/java/org/apache/tinkerpop/gremlin/util/ser/NettyBufferFactoryTest.java