Commit 2cab6bc6 authored by Mark Nordine's avatar Mark Nordine

Override hashcode

parent 8f7ecbbb
Pipeline #34588307 failed with stages
in 2 minutes and 16 seconds
......@@ -94,6 +94,9 @@ class ByteArray
return true;
}
@override
int get hashCode => _byteData.hashCode;
/// Copies bytes from [bytes] to [this]
void writeBytes(ByteArray bytes, [int offset = 0, int byteCount = 0])
{
......
......@@ -337,6 +337,7 @@ void main() {
..offset = 0;
expect(bytes, equals(bytes2));
expect(bytes.hashCode, equals(bytes2.hashCode));
});
test('byte stream', () {
......
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