Google Cloud Spanner C++ Client 2.13.0
A C++ Client Library for Google Cloud Spanner
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
google::cloud::spanner::Bytes Class Reference

A representation of the Spanner BYTES type: variable-length binary data. More...

#include <google/cloud/spanner/bytes.h>

Public Member Functions

 Bytes ()=default
 An empty sequence. More...
 
template<typename Container >
Container get () const
 Conversion to a sequence of octets. More...
 
Construction from a sequence of octets.
template<typename InputIt >
 Bytes (InputIt first, InputIt last)
 
template<typename Container >
 Bytes (Container const &c)
 

Friends

std::ostream & operator<< (std::ostream &os, Bytes const &bytes)
 Outputs string representation of the Bytes to the provided stream. More...
 
Relational operators
bool operator== (Bytes const &a, Bytes const &b)
 
bool operator!= (Bytes const &a, Bytes const &b)
 

Detailed Description

A representation of the Spanner BYTES type: variable-length binary data.

A Bytes value can be constructed from, and converted to any sequence of octets. Bytes values can be compared for equality.

Constructor & Destructor Documentation

◆ Bytes() [1/3]

google::cloud::spanner::Bytes::Bytes ( )
default

An empty sequence.

◆ Bytes() [2/3]

template<typename InputIt >
google::cloud::spanner::Bytes::Bytes ( InputIt  first,
InputIt  last 
)
inline

◆ Bytes() [3/3]

template<typename Container >
google::cloud::spanner::Bytes::Bytes ( Container const &  c)
inlineexplicit

Member Function Documentation

◆ get()

template<typename Container >
Container google::cloud::spanner::Bytes::get ( ) const
inline

Conversion to a sequence of octets.

The Container must support construction from a range specified as a pair of input iterators.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( Bytes const &  a,
Bytes const &  b 
)
friend

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
Bytes const &  bytes 
)
friend

Outputs string representation of the Bytes to the provided stream.

Warning
This is intended for debugging and human consumption only, not machine consumption, as the output format may change without notice.

◆ operator==

bool operator== ( Bytes const &  a,
Bytes const &  b 
)
friend