Commit 8f7ecbbb authored by Mark Nordine's avatar Mark Nordine

Rename to endian

parent f19ef75e
Pipeline #29186824 passed with stages
in 2 minutes and 16 seconds
......@@ -17,12 +17,12 @@ class ByteArray
ByteArray.fromByteData(this._byteData, [this.endian = Endian.little]);
factory ByteArray.fromBuffer(ByteBuffer buffer,
[int offset = 0, int length = null, Endian endianness = Endian.little])
[int offset = 0, int length = null, Endian endian = Endian.little])
{
length ??= buffer.lengthInBytes - offset;
final view = ByteData.view(buffer, offset, length);
return ByteArray.fromByteData(view, endianness);
return ByteArray.fromByteData(view, endian);
}
int readByte() => _getNum<int>((i, _) => _byteData.getInt8(i), 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment