mal-packet-weaver
C++20 packet serialization/deserialization library.
|
Represents a view of a cryptographic key as a byte view. More...
#include "crypto-common.hpp"
Public Member Functions | |
template<typename T > | |
const T * | as () const |
Convert the ByteView to a typed view. | |
constexpr ByteView | subview (size_t from=0) const |
Create a subview of the ByteView. | |
constexpr ByteView | subview (size_t from, size_t length) const |
Create a subview of the ByteView with a specified length. | |
Public Attributes | |
T | elements |
STL member. | |
Represents a view of a cryptographic key as a byte view.
Definition at line 40 of file crypto-common.hpp.
|
inlinenodiscardinherited |
Convert the ByteView to a typed view.
This function interprets the underlying byte data as a sequence of the specified type and returns a pointer to the first element.
T | The type to interpret the byte data as. |
Definition at line 44 of file byte-helper.hpp.
|
inlinenodiscardconstexprinherited |
Create a subview of the ByteView with a specified length.
This function creates a new ByteView that represents a subsequence of the original ByteView starting from the specified index and having the specified length.
from | The starting index of the subview. |
length | The length of the subview. |
Definition at line 74 of file byte-helper.hpp.
Create a subview of the ByteView.
This function creates a new ByteView that represents a subsequence of the original ByteView starting from the specified index.
from | The starting index of the subview. |
Definition at line 58 of file byte-helper.hpp.
|
inherited |
STL member.