151 :
OTData(pNewData, nNewSize)
174 if (theData.
GetSize() < lSize) abort();
199 uint32_t lSize = theArmor.
GetLength() + 1;
236 uint32_t lIndex = lSize - 2;
242 if (0 == lSize)
return false;
251 theEnvelope.m_dataContents.
Release();
274 otErr <<
"Invalid Checksum in OTPayload::GetEnvelope\n";
284 uint32_t lIndex = lSize - 2;
288 if (0 == lSize)
return false;
308 otErr <<
"Invalid Checksum in OTPayload::GetMessage\n";
EXPORT bool GetEnvelope(OTEnvelope &theEnvelope) const
EXPORT bool SetMessagePayload(const OTMessage &theMessage)
EXPORT uint32_t GetLength() const
EXPORT bool SetAsciiArmoredData(const OTASCIIArmor &theArmoredText, bool bLineBreaks=true)
EXPORT uint32_t ReadBytesFrom(OTData &theData, uint32_t lSize)
EXPORT void Set(const char *data, uint32_t enforcedMaxLength=0)
EXPORT void Assign(const OTData &source)
EXPORT bool GetAsciiArmoredData(OTASCIIArmor &theArmoredText, bool bLineBreaks=true) const
EXPORT OT_BOOL IsChecksumValid(OT_BYTE *buffer, uint32_t size)
void SetSize(uint32_t size)
EXPORT void SetPayloadSize(uint32_t lNewSize)
EXPORT bool GetMessagePayload(OTMessage &theMessage) const
EXPORT const char * Get() const
EXPORT const void * GetPayloadPointer() const
OTLOG_IMPORT OTLogStream otErr
const void * GetPointer() const
virtual EXPORT void Release()
void AppendChecksum(OT_BYTE *buffer, uint32_t &size)
EXPORT bool SetEnvelope(const OTEnvelope &theEnvelope)
virtual EXPORT void Release()
virtual EXPORT ~OTPayload()