$allocate static method

Pointer<msghdr> $allocate(
  1. Allocator $allocator, {
  2. required Pointer<Void> msg_name,
  3. required int msg_namelen,
  4. required Pointer<iovec> msg_iov,
  5. required int msg_iovlen,
  6. required Pointer<Void> msg_control,
  7. required int msg_controllen,
  8. required int msg_flags,
})

Implementation

static ffi.Pointer<msghdr> $allocate(
ffi.Allocator $allocator, {
required ffi.Pointer<ffi.Void> msg_name,
required int msg_namelen,
required ffi.Pointer<iovec> msg_iov,
required int msg_iovlen,
required ffi.Pointer<ffi.Void> msg_control,
required int msg_controllen,
required int msg_flags,
}) => $allocator<msghdr>()
..ref.msg_name = msg_name
..ref.msg_namelen = msg_namelen
..ref.msg_iov = msg_iov
..ref.msg_iovlen = msg_iovlen
..ref.msg_control = msg_control
..ref.msg_controllen = msg_controllen
..ref.msg_flags = msg_flags;