seqeron 0.18.0
Loading...
Searching...
No Matches
Org.Limitless.Seqeron.Util.SbeBuffers Class Reference

Where Aeron.NET's buffers meet the SBE codecs. Agrona.NET pins every buffer it hands out, so a codec reads and writes the same bytes through the pointer, and nothing is copied. Public, as a consumer decoding a frame or payload with SBE codecs needs the same bridge. More...

Static Public Member Functions

static void Wrap (DirectBuffer view, IDirectBuffer source, int offset, int length)
 Points view at length bytes of source from offset .
 
static ReadOnlySpan< byte > Bytes (IDirectBuffer source, int offset, int length)
 The same bytes as a span.
 

Detailed Description

Where Aeron.NET's buffers meet the SBE codecs. Agrona.NET pins every buffer it hands out, so a codec reads and writes the same bytes through the pointer, and nothing is copied. Public, as a consumer decoding a frame or payload with SBE codecs needs the same bridge.

Member Function Documentation

◆ Bytes()

static ReadOnlySpan< byte > Org.Limitless.Seqeron.Util.SbeBuffers.Bytes ( IDirectBuffer  source,
int  offset,
int  length 
)
inlinestatic

The same bytes as a span.

Parameters
sourcethe bytes
offsetof the first
lengthhow many

◆ Wrap()

static void Org.Limitless.Seqeron.Util.SbeBuffers.Wrap ( DirectBuffer  view,
IDirectBuffer  source,
int  offset,
int  length 
)
inlinestatic

Points view at length bytes of source from offset .

Parameters
viewthe SBE buffer a codec is wrapped over
sourcethe bytes, as Aeron.NET or the caller holds them
offsetof the first byte in source
lengthhow many bytes the view covers

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