C byte-stream and serialization utils
- Build
- Usage
Clone the repository with git...
Open the terminal in the repo directory and type:
"make" to install cStream
"make clean" to uninstall cStream
I have not added a way to build binaries for Windows yet... Just add the source files to your VS Solution/Project.
STREAM stream;
stream_init(&stream , 0) // (stream, capacity)
_init(&stream, 0) // Macro
stream_reserve(&stream, 1024) // (stream, size)
_reserve(&stream, 1024) // Macro
stream_write(&stream, some_byte_buffer, length, 0) // (stream, buffer, length, offset)
_write(&stream, some_byte_buffer, length, 0) // Macro
stream_insert(&stream, some_byte_buffer, length, 0) // (stream, buffer, length, offset)
_insert(&stream, some_byte_buffer, length, 0) // Macro
stream_read(&stream, some_byte_buffer, length, 0) // (stream, buffer, length, offset)
_read(&stream, some_byte_buffer, length, 0) // Macro
stream_seek(&stream, 0) // (stream, position)
_seek(&stream, 0) // Macro
stream_clear(&stream) // (stream)
_clear(&stream) // Macro
stream_copy(&stream, &some_other_stream) // (source_stream, dest_stream)
_copy(&stream, &some_other_stream) // Macro
stream_close(&stream) // (stream)
_close // Macro