$allocate static method

Pointer<hostent> $allocate(
  1. Allocator $allocator, {
  2. required Pointer<Char> h_name,
  3. required Pointer<Pointer<Char>> h_aliases,
  4. required int h_addrtype,
  5. required int h_length,
  6. required Pointer<Pointer<Char>> h_addr_list,
})

Implementation

static ffi.Pointer<hostent> $allocate(
ffi.Allocator $allocator, {
required ffi.Pointer<ffi.Char> h_name,
required ffi.Pointer<ffi.Pointer<ffi.Char>> h_aliases,
required int h_addrtype,
required int h_length,
required ffi.Pointer<ffi.Pointer<ffi.Char>> h_addr_list,
}) => $allocator<hostent>()
..ref.h_name = h_name
..ref.h_aliases = h_aliases
..ref.h_addrtype = h_addrtype
..ref.h_length = h_length
..ref.h_addr_list = h_addr_list;