Non-owning view over a contiguous run of bytes. More...
#include <bytes.h>
Public Member Functions | |
| constexpr | ByteView ()=default |
| constexpr | ByteView (const uint8_t *data, size_t size) |
| ByteView (const Bytes &b) | |
| ByteView (const std::string &s) | |
| const uint8_t * | data () const noexcept |
| size_t | size () const noexcept |
| bool | empty () const noexcept |
| const uint8_t * | begin () const noexcept |
| const uint8_t * | end () const noexcept |
| Bytes | to_bytes () const |
|
constexprdefault |
|
inlineconstexpr |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 35 of file bytes.h.
Referenced by ByteView(), ByteView(), ByteView(), and librats::PeerId::from_public_key().
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 36 of file bytes.h.
Referenced by ByteView(), ByteView(), ByteView(), and librats::PeerId::from_public_key().