|
Symbian platform (C++)
SDK native APIs, runtime and tooling
|
Fixed 32-record service log with a monotonic sequence cursor. More...
#include <cpp/symbian/agent/guest_log.h>
Public Member Functions | |
| void | Append (AgentLogCode code) |
| Append one event, overwriting the oldest at capacity. | |
| absl::StatusOr< AgentLogPage > | ReadAfter (std::uint64_t cursor, std::uint8_t limit) const |
| Return up to 1–8 records after a cursor. | |
Static Public Attributes | |
| static constexpr std::size_t | kCapacity = 32 |
Fixed 32-record service log with a monotonic sequence cursor.
The owner must use this class on one worker thread. It performs no I/O and allocates no records after construction. Records disappear on process exit; this does not capture the operating system's own logs.
| void symbian::agent::AgentLogRing::Append | ( | AgentLogCode | code | ) |
Append one event, overwriting the oldest at capacity.
| absl::StatusOr< AgentLogPage > symbian::agent::AgentLogRing::ReadAfter | ( | std::uint64_t | cursor, |
| std::uint8_t | limit | ||
| ) | const |
Return up to 1–8 records after a cursor.
A cursor of zero starts with the oldest retained record. Gap is set if records after the requested cursor have already been overwritten.
|
staticconstexpr |