-
Notifications
You must be signed in to change notification settings - Fork 58
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
Can you use peek to fill the buffer? #392
Comments
Do you mean the buffer of the In either case, it seems covered by the documentation at the top of the
|
@CLOVIS-AI, yes, all the data accessed through the peek source will be available inside source's buffer. If there's not enough data in source's buffer to fulfill an operation on a peek source, new data will be fetched into the original source. |
With a given source, if I run
source.peek().readInt()
, does this guarantee that 4 bytes will be read into the source's buffer?If so, this should be documented in
Source.peek()
.The text was updated successfully, but these errors were encountered: