CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
cmlabs::BinHeaderStruct Struct Reference

Header of one fixed-block-size bin inside the temporal segment. More...

#include <TemporalMemory.h>

Public Attributes

uint64 size
 Total bin size in bytes (header + bitfield + data).
uint32 blockCount
 Number of fixed-size blocks in this bin.
uint32 blockSize
 Byte size of each block.
uint32 blocksInUse
 Blocks currently allocated.
uint64 usage
 Payload bytes currently stored.
uint32 bitFieldSize

Detailed Description

Header of one fixed-block-size bin inside the temporal segment.

Followed in memory by a block-usage bitfield and blockCount*blockSize data bytes.

Warning
Shared-memory layout; see MemoryManager.h for the ABI/rebuild warning.

Definition at line 64 of file TemporalMemory.h.

Member Data Documentation

◆ bitFieldSize

uint32 cmlabs::BinHeaderStruct::bitFieldSize

◆ blockCount

uint32 cmlabs::BinHeaderStruct::blockCount

Number of fixed-size blocks in this bin.

Definition at line 66 of file TemporalMemory.h.

Referenced by cmlabs::TemporalMemory::insertMessage(), and cmlabs::TemporalMemory::logUsage().

◆ blocksInUse

uint32 cmlabs::BinHeaderStruct::blocksInUse

Blocks currently allocated.

Definition at line 68 of file TemporalMemory.h.

Referenced by cmlabs::TemporalMemory::insertMessage(), and cmlabs::TemporalMemory::logUsage().

◆ blockSize

uint32 cmlabs::BinHeaderStruct::blockSize

Byte size of each block.

Definition at line 67 of file TemporalMemory.h.

Referenced by cmlabs::TemporalMemory::insertMessage(), and cmlabs::TemporalMemory::logUsage().

◆ size

uint64 cmlabs::BinHeaderStruct::size

Total bin size in bytes (header + bitfield + data).

Definition at line 65 of file TemporalMemory.h.

Referenced by cmlabs::TemporalMemory::logUsage().

◆ usage

uint64 cmlabs::BinHeaderStruct::usage

Payload bytes currently stored.

Definition at line 69 of file TemporalMemory.h.

Referenced by cmlabs::TemporalMemory::create(), cmlabs::TemporalMemory::insertMessage(), and cmlabs::TemporalMemory::logUsage().


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