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

Refactor the buffer class ByteBuffer #71

Open
lionelains opened this issue Aug 27, 2020 · 0 comments
Open

Refactor the buffer class ByteBuffer #71

lionelains opened this issue Aug 27, 2020 · 0 comments
Labels
enhancement New feature or request refactor Rewriting current code in a more maintenable way

Comments

@lionelains
Copy link
Contributor

The current ByteBuffer is merely a std::vector typedef adding a few additional functionalities, but could be extended into a full buffer parsing/generation class.
Ideally, this would mean being able to build a buffer by concatenating several little-endian/big endian values, for example using operator>>
Or it could also serve as a way to parse and decode a byte stream into little-endian/big endian values, for example using operator<<
Big/little endianness support may affect the efficiency and code footprint so dedicated big-endian and little-endian functions (or buffers) may also be created to avoid loosing too much in code optimization.

@lionelains lionelains added enhancement New feature or request refactor Rewriting current code in a more maintenable way labels Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor Rewriting current code in a more maintenable way
Projects
None yet
Development

No branches or pull requests

1 participant