Container, that uses object binary representation as its contents.
using size_type = std::size_tSize type.
using iterator = value_type *Iterator type.
using value_type = ChCharacter (byte) type.
using object_type = TObject type.
const typedef value_type * const_iteratorConstant iterator.
size() -> constexpr size_typeGet the number of bytes.
clear() -> voidFill with noughts.
value() -> object_type &Get object.
value() const -> constexpr const object_type &Get object.
back() -> value_type &Get the last byte.
front() -> value_type &Get the first byte.
end() const -> constexpr const_iteratorGet iterator to the end of the byte sequence.
end() -> iteratorGet iterator to the end of the byte sequence.
begin() const -> constexpr const_iteratorGet iterator to the beginning of the byte sequence.
begin() -> iteratorGet iterator to the beginning of the byte sequence.
data() const -> const_iteratorGet pointer to the first byte.
data() -> iteratorGet pointer to the first byte.
operator!=(const bytes & rhs) const -> constexpr boolByte-wise compare.
operator==(const bytes & rhs) const -> constexpr boolByte-wise compare.
operator[](size_type idx) -> value_type &Access a byte by index.
operator[](size_type idx) const -> constexpr value_typeAccess a byte by index.
operator const object_type &() const -> constexprAutomatically cast to value type.
operator object_type &()Automatically cast to value type.
to_host_format() -> voidConvert binary representation to native byte order in-place.
to_network_format() -> voidConvert binary representation to network byte order in-place.
swap() -> voidSwap (reverse) byte order in-place.
template <class It> bytes(It first, size_type n)
Construct bytes container from byte sequence described by iterator first and sequence size n.
template <class It> bytes(It first, It last)Construct bytes container from byte sequence described by two iterators.
bytes(object_type rhs) -> constexpr
Construct bytes container using rhs binary representaton as its contents.
bytes(const bytes & rhs) -> constexprCopy-constructor.
bytes() -> constexpr
Construct byte sequence from object rhs.
template <class T, class B> operator<<(std::ostream & out, const bytes< T, B > & rhs) -> std::ostream &Print byte sequence in hexadecimal form.