NSUNI/NSLAR Library a250670
Loading...
Searching...
No Matches
io.hpp File Reference

Provides classes for reading and writing binary data to and from various sources. More...

#include <filesystem>
#include <fstream>
#include <type_traits>
#include <vector>
#include "NNL/common/exception.hpp"
#include "NNL/common/fixed_type.hpp"
#include "NNL/utility/filesys.hpp"
#include "NNL/utility/math.hpp"

Go to the source code of this file.

Classes

class  nnl::RWBase
 Base interface for data reading/writing classes. More...
class  nnl::Reader
 Abstract class for reading data. More...
class  nnl::Writer
 Abstract class for writing data. More...
class  nnl::Writer::Offset< T >
 Pointer-like object for storing stream positions. More...
class  nnl::Writer::Ref< T >
 Reference-like object for writing and reading data at memorized stream positions. More...
class  nnl::FileReader
 Reader implementation for reading from a file. More...
class  nnl::FileRW
 Reader/Writer implementation for file io operations. More...
class  nnl::BufferView
 Reader implementation for read-only memory buffers. More...
class  nnl::BufferSpan
 Reader/Writer implementation for mutable memory buffers. More...
class  nnl::BufferRW
 Reader/Writer implementation that writes to an internal growable buffer. More...

Namespaces

namespace  nnl

Typedefs

using nnl::Buffer = std::vector<u8>
 A type alias for std::vector<u8> that denotes a raw, contiguous memory region that may be interpreted in multiple ways.

Detailed Description

Provides classes for reading and writing binary data to and from various sources.

See also
nnl::Reader
nnl::Writer
nnl::BufferView
nnl::BufferRW
nnl::FileReader
nnl::FileRW
nnl::BufferSpan