org.apache.tinkerpop.gremlin.structure.io

## Interface BufferFactory<T>

-     public interface BufferFactory<T>

  Represents a factory to create `Buffer` instances from `T` instances.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Buffer` | `create(T value)` Creates a new `Buffer` given a `T` instance.
    `Buffer` | `wrap(ByteBuffer value)` Wraps a NIO buffer.

- - ### Method Detail

    - #### create

          Buffer create(T value)

      Creates a new `Buffer` given a `T` instance.
      Parameters:
        `value` -
      Returns:

    - #### wrap

          Buffer wrap(ByteBuffer value)

      Wraps a NIO buffer.

Copyright © 2013–2022 Apache Software Foundation. All rights reserved.