|
byteme
Read/write bytes from various sources
|
Simple byte readers and writers. More...
Classes | |
| class | BufferedReader |
Buffered wrapper around a Reader. More... | |
| class | BufferedWriter |
Buffered wrapper around a Writer. More... | |
| class | GzipFileReader |
| Read uncompressed bytes from a Gzip-compressed file. More... | |
| struct | GzipFileReaderOptions |
Options for GzipFileReader construction. More... | |
| class | GzipFileWriter |
| Write uncompressed bytes to a Gzip-compressed file. More... | |
| struct | GzipFileWriterOptions |
Options for GzipFileWriter construction. More... | |
| class | IstreamReader |
Read bytes from a std::istream. More... | |
| class | OstreamWriter |
Read bytes from a std::ostream. More... | |
| class | ParallelBufferedReader |
Parallelized buffering to wrap a Reader. More... | |
| class | ParallelBufferedWriter |
Parallelized buffering to wrap a Writer. More... | |
| class | RawBufferReader |
| Read bytes from a raw buffer, usually text. More... | |
| class | RawBufferWriter |
| Write bytes to a raw buffer. More... | |
| struct | RawBufferWriterOptions |
Options for the RawBufferWriter constructor. More... | |
| class | RawFileReader |
| Read bytes from a file, usually text. More... | |
| struct | RawFileReaderOptions |
Options for the RawFileReader constructor. More... | |
| class | RawFileWriter |
| Write bytes to a file. More... | |
| struct | RawFileWriterOptions |
Options for the RawFileWriter constructor. More... | |
| class | Reader |
| Virtual class for reading bytes from a source. More... | |
| class | SerialBufferedReader |
Serial buffering to wrap a Reader. More... | |
| class | SerialBufferedWriter |
Serial buffering to wrap a Writer. More... | |
| class | Writer |
| Virtual class for writing bytes to a sink. More... | |
| class | ZlibBufferReader |
| Read and decompress bytes from a Zlib-compressed buffer. More... | |
| struct | ZlibBufferReaderOptions |
Options for the ZlibBufferReader constructor. More... | |
| class | ZlibBufferWriter |
| Compress and write bytes to a Zlib-compressed buffer. More... | |
| struct | ZlibBufferWriterOptions |
Options for the ZlibBufferWriter constructor. More... | |
Enumerations | |
| enum class | ZlibCompressionMode : char { DEFLATE , ZLIB , GZIP } |
Functions | |
| bool | is_zlib (const unsigned char *buffer, std::size_t n) |
| bool | is_gzip (const unsigned char *buffer, std::size_t n) |
| bool | is_zlib_or_gzip (const unsigned char *buffer, std::size_t n) |
| bool | is_gzip (const char *path) |
Simple byte readers and writers.
|
strong |
Compression mode for Zlib. DEFLATE is the underlying compression algorithm, while ZLIB and GZIP are formats that use DEFLATE internally with some extra wrappers.
|
inline |
| path | Path to a file. |
|
inline |
| [in] | buffer | Pointer to an array of length n. |
| n | Number of bytes in buffer. |
|
inline |
| [in] | buffer | Pointer to an array of length n. |
| n | Number of bytes in buffer. |
|
inline |
| [in] | buffer | Pointer to an array of length n. |
| n | Number of bytes in buffer. |