toUint8List32 method
Converts this 32 bits int
to 4 bytes.
Implementation
Uint8List toUint8List32() {
var bs = Uint8List(4);
var data = bs.asByteData();
data.setUint32(0, this);
return bs;
}
Converts this 32 bits int
to 4 bytes.
Uint8List toUint8List32() {
var bs = Uint8List(4);
var data = bs.asByteData();
data.setUint32(0, this);
return bs;
}