package
1.0.2
Repository: https://github.com/taubyte/vm-wasm-utils.git
Documentation: pkg.go.dev

# Functions

CompilerSupported is exported for tests and includes constraints here and also the assembler.
FakeNanosleep implements sys.Nanosleep by returning without sleeping.
MmapCodeSegment copies the code into the executable region and returns the byte slice of the region.
MunmapCodeSegment unmaps the given memory region.
Nanosleep implements sys.Nanosleep with time.Sleep.
Nanotime implements sys.Nanotime with runtime.nanotime() if CGO is available and time.Since if not.
NewFakeNanotime implements sys.Nanotime that increases by 1ms each reading.
NewFakeRandSource returns a deterministic source of random values.
NewFakeWalltime implements sys.Walltime with FakeEpochNanos that increases by 1ms each reading.
Walltime implements sys.Walltime with time.Now.

# Constants

FakeEpochNanos is midnight UTC 2022-01-01 and exposed for testing.