read method
Reads an element of type T
from the given ByteData starting at
the specified offset
.
This method must be implemented by subclasses to define how an element is read from binary data.
Implementation
@override
int read(ByteData data, int offset) => data.getInt32(offset, Endian.big);