oslogabi

package
v0.6.20 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package oslogabi builds the argument buffers of the unified logging system's ABI, shared by the os_log (x/oslog) and os_signpost (x/signpost) emitters. The buffer layout is produced by clang's __builtin_os_log_format in C; the oracle test validates this encoder against clang itself.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CString

func CString(s string) []byte

CString returns a NUL-terminated copy of s. Callers keep the slice alive (via runtime.KeepAlive) for the duration of any call that reads it.

func DSOHandle

func DSOHandle() unsafe.Pointer

func Encode

func Encode(format string, args []any) (buf []byte, pins []any)

Encode builds the os_log argument buffer for format and args. It returns the buffer and a slice of values that must be kept alive for the duration of the emitting call (the C strings that buffer pointers refer into).

Types

This section is empty.

Jump to

Keyboard shortcuts

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