Skip to content

Pre-registering of buffers. #66

Answered by dyxushuai
laa asked this question in Q&A
Mar 21, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Yes, We have some ideas about the IO API. Which provides methods to manipulate the buffer directly. e.g.

trait BufRead {
	async fn next(&mut self, n: usize) ->  &[u8];
	async fn peek(&mut self, n: usize) -> &[u8];
	async fn advance(&mut self, n: usize);
}

We just expose the buffer operations and we can use pre-register buffers as one of our implements.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@laa
Comment options

@dyxushuai
Comment options

Answer selected by laa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants