What a snapshot is (doc/snapshot.md §2): a sequence of records, the façade's header first, checked by the CRC-32C of their bytes in order that its SnapshotEnd carries. SnapshotFormat.java and Snapshot.hpp are its twins; keep the three in step.
More...
|
| static uint | Crc32C (IDirectBuffer buffer, int offset, int length) |
| | The CRC-32C of a span of bytes, as SnapshotEnd.crc32c carries it.
|
| |
| static uint | Update (uint crc, IDirectBuffer buffer, int offset, int length) |
| | Feeds bytes into a running CRC-32C.
|
| |
| static uint | Update (uint crc, ReadOnlySpan< byte > bytes) |
| | Feeds bytes into a running CRC-32C.
|
| |
|
| const int | MaxRecordLength = 65535 |
| | The most bytes one record holds: what its uint16 length prefix in the file can say.
|
| |
What a snapshot is (doc/snapshot.md §2): a sequence of records, the façade's header first, checked by the CRC-32C of their bytes in order that its SnapshotEnd carries. SnapshotFormat.java and Snapshot.hpp are its twins; keep the three in step.
◆ Crc32C()
| static uint Org.Limitless.Seqeron.Protocol.SnapshotFormat.Crc32C |
( |
IDirectBuffer |
buffer, |
|
|
int |
offset, |
|
|
int |
length |
|
) |
| |
|
inlinestatic |
The CRC-32C of a span of bytes, as SnapshotEnd.crc32c carries it.
- Parameters
-
| buffer | holding the bytes |
| offset | of the first |
| length | how many |
◆ Update() [1/2]
| static uint Org.Limitless.Seqeron.Protocol.SnapshotFormat.Update |
( |
uint |
crc, |
|
|
IDirectBuffer |
buffer, |
|
|
int |
offset, |
|
|
int |
length |
|
) |
| |
|
inlinestatic |
Feeds bytes into a running CRC-32C.
- Parameters
-
| crc | the CRC of the bytes before these, or 0 to start |
| buffer | holding the bytes |
| offset | of the first |
| length | how many |
- Returns
- the CRC of everything so far
◆ Update() [2/2]
| static uint Org.Limitless.Seqeron.Protocol.SnapshotFormat.Update |
( |
uint |
crc, |
|
|
ReadOnlySpan< byte > |
bytes |
|
) |
| |
|
inlinestatic |
Feeds bytes into a running CRC-32C.
- Parameters
-
| crc | the CRC of the bytes before these, or 0 to start |
| bytes | the bytes |
- Returns
- the CRC of everything so far
◆ MaxRecordLength
| const int Org.Limitless.Seqeron.Protocol.SnapshotFormat.MaxRecordLength = 65535 |
|
static |
The most bytes one record holds: what its uint16 length prefix in the file can say.
The documentation for this class was generated from the following file: