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 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.
|
| |
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.
◆ Bytes()
| static ReadOnlySpan< byte > Org.Limitless.Seqeron.Util.SbeBuffers.Bytes |
( |
IDirectBuffer |
source, |
|
|
int |
offset, |
|
|
int |
length |
|
) |
| |
|
inlinestatic |
The same bytes as a span.
- Parameters
-
| source | the bytes |
| offset | of the first |
| length | how 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
-
| view | the SBE buffer a codec is wrapped over |
| source | the bytes, as Aeron.NET or the caller holds them |
| offset | of the first byte in source |
| length | how many bytes the view covers |
The documentation for this class was generated from the following file: