18 #ifndef PQXX_H_BINARYSTRING
19 #define PQXX_H_BINARYSTRING
21 #include "pqxx/compiler-public.hxx"
22 #include "pqxx/compiler-internal-pre.hxx"
26 #include "pqxx/result"
62 pqxx::internal::freemallocmem_templated<unsigned char> >
66 typedef PGSTD::char_traits<char_type>::char_type
value_type;
73 #ifdef PQXX_HAVE_REVERSE_ITERATOR
74 typedef PGSTD::reverse_iterator<const_iterator> const_reverse_iterator;
80 pqxx::internal::freemallocmem_templated<unsigned char> >
100 bool empty()
const throw () {
return size()==0; }
108 #ifdef PQXX_HAVE_REVERSE_ITERATOR
109 const_reverse_iterator rbegin() const
110 {
return const_reverse_iterator(end()); }
111 const_reverse_iterator rend() const
112 {
return const_reverse_iterator(begin()); }
119 {
return data()[i]; }
121 bool PQXX_PURE operator==(
const binarystring &)
const throw ();
123 {
return !operator==(rhs); }
126 const_reference at(size_type)
const;
135 const char *
get()
const throw ()
137 return reinterpret_cast<const char *
>(super::get());
147 PGSTD::string str()
const;
165 PGSTD::string PQXX_LIBEXPORT
escape_binary(
const PGSTD::string &bin);
171 PGSTD::string PQXX_LIBEXPORT
escape_binary(
const char bin[]);
177 PGSTD::string PQXX_LIBEXPORT
escape_binary(
const char bin[],
size_t len);
183 PGSTD::string PQXX_LIBEXPORT
escape_binary(
const unsigned char bin[]);
189 PGSTD::string PQXX_LIBEXPORT
escape_binary(
const unsigned char bin[],
size_t len);
198 #include "pqxx/compiler-internal-post.hxx"