$allocate static method

Pointer<sockproto> $allocate(
  1. Allocator $allocator, {
  2. required int sp_family,
  3. required int sp_protocol,
})

Implementation

static ffi.Pointer<sockproto> $allocate(
ffi.Allocator $allocator, {
required int sp_family,
required int sp_protocol,
}) => $allocator<sockproto>()
..ref.sp_family = sp_family
..ref.sp_protocol = sp_protocol;