7 #ifndef MDataType_BinaryImpl_h 8 #define MDataType_BinaryImpl_h 10 #include "../Binary.h" 29 void SetBinary(
const void* ipData,
size_t iSize);
35 const void*
c_ptr()
const;
37 virtual void ZapTail(
size_t iHowManyBytes);
38 virtual void ZapHead(
size_t iHowManyBytes);
50 size_t mAllocatedSize;
51 void* mpAllocatedData;
59 #endif // MDataType_BinaryImpl_h void SetBinary(const void *ipData, size_t iSize)
SetBinary allocates a new buffer.
bool operator<(const Binary &irBinary) const
MDataType::Binary represents binary data.
Definition: Binary.h:33
BinaryImpl(MBase::Buffer *ipBuffer=NULL)
Definition: BigDecimal.h:18
size_t GetSize() const
GetSize returns the number of bytes of the internal buffer.
Definition: BinaryImpl.h:14
virtual void ZapTail(size_t iHowManyBytes)
virtual void ZapHead(size_t iHowManyBytes)
virtual ~BinaryImpl()
Definition: BinaryImpl.h:23
bool operator==(const Binary &irBinary) const
Operator == does an efficient deep comparison. Returns true if equal.
#define NULL
Definition: Null.h:10
const void * c_ptr() const
c_ptr returns a weak reference to the internal buffer. Do not try to delete the pointer.