Skip to content

TraceChunk

struct TraceChunk

@brief Chunk of trace data read from file

Represents a fixed-size chunk of bytes from the trace file. Used by StreamingChunkReader to yield data chunks on-demand.

Variables

Name Description
file_offset Start byte offset in file
data Raw bytes from file
is_final_chunk Whether this is the final chunk

Functions

Name Description
size Number of valid bytes in data
as_span Access raw data as span

Variable Details

data

std::vector<char> data

Raw bytes from file

file_offset

int64_t file_offset

Start byte offset in file

is_final_chunk

bool is_final_chunk

Whether this is the final chunk

Function Details

as_span

std::span<const char> as_span() const

Access raw data as span

size

size_t size() const

Number of valid bytes in data