NativeBufferUtils constructor

NativeBufferUtils(
  1. DynamicLibrary lib
)

Implementation

NativeBufferUtils(DynamicLibrary lib) {
  createBuffer = lib
      .lookupFunction<CreateBufferNative, CreateBuffer>('ffi_create_buffer');

  freeBuffer =
      lib.lookupFunction<FreeBufferNative, FreeBuffer>('ffi_free_buffer');
}