$allocate static method

Pointer<servent> $allocate(
  1. Allocator $allocator, {
  2. required Pointer<Char> s_name,
  3. required Pointer<Pointer<Char>> s_aliases,
  4. required int s_port,
  5. required Pointer<Char> s_proto,
})

Implementation

static ffi.Pointer<servent> $allocate(
ffi.Allocator $allocator, {
required ffi.Pointer<ffi.Char> s_name,
required ffi.Pointer<ffi.Pointer<ffi.Char>> s_aliases,
required int s_port,
required ffi.Pointer<ffi.Char> s_proto,
}) => $allocator<servent>()
..ref.s_name = s_name
..ref.s_aliases = s_aliases
..ref.s_port = s_port
..ref.s_proto = s_proto;