Class CodedOutputStream.HeapNioEncoder

Enclosing class:
CodedOutputStream

private static final class CodedOutputStream.HeapNioEncoder extends CodedOutputStream.ArrayEncoder
A CodedOutputStream that writes directly to a heap ByteBuffer. Writes are done directly to the underlying array. The buffer position is only updated after a flush.
  • Field Details

    • byteBuffer

      private final ByteBuffer byteBuffer
    • initialPosition

      private int initialPosition
  • Constructor Details

    • HeapNioEncoder

      HeapNioEncoder(ByteBuffer byteBuffer)
  • Method Details