oslogabi

package
v0.6.18 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 5 Imported by: 0

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