-
Couldn't load subscription status.
- Fork 5
Add PacketBuffer docs #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
lib/src/packet_buffer.dart
Outdated
| return _length - _cursor; | ||
| } | ||
|
|
||
| /// Marks all bytes as unread. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not all of them, only those up to the last checkpoint
lib/src/packet_buffer.dart
Outdated
| } | ||
| _cursor += length; | ||
| return bytes.buffer.asUint8List(bytes.offsetInBytes + packetOffset, length); | ||
| return bytes.buffer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid reformatting in the same patch that makes logic changes, it makes it hard to review the pr
lib/src/packet_buffer.dart
Outdated
| packet.offsetInBytes + _start, | ||
| packet.length - _start, | ||
| ), | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more formatting
No description provided.