convertToUint32List method
Copies this ByteData buffer to an Uint32List of length
.
Implementation
Uint32List convertToUint32List(int length, [Endian endian = Endian.big]) {
_checkLengthRange(length, 4);
if (Endian.host == endian) {
return Uint32List.fromList(buffer.asUint32List(offsetInBytes, length));
}
var ns = Uint32List(length);
for (var i = 0; i < length; ++i) {
ns[i] = getUint32(i * 4, endian);
}
return ns;
}