$allocate static method

Pointer<EncodeResult> $allocate(
  1. Allocator $allocator, {
  2. required bool isValid,
  3. required int format,
  4. required Pointer<Uint8> data,
  5. required int length,
  6. required Pointer<Char> error,
  7. required int width,
  8. required int height,
})

Implementation

static ffi.Pointer<EncodeResult> $allocate(
  ffi.Allocator $allocator, {
  required bool isValid,
  required int format,
  required ffi.Pointer<ffi.Uint8> data,
  required int length,
  required ffi.Pointer<ffi.Char> error,
  required int width,
  required int height,
}) => $allocator<EncodeResult>()
  ..ref.isValid = isValid
  ..ref.format = format
  ..ref.data = data
  ..ref.length = length
  ..ref.error = error
  ..ref.width = width
  ..ref.height = height;