Crate bebop[][src]

Modules

Macros

Macro to define collections easily. Very useful when testing. Copied from https://stackoverflow.com/a/27582993/4404257

Macro to make writing tests easier since most of them follow the same pattern

Structs

A date is stored as a 64-bit integer amount of “ticks” since 00:00:00 UTC on January 1 of year 1 A.D. in the Gregorian calendar, where a “tick” is 100 nanoseconds.

A GUID is a unique identifier. Stored internally in the Microsoft Guid format to support zero-copy deserialization

Enums

This allows us to either wrap an existing &[T] slice to serialize it OR to store a raw byte slice from an encoding and access its potentially unaligned values.

Constants

Size of an enum

Size of length data

Traits

A trait which should be given to any type which will always take up the same amount of space when serialized. This goes one step beyond the Sized trait which only requires it to take up a set amount of space on the stack. This is saying that the total data it contains and points to must always be of the exact same size for every instance.

Bebop message type which can be serialized and deserialized.

Internal trait used to reduce the amount of code that needs to be generated.

Functions

Read a 4-byte length value from the front of the raw data.

Write a 4-byte length value to the writer.

Type Definitions