CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace utils {
28 template<
size_t N,
typename TTag>
55 constexpr
size_t size()
const {
60 constexpr
const uint8_t&
operator[](
size_t index)
const {
70 constexpr
const uint8_t*
data() const noexcept {
75 constexpr uint8_t*
data() noexcept {
81 constexpr
auto cbegin() const noexcept {
86 constexpr
auto cend() const noexcept {
91 constexpr
auto begin() const noexcept {
96 constexpr
auto end() const noexcept {
106 constexpr
auto end() noexcept {
118 return !(*
this == rhs);
152 template<
size_t N,
typename TTag>
constexpr auto cbegin() const noexcept
Returns a const iterator to the first byte.
Definition: ByteArray.h:81
constexpr size_t size() const
Returns the array size.
Definition: ByteArray.h:55
constexpr auto begin() noexcept
Returns an iterator to the first byte.
Definition: ByteArray.h:101
constexpr ByteArray(const std::array< uint8_t, N > &array)
Creates a byte array around array.
Definition: ByteArray.h:39
constexpr ByteArray()
Creates a zero-initialized byte array.
Definition: ByteArray.h:35
constexpr void HexFormat(const ByteArray< N, TTag > &)
typename std::array< uint8_t, N >::const_iterator const_iterator
Definition: ByteArray.h:31
constexpr auto end() const noexcept
Returns a const iterator to one past the last byte.
Definition: ByteArray.h:96
constexpr bool operator!=(const ByteArray &rhs) const
Returns true if this value is not equal to rhs.
Definition: ByteArray.h:117
constexpr const uint8_t & operator[](size_t index) const
Returns a const reference to the byte at index.
Definition: ByteArray.h:60
ByteArray & operator=(const ByteArray &rhs)
Assigns rhs to this.
Definition: ByteArray.h:48
constexpr uint8_t & operator[](size_t index)
Returns a reference to the byte at index.
Definition: ByteArray.h:65
constexpr const uint8_t * data() const noexcept
Returns a const pointer to the underlying array.
Definition: ByteArray.h:70
constexpr bool operator>=(const ByteArray &rhs) const
Returns true if this value is greater than or equal to rhs.
Definition: ByteArray.h:122
constexpr uint8_t * data() noexcept
Returns a pointer to the underlying array.
Definition: ByteArray.h:75
constexpr auto begin() const noexcept
Returns a const iterator to the first byte.
Definition: ByteArray.h:91
constexpr bool operator>(const ByteArray &rhs) const
Returns true if this value is greater than rhs.
Definition: ByteArray.h:127
std::array< uint8_t, N > m_array
Definition: ByteArray.h:148
constexpr auto end() noexcept
Returns an iterator to one past the last byte.
Definition: ByteArray.h:106
constexpr bool operator==(const ByteArray &rhs) const
Returns true if this value is equal to rhs.
Definition: ByteArray.h:112
friend std::ostream & operator<<(std::ostream &out, const ByteArray &byteArray)
Insertion operator for outputting byteArray to out.
Definition: ByteArray.h:142
constexpr bool operator<(const ByteArray &rhs) const
Returns true if this value is less than rhs.
Definition: ByteArray.h:137
Definition: AddressExtractionExtension.cpp:28
constexpr bool operator<=(const ByteArray &rhs) const
Returns true if this value is less than or equal to rhs.
Definition: ByteArray.h:132
Base class for wrappers of byte array types, to provide some type-safety.
Definition: ByteArray.h:29
constexpr ByteArray(const ByteArray &rhs)
Creates a copy of rhs.
Definition: ByteArray.h:43
constexpr auto cend() const noexcept
Returns a const iterator to one past the last byte.
Definition: ByteArray.h:86