Skip to content

This changes destreaming to use serde. Also changed batch read to be … #5

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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

CMoore-Darwinium
Copy link
Collaborator

…a bit faster.

pub fn read_blob(&mut self, len: usize) -> Vec<u8> {
let val = self.data_buffer[self.data_offset..self.data_offset + len].to_vec();
self.data_offset += len;
val
}

/// Reads a bool Value from the Buffer
pub fn read_bool(&mut self, len: usize) -> bool {

Choose a reason for hiding this comment

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

curious: why need len param for the bool, which supposed to be a fixed length

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants