bufferGetCharPtr method

Pointer<Uint32> bufferGetCharPtr(
  1. OptimizedBufferHandle buffer
)

Returns the native encoded-character array.

Implementation

Pointer<Uint32> bufferGetCharPtr(OptimizedBufferHandle buffer) =>
    _guard('Failed to access buffer chars', () {
      final pointer = _native.bufferGetCharPtr(buffer.value);
      if (pointer == nullptr) throw StateError('returned nullptr');
      return pointer;
    });