Skip to content

SegmentCursor

#include <sbio/core/state_handle.hh>
template<typename FTraits>
struct SegmentCursor

Defined in src/lib/sbio/core/state_handle.hh:216

The cursor into a data Stream corresponding to a single segment of a BrokerGroup.

The cursor tracks byte position along a stream and contains cached information for facilitating faster lookup of data fields with offests into retrieved DataUnits.

Return Name Description
hd_std::array< hd_std::size_t, NumStepKinds > offset_index Index into offset buffers.
ByteRegion last_region Last region read. This can be used to, e.g., track size change or do re-copy checks.
hd_std::size_t read_count Bytes read on the last read.
PayloadOffsetCache payload_offsets Where this unit last found field offsets.

hd_std::array< hd_std::size_t, NumStepKinds > offset_index {}

Type: hd_std::array< hd_std::size_t, NumStepKinds >

Defined in src/lib/sbio/core/state_handle.hh:219

Index into offset buffers.


ByteRegion last_region {}

Type: ByteRegion

Defined in src/lib/sbio/core/state_handle.hh:223

Last region read. This can be used to, e.g., track size change or do re-copy checks.


hd_std::size_t read_count { 0 }

Defined in src/lib/sbio/core/state_handle.hh:224

Bytes read on the last read.


PayloadOffsetCache payload_offsets {}

Type: PayloadOffsetCache

Defined in src/lib/sbio/core/state_handle.hh:225

Where this unit last found field offsets.

Return Name Description
constexpr hd_std::size_t NumStepKinds static constexpr

static constexpr

constexpr hd_std::size_t NumStepKinds { impl::num_step_kinds<FTraits>() }

Defined in src/lib/sbio/core/state_handle.hh:217