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

Small cleanup of byte_stream code #385

Merged
merged 2 commits into from
Feb 27, 2024
Merged

Conversation

jaytaph
Copy link
Member

@jaytaph jaytaph commented Feb 25, 2024

Small and simple cleanup of comments and locations

@jaytaph jaytaph requested review from emwalker, Sharktheone and a team February 27, 2024 15:26
Copy link
Member

@Sharktheone Sharktheone left a comment

Choose a reason for hiding this comment

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

Only some naming things, functionality looks good

Comment on lines 227 to 229
fn empty(&self) -> bool {
self.buffer_pos >= self.buffer.len()
}
Copy link
Member

Choose a reason for hiding this comment

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

empty doesn't quite fit here, exhausted is probably more descriptive

}

/// Returns the current offset in the stream
fn tell(&self) -> usize {
Copy link
Member

Choose a reason for hiding this comment

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

same here, how about just offset here?

@jaytaph jaytaph merged commit 9ec7a8a into gosub-io:main Feb 27, 2024
20 checks passed
@jaytaph jaytaph deleted the stream-clean branch February 29, 2024 13:50
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.

2 participants