newBufferHolder abstract method

CodecBufferHolder<P, CB> newBufferHolder(
  1. int bufferLength
)

Subclass Responsibility: Return a concrete CodecBufferHolder.

Subclasses will typically choose to return a NativeCodecBufferHolder or a DartCodecBufferHolder depending on if the buffer is FFI-based or pure Dart heap-based.

Implementation

CodecBufferHolder<P, CB> newBufferHolder(int bufferLength);