Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::CellBufferMemory Struct Reference

Measured C++ storage accounting, excluding allocator overhead and process RSS. More...

#include <cell_buffer.hpp>

Public Member Functions

bool operator== (const CellBufferMemory &other) const noexcept=default
 Compare accounting and counts.

Public Attributes

std::size_t object_bytes {}
 sizeof(CellBuffer), including inline metadata and unique_ptr owners.
std::size_t cell_storage_bytes {}
 Allocated cell array bytes (exact element count times sizeof(Cell)).
std::size_t glyph_record_storage_bytes {}
 Allocated glyph-record array bytes, including unused slots.
std::size_t glyph_byte_storage_bytes {}
 Allocated UTF-8 byte array capacity.
std::size_t style_storage_bytes {}
 Allocated style array bytes, including unused slots.
std::size_t total_bytes {}
 Sum of object and allocated array bytes; not RSS or peak resize memory.
std::size_t glyph_count {}
 Current interned glyph count, including the blank when storage exists.
std::size_t glyph_bytes {}
 Current used UTF-8 bytes, including the blank when storage exists.
std::size_t style_count {}
 Current interned style count, including the default when storage exists.

Detailed Description

Measured C++ storage accounting, excluding allocator overhead and process RSS.

Member Function Documentation

◆ operator==()

bool portals::CellBufferMemory::operator== ( const CellBufferMemory & other) const
defaultnoexcept

Compare accounting and counts.

Parameters
otherValue whose corresponding fields are compared.
Returns
True when every compared field is equal; false otherwise.

The documentation for this struct was generated from the following file: