Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rzhao271/endstream
fstream and sstream, but with endianness
https://github.com/rzhao271/endstream
Last synced: about 19 hours ago
JSON representation
fstream and sstream, but with endianness
- Host: GitHub
- URL: https://github.com/rzhao271/endstream
- Owner: rzhao271
- License: mit
- Created: 2020-04-28T20:52:29.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-07T15:27:56.000Z (over 4 years ago)
- Last Synced: 2024-10-20T10:06:55.353Z (17 days ago)
- Language: C++
- Size: 1.02 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EndStream
[![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/rzhao271/endstream)](https://github.com/rzhao271/endstream/releases/tag/v0.1.0) [![Travis (.com) branch](https://img.shields.io/travis/com/rzhao271/endstream/master)](https://travis-ci.com/github/rzhao271/endstream) [![Coveralls github branch](https://img.shields.io/coveralls/github/rzhao271/endstream/master)](https://coveralls.io/github/rzhao271/endstream)
## About
EndStream is a C++ library with classes that extend the following streams:
- `rayzz::endstream::endifstream` extends `std::ifstream`
- `rayzz::endstream::endofstream` extends `std::ofstream`
- `rayzz::endstream::endistringstream` extends `std::istringstream`
- `rayzz::endstream::endostringstream` extends `std::ostringstream`The user can specify which endianness to use while defining the helper class,
and change the endianness midway through, too.## Sample
Check out [this C++ program](sample/src/main.cpp).
## Requirements
- A C++ compiler that can compile C++14.
- CMake version >= 3.1
- If you're using g++, it must be at least version 5 (see https://stackoverflow.com/q/28775673 for details)## Limitations
As soon as the stream is passed in to a wrapper class, the wrapper class will own the stream.
Therefore, the stream is inaccessible outside of the wrapper class, and the lifetime of the stream ends when the lifetime of the wrapper class ends.