#include <result.h>
Inheritance diagram for pqxx::BinaryString:
Public Types | |
typedef size_t | size_type |
Public Member Functions | |
BinaryString (const Result::Field &F) | |
Read and unescape bytea field. | |
size_type | size () const throw () |
Size of unescaped buffer, including terminating zero. | |
const unsigned char * | bytes () const throw () |
Unescaped field contents. |
This class represents a postgres-internal buffer containing the original, binary string represented by a field of type bytea. The raw value returned by such a field contains escape sequences for certain characters, which are filtered out by BinaryString. The BinaryString retains its value even if the Result it was obtained from is destroyed, but it cannot be copied or assigned.
|
|
|
Read and unescape bytea field. The field will be zero-terminated, even if the original bytea field isn't.
|
|
Unescaped field contents.
|
|
Size of unescaped buffer, including terminating zero.
|