toBytes method
Creates a Uint8List from an IconDirectoryEntry.
Implementation
Uint8List toBytes() {
final bytes = ByteData(entrySize)
..setUint8(0, width)
..setUint8(1, height)
..setUint8(2, colorCount)
..setUint8(3, reserved)
..setUint16(4, numPlanes, Endian.little)
..setUint16(6, bitsPerPixel, Endian.little)
..setUint32(8, imageSize, Endian.little)
..setUint32(12, imageOffset, Endian.little);
return bytes.buffer.asUint8List();
}