$allocate static method

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

Implementation

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