Skip to main content

Core API

This chapter covers the LibXR core headers: data types, error handling, callbacks, read/write ports, timestamps and terminal formatting.

Overview​

  • libxr_def: Common macro definitions, error codes, and basic constants
  • libxr_assert: Assertion mechanism and fatal error callbacks
  • libxr_cb: Type-safe callback mechanism
  • libxr_type: Raw data encapsulation and type identification
  • libxr_mem: Memory copy, clear, and compare helpers
  • libxr_string: Retained runtime-built strings (RuntimeStringView)
  • libxr_color: Terminal output formatting and ANSI control
  • print: Compile-time formatting output and sink and bounded-buffer wrappers
  • libxr_time: Microsecond/millisecond-level timestamps and time differences
  • libxr_rw: General read/write interfaces and operation encapsulation
  • Operation: Asynchronous completion-feedback model
  • Pipe: Unidirectional pipe built on a shared byte queue