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>
The primary namespace of the Hyper API for C++.
An arbitrarily-sized binary value.
friend bool operator!=(const ByteSpan &a, const ByteSpan &b) noexcept
Not equal operator.
friend bool operator>(const ByteSpan &lhs, const ByteSpan &rhs) noexcept
Greater operator.
const uint8_t * data
The start of the binary data.
friend bool operator<(const ByteSpan &a, const ByteSpan &b) noexcept
Less than operator.
std::string toString() const
Returns a string representation of the binary 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.
friend bool operator<=(const ByteSpan &a, const ByteSpan &b) noexcept
Less than or equal operator.
size_t size
The size of the data.
ByteSpan(const uint8_t *data, size_t size) noexcept
Constructor.
friend std::ostream & operator<<(std::ostream &os, const ByteSpan &obj)
Stream output operator.
size_t operator()(const hyperapi::ByteSpan &) const noexcept
Calculates the hash value of the given byte span.