write abstract method
Writes an element of type T
to the given ByteData starting at
the specified offset
.
This method must be implemented by subclasses to define how an element is written to binary data.
Implementation
void write(ByteData data, int offset, T value);