4 #include "CoralBase/Blob.h"
8 #include <openssl/sha.h>
12 m_data( new coral::Blob(0) ){
16 m_data( new coral::Blob( size ) ){
21 m_data( new coral::Blob(data.
size()) ){
22 ::memcpy(
m_data->startingAddress(), data.startingAddress(), data.size() );
27 m_object( rhs.m_object ){
43 m_data.reset(
new coral::Blob( source.size() ) );
44 ::memcpy( m_data->startingAddress(), source.c_str(), source.size() );
49 if(!m_data.get())
throwException(
"Binary data can't be accessed.",
"Binary::data");
50 return m_data->startingAddress();
53 if(!m_data.get())
throwException(
"Binary data can't be accessed.",
"Binary::data");
54 return m_data->startingAddress();
58 if(!m_data.get())
throwException(
"Binary size can't be provided.",
"Binary::size");
59 return m_data->size();
void fromOraObject(const ora::Object &object)
std::shared_ptr< coral::Blob > m_data
Binary & operator=(const Binary &rhs)
void copy(const std::string &source)
ora::Object oraObject() const
const void * data() const
void throwException(std::string const &message, std::string const &methodName)
char data[epos_bytes_allocation]
const coral::Blob & get() const
static std::string const source
tuple size
Write out results.