Skip to content
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
@andrii0lomakin
Comment options

@dyxushuai
Comment options

Answer selected by andrii0lomakin
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