Skip to content

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