$allocate static method

Pointer<EncodeBarcodeParams> $allocate(
  1. Allocator $allocator, {
  2. required Pointer<Char> contents,
  3. required int width,
  4. required int height,
  5. required int format,
  6. required int margin,
  7. required int eccLevel,
})

Implementation

static ffi.Pointer<EncodeBarcodeParams> $allocate(
  ffi.Allocator $allocator, {
  required ffi.Pointer<ffi.Char> contents,
  required int width,
  required int height,
  required int format,
  required int margin,
  required int eccLevel,
}) => $allocator<EncodeBarcodeParams>()
  ..ref.contents = contents
  ..ref.width = width
  ..ref.height = height
  ..ref.format = format
  ..ref.margin = margin
  ..ref.eccLevel = eccLevel;