|
CoreComponents 3.0.0
A Modern C++ Toolkit
|
Read and write binary data structures. More...
#include <cc/Binary>
Public Member Functions | |
| Binary (const Bytes &bytes) | |
| Create an interpretation of bytes. | |
| template<class T > | |
| T | value (long i, long j) const |
| Read the value ranging from byte i to byte j. | |
| template<class T > | |
| T | value (long i) const |
| Read the value of type T starting at byte i. | |
| template<class T , long I, long J> | |
| T | value () const |
| Read the value ranging from byte i to byte j. | |
| template<class T , long I> | |
| T | value () const |
| Read the value ranging from byte i to byte j. | |
Read and write binary data structures.
| byteOrder | Byte order for reading words |
Create an interpretation of bytes.
| T value | ( | long | i, |
| long | j ) const |
Read the value ranging from byte i to byte j.
| T | Value type (e.g. int32_t) |
| i | Index of first byte |
| j | Index of last byte |
Read the value of type T starting at byte i.
| T | Value type (e.g. int32_t) |
| T value | ( | ) | const |
Read the value ranging from byte i to byte j.
| T | Value type (e.g. int32_t) |
| I | Index of first byte provided at compile time |
| J | Index of last byte provided at compile time |
| T value | ( | ) | const |
Read the value ranging from byte i to byte j.
| T | Value type (e.g. int32_t) |
| I | Index of first byte provided at compile time |