timespec

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyToCStruct added in v0.8.0

func CopyToCStruct(ts Timespec, cts CTimespecPtr)

CopyToCStruct copies the time values from a Timespec to a previously allocated C `struct timespec`. Due to restrictions on Cgo the C pointer must be passed via the CTimespecPtr wrapper.

Types

type CTimespecPtr

type CTimespecPtr unsafe.Pointer

CTimespecPtr is an unsafe pointer wrapping C's `struct timespec`.

type Timespec

type Timespec unix.Timespec

Timespec behaves similarly to C's struct timespec. Timespec is used to retain fidelity to the C based file systems apis that could be lossy with the use of Go time types.

func CStructToTimespec

func CStructToTimespec(cts CTimespecPtr) Timespec

CStructToTimespec creates a new Timespec for the C 'struct timespec'.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL