Symbian platform (C++)
SDK native APIs, runtime and tooling
Loading...
Searching...
No Matches
symbian::agent::AgentLogRing Class Reference

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
 

Detailed Description

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.

Member Function Documentation

◆ Append()

void symbian::agent::AgentLogRing::Append ( AgentLogCode  code)

Append one event, overwriting the oldest at capacity.

◆ ReadAfter()

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.

Member Data Documentation

◆ kCapacity

constexpr std::size_t symbian::agent::AgentLogRing::kCapacity = 32
staticconstexpr

The documentation for this class was generated from the following files: