cerealed.cerealiser

Members

Functions

cerealise
auto cerealise(auto ref T val)

Uses a ScopeBufferCerealiaser to write the bytes. The reason it takes a function as a template parameter is to be able to do something with the bytes. The bytes shouldn't be used directly because once the function exits that is no longer valid memory (it's been popped off the stack or freed).

cerealise
ubyte[] cerealise(auto ref T val)

Slower version of cerealise that returns a ubyte slice. It's preferable to use the version with the lambda template alias

Meta