Hyper API for C++
0.0.16638
Hyper client library for C++ applications
|
Go to the documentation of this file.
5 #ifndef TABLEAU_HYPER_BYTESPAN_HPP
6 #define TABLEAU_HYPER_BYTESPAN_HPP
30 ByteSpan(
const std::vector<uint8_t>& bytes) noexcept :
data(bytes.data()),
size(bytes.size()) {}
79 #include <hyperapi/impl/ByteSpan.impl.hpp>
const uint8_t * data
The start of the binary data.
size_t size
The size of the data.
friend bool operator==(const ByteSpan &lhs, const ByteSpan &rhs) noexcept
Equality operator.
friend bool operator>=(const ByteSpan &a, const ByteSpan &b) noexcept
Greater or equal operator.
ByteSpan(const std::vector< uint8_t > &bytes) noexcept
Constructor.
std::string toString() const
Returns a string representation of the binary data.
An arbitrarily-sized binary value.
friend bool operator>(const ByteSpan &lhs, const ByteSpan &rhs) noexcept
Greater operator.
friend bool operator<=(const ByteSpan &a, const ByteSpan &b) noexcept
Less than or equal operator.
ByteSpan(const uint8_t *data, size_t size) noexcept
Constructor.
friend bool operator<(const ByteSpan &a, const ByteSpan &b) noexcept
Less than operator.
The primary namespace of the Hyper API for C++.
friend bool operator!=(const ByteSpan &a, const ByteSpan &b) noexcept
Not equal operator.
friend std::ostream & operator<<(std::ostream &os, const ByteSpan &obj)
Stream output operator.