You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would you mind adding a packUint8List and unpackUint8List method? The reason for this being, that Uint8List is often used in Dart and Flutter (e.g. in StandardMessageCodec). And while Uint8List can be freely cast to List<int>, doing the reverse with Uint8List.fromList comes at a cost.
Maybe, since the package has not yet reached version 1.0 and a breaking change might be justifiable, this could even be rewritten as packBinary and unpackBinary (replacing the current List<int>-based implementation).
The text was updated successfully, but these errors were encountered:
Thank you for providing this useful package.
Would you mind adding a
packUint8List
andunpackUint8List
method? The reason for this being, thatUint8List
is often used in Dart and Flutter (e.g. inStandardMessageCodec
). And whileUint8List
can be freely cast toList<int>
, doing the reverse withUint8List.fromList
comes at a cost.Maybe, since the package has not yet reached version 1.0 and a breaking change might be justifiable, this could even be rewritten as
packBinary
andunpackBinary
(replacing the currentList<int>
-based implementation).The text was updated successfully, but these errors were encountered: