CIRCT 23.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
esi::Segment Struct Reference

A contiguous, non-owning view of bytes within a SegmentedMessageData. More...

#include <Common.h>

Collaboration diagram for esi::Segment:
Collaboration graph
[legend]

Public Member Functions

std::span< const uint8_t > span () const
 
bool empty () const
 

Public Attributes

const uint8_t * data
 
size_t size
 

Detailed Description

A contiguous, non-owning view of bytes within a SegmentedMessageData.

Valid only while the owning SegmentedMessageData is alive.

Definition at line 175 of file Common.h.

Member Function Documentation

◆ empty()

bool esi::Segment::empty ( ) const
inline

Definition at line 179 of file Common.h.

References size.

◆ span()

std::span< const uint8_t > esi::Segment::span ( ) const
inline

Definition at line 178 of file Common.h.

References data, and size.

Member Data Documentation

◆ data

const uint8_t* esi::Segment::data

◆ size

size_t esi::Segment::size

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