cerealise

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).

  1. auto cerealise(auto ref T val)
    cerealise
    @system
    (
    ushort N = 32
    T
    )
    (
    auto ref T val
    )
  2. ubyte[] cerealise(auto ref T val)

Meta