Skip to main content

Module ffi

Module ffi 

Source

Structs§

CPPLogMessageBuilder
CPPMessageFormatter
CppArray
Array for FFI purposes between C++ and Rust. If len is 0, ptr is allowed to be nullptr, otherwise, ptr must be valid.
CppKeyValue
Represents a key-value pair for FFI purposes between C++ and Rust.
CppString
Represents a UTF-8 encoded string for FFI purposes. This is equivalent to a CppArray as it is #[repr(transparent)], but with the additional constraint that the contents of the array is a valid UTF-8 string.
LogMessage
Log message representation for FFI with C++.

Enums§

CppValue
Represents a value in a key-value pair for FFI purposes between C++ and Rust.

Constants§

MAX_DATAGRAM_LEN
MAX_TAGS
MAX_TAG_LEN
METADATA_SIZE
MIN_PACKET_SIZE

Functions§

build_logs_data
ffi_from_extended_record
Constructs a CPPLogsMessage from the provided bytes, assuming the bytes are in the format specified as in the [log encoding], and come from an Archivist LogStream with moniker, URL, and dropped logs output enabled. [log encoding] https://fuchsia.dev/fuchsia-src/development/logs/encodings