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

feat(core): add access methods for Buffer #4530

Merged
merged 4 commits into from
Apr 25, 2024

Conversation

George-Miao
Copy link
Contributor

This PR adds two new public functions for Buffer:

  • count, get the number of bytes::Bytes in Buffer
  • current, get the current buffer, which doesn't alter any state or do any deep copy

@George-Miao George-Miao marked this pull request as draft April 25, 2024 11:54
@George-Miao George-Miao marked this pull request as ready for review April 25, 2024 12:00
core/src/types/buffer.rs Outdated Show resolved Hide resolved
core/src/types/buffer.rs Outdated Show resolved Hide resolved
@George-Miao George-Miao requested a review from Xuanwo April 25, 2024 12:46
@Xuanwo
Copy link
Member

Xuanwo commented Apr 25, 2024

Mostly LGTM. The only thing left is runing code formatter.

@George-Miao
Copy link
Contributor Author

Mostly LGTM. The only thing left is runing code formatter.

fixed

Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thanks!

@Xuanwo Xuanwo merged commit 42dddb8 into apache:main Apr 25, 2024
217 checks passed
@George-Miao George-Miao deleted the feat/buffer-accessor branch April 25, 2024 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants