7 #ifndef MDataType_Binary_h 8 #define MDataType_Binary_h 53 virtual void SetBinary(
const void* ipData,
size_t iSize) = 0;
64 virtual size_t GetSize()
const = 0;
67 virtual const void*
c_ptr()
const = 0;
73 virtual void ZapTail(
size_t iHowManyBytes) = 0;
79 virtual void ZapHead(
size_t iHowManyBytes) = 0;
84 virtual void UnZap() = 0;
126 #endif // MDataType_Binary_h MDataType::Binary represents binary data.
Definition: Binary.h:33
virtual void ZapTail(size_t iHowManyBytes)=0
virtual bool operator==(const Binary &irBinary) const =0
Operator == does an efficient deep comparison. Returns true if equal.
virtual char * GiveUpBinary()=0
#define DLL_DATATYPE_EXIM
Definition: DataType.h:22
Definition: BigDecimal.h:18
virtual const void * c_ptr() const =0
c_ptr returns a weak reference to the internal buffer. Do not try to delete the pointer.
virtual size_t GetSize() const =0
GetSize returns the number of bytes of the internal buffer.
MBase::StrongPtr< Binary > Ptr
Definition: Binary.h:42
virtual void SetBinary(const void *ipData, size_t iSize)=0
SetBinary allocates a new buffer.
Definition: Allocator.h:47
MBase::ReturnPtr< Binary > ReturnPtr
Definition: Binary.h:43
DLL_DATATYPE_EXIM Binary * CreateBinary(MBase::Buffer *ipBuffer=NULL)
CreateBinary instantiates a new MDataType::Binary object.
virtual void ZapHead(size_t iHowManyBytes)=0
virtual ~Binary()
Definition: Binary.h:38
#define NULL
Definition: Null.h:10
virtual bool operator<(const Binary &irBinary) const =0
Definition: ReturnPtr.h:22
MBase::StrongPtr< Binary > BinaryPtr
Definition: Binary.h:94