Skip to content
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

Implement value encoding and decoding #142

Closed
virgil-serbanuta opened this issue Oct 2, 2024 · 1 comment
Closed

Implement value encoding and decoding #142

virgil-serbanuta opened this issue Oct 2, 2024 · 1 comment
Assignees
Labels

Comments

@virgil-serbanuta
Copy link
Member

virgil-serbanuta commented Oct 2, 2024

Depends on #135

We would need to add the following the Helpers trait: fn encodeU8(Bytes, u8) -> Bytes, fn encodeU16(Bytes, u16) -> Bytes ... to the Bytes type (these would append to the bytes object).

We would need to also add fn decodeU8(Bytes) -> (Bytes, u8, bool), ... - these would return the decoded value and the remaining Bytes, and a success flag.

@ACassimiro
Copy link
Collaborator

Addressed in #167 and #171.

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

No branches or pull requests

2 participants