Skip to content

Latest commit

 

History

History
executable file
·
24 lines (17 loc) · 995 Bytes

File metadata and controls

executable file
·
24 lines (17 loc) · 995 Bytes

ByteBufferCpp

Ramsey Kant

https://github.com/RamseyK/ByteBufferCpp

This class was written to provide Java's ByteBuffer functionality in many of my internal C++ projects. The code was recently rewritten and may contain bugs! Feel free to make any suggestions for improving the code or request any features that could be beneficial to a variety of applications that may use this class.

Looking for ByteBuffer in C? Try https://github.com/RamseyK/ByteBufferC

Why Byte Buffer?

  • Relative and Absolute get() & put() methods
  • Easier to work with than a raw byte array
  • Read and Write large amounts of data
  • Easy way to manipulate or create custom data structures

Example usage scenarios

  • HTTP: Request & Response parsers
  • Packets: Parse or Create custom packets to send over the network in a quick and easy manner

Acknowledgements

  • 17 January 2016: Additions from upstream fork by Ashley Davis (SgtCoDFish)

License

Apache License v2.0. See LICENSE file.