Struct commitlog::Message [] [src]

pub struct Message<'a> { /* fields omitted */ }

Messages contain finite-sized binary values with an offset from the beginning of the log.

Bytes Encoding Value
0-7 Little Endian u64 Offset
8-11 Little Endian u32 Payload Size
12-19 Little Endian u64 SeaHash
20+ Payload

Seahash is chosen because of its performance and quality. It is seeded with the following constants: 0x16f11fe89b0d677c, 0xb480a793d8e6c86c, 0x6fe2e5aaf078ebc9, 0x14f994a4c5259381

Methods

impl<'a> Message<'a>
[src]

Seahash of the payload.

Size of the payload.

Offset of the message in the log.

Payload of the message.

Trait Implementations

impl<'a> Debug for Message<'a>
[src]

Formats the value using the given formatter.