Pre-registering of buffers. #66
Answered
by
dyxushuai
andrii0lomakin
asked this question in
Q&A
-
Hi guys. |
Beta Was this translation helpful? Give feedback.
Answered by
dyxushuai
Mar 22, 2022
Replies: 1 comment 2 replies
-
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. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
andrii0lomakin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, We have some ideas about the IO API. Which provides methods to manipulate the buffer directly. e.g.
We just expose the buffer operations and we can use pre-register buffers as one of our implements.