$allocate static method

Pointer<timespec> $allocate(
  1. Allocator $allocator, {
  2. required int tv_sec,
  3. required int tv_nsec,
})

Implementation

static ffi.Pointer<timespec> $allocate(
ffi.Allocator $allocator, {
required int tv_sec,
required int tv_nsec,
}) => $allocator<timespec>()
..ref.tv_sec = tv_sec
..ref.tv_nsec = tv_nsec;