daffodil.util.headers

Templates for easily parsing headers using structs

Members

Enums

Endianess
enum Endianess

Attribute signifying the endianess of a field or type

Functions

parseHeader
T parseHeader(R data)

Given a type and endianess, convert a input range of ubyte to that type. Does not support any dynamically sized types or non-standard alignments

writeHeader
void writeHeader(T value, R output)

Given a instance and default endianess, write that instance to a output range of ubyte.

Mixin templates

Upcast
mixin template Upcast()

A mixin template that adds by-field casting. Allows headers to be implemented as templates given a version with minimal effort.

Templates

convertable
template convertable(T)

Documentation

Meta