https://github.com/elementbound/binio
Simplistic API to handle basic data types in binary
https://github.com/elementbound/binio
Last synced: 3 months ago
JSON representation
Simplistic API to handle basic data types in binary
- Host: GitHub
- URL: https://github.com/elementbound/binio
- Owner: elementbound
- License: mit
- Created: 2013-07-03T00:50:17.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2015-05-18T08:44:47.000Z (almost 11 years ago)
- Last Synced: 2025-01-19T06:13:22.621Z (about 1 year ago)
- Language: C++
- Size: 137 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
BinIO
====
BinIO is a simplistic library for handling basic binary data types.
Currently, it is designed to handle data written by itself, but interaction with data written by other software is possible too.
As of now (2013.08.19) BinIO works with both Little-Endian and Big-Endian data. Before using binio::buffer, call binio::init(). It will determine the system's native endianness.
You can use it by creating a buffer, filling it with some data ( eg. read a few bytes from a file, copy it from a memory lump, whatever ) seek to the buffer's start and start reading with its builtin functions.
Or, you can write to it with the builtin functions and flush it to a file.
Currently handled data types:
* char, unsigned char
* short, unsigned short
* int, unsigned int
* float, double
* null-terminated strings
Also, I'm still mediocre at best with C++, so constructive critique is very well appreciated :)
License
====
BinIO is under the MIT license. See the file called 'license'.
Also, a link to the project's github page would be greatly appreciated :)