Skip to content
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

Implement moving bytes between OkBuffers. #487

Merged
merged 1 commit into from
Jan 27, 2014

Conversation

swankjesse
Copy link
Collaborator

This is more complicated than I'd anticipated.

if (segment.pos == segment.limit) {
segment = segment.pop(); // Recycle this empty segment.
if (head.pos == head.limit) {
Segment toRecycle = head;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks. easy to understand names like this!

@codefromthecrypt
Copy link

LGTM

This is more complicated than I'd anticipated.
swankjesse added a commit that referenced this pull request Jan 27, 2014
Implement moving bytes between OkBuffers.
@swankjesse swankjesse merged commit d4e80bc into master Jan 27, 2014
@swankjesse swankjesse deleted the jwilson_0126_buffer_to_buffer branch February 14, 2014 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants