$allocate static method
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;