$allocate static method

Pointer<Jp2kEncodeResult> $allocate(
  1. Allocator $allocator, {
  2. required Pointer<Uint8> data,
  3. required int length,
  4. required Pointer<Char> error,
})

Implementation

static ffi.Pointer<Jp2kEncodeResult> $allocate(
  ffi.Allocator $allocator, {
  required ffi.Pointer<ffi.Uint8> data,
  required int length,
  required ffi.Pointer<ffi.Char> error,
}) => $allocator<Jp2kEncodeResult>()
  ..ref.data = data
  ..ref.length = length
  ..ref.error = error;