SegmentCursor
SegmentCursor
Section titled “SegmentCursor”#include <sbio/core/state_handle.hh>template<typename FTraits>struct SegmentCursorDefined 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.
Public Attributes
Section titled “Public Attributes”| 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. |
offset_index
Section titled “offset_index”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.
last_region
Section titled “last_region”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.
read_count
Section titled “read_count”hd_std::size_t read_count { 0 }Defined in src/lib/sbio/core/state_handle.hh:224
Bytes read on the last read.
payload_offsets
Section titled “payload_offsets”PayloadOffsetCache payload_offsets {}Type: PayloadOffsetCache
Defined in src/lib/sbio/core/state_handle.hh:225
Where this unit last found field offsets.
Public Static Attributes
Section titled “Public Static Attributes”| Return | Name | Description |
|---|---|---|
constexpr hd_std::size_t |
NumStepKinds static constexpr |
NumStepKinds
Section titled “NumStepKinds”static constexpr
constexpr hd_std::size_t NumStepKinds { impl::num_step_kinds<FTraits>() }Defined in src/lib/sbio/core/state_handle.hh:217