Module ffi_string

Module ffi_string 

Source
Expand description

FFI string utilities

Helper functions for retrieving strings from C/Objective-C APIs that use buffer-based string retrieval patterns.

Constants§

DEFAULT_BUFFER_SIZE
Default buffer size for FFI string retrieval
SMALL_BUFFER_SIZE
Smaller buffer size for short strings (e.g., device IDs, stream names)

Functions§

ffi_string_from_buffer
Retrieves a string from an FFI function that writes to a buffer.
ffi_string_from_buffer_or_empty
Same as ffi_string_from_buffer but returns an empty string on failure instead of None.