Skip to content

Commit

Permalink
Revert "Use view"
Browse files Browse the repository at this point in the history
This reverts commit cbebf07.
  • Loading branch information
ankane committed Sep 10, 2024
1 parent cbebf07 commit 49a3153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/bit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Bit {
factory Bit.fromBinary(Uint8List bytes) {
var buf = new ByteData.view(bytes.buffer, bytes.offsetInBytes);
var length = buf.getInt32(0);
return Bit._(length, Uint8List.sublistView(bytes, 4));
return Bit._(length, bytes.sublist(4));
}

List<bool> toList() {
Expand Down

0 comments on commit 49a3153

Please sign in to comment.