Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
knopp committed Nov 23, 2018
1 parent 63b7ef3 commit 99a607d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/data_writer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ class DataWriter {
// we can add it directly
_builder.add(bytes);
} else {
// there is enough room ins _scratchBuffer, otherwise _ensureSize
// would have added _scratchBuffer to _builder and _scratchOffset would
// be 0
if (bytes is Uint8List) {
_scratchBuffer.setRange(_scratchOffset, _scratchOffset + length, bytes);
} else {
Expand Down

0 comments on commit 99a607d

Please sign in to comment.