16 #if FW_SERIALIZABLE_TO_STRING
31 m_serialize_repr(src.m_bufferData, src.m_size),
32 m_bufferData(src.m_bufferData),
34 m_context(src.m_context)
43 if(m_bufferData !=
NULL){
44 this->m_serialize_repr.
setExtBuffer(m_bufferData, m_size);
51 this->
set(src.m_bufferData, src.m_size, src.m_context);
57 return (this->m_bufferData == src.m_bufferData) && (this->m_size == src.m_size) && (this->m_context == src.m_context);
61 return this->m_bufferData;
69 return this->m_context;
73 this->m_bufferData = data;
74 if (m_bufferData !=
NULL) {
75 this->m_serialize_repr.
setExtBuffer(m_bufferData, m_size);
81 if (m_bufferData !=
NULL) {
82 this->m_serialize_repr.
setExtBuffer(m_bufferData, m_size);
87 this->m_context = context;
91 this->m_bufferData = data;
93 if (m_bufferData !=
NULL) {
94 this->m_serialize_repr.
setExtBuffer(m_bufferData, m_size);
96 this->m_context = context;
100 return m_serialize_repr;
105 #if FW_SERIALIZATION_TYPE_ID
106 stat = buffer.
serialize((U32)Buffer::TYPE_ID);
111 stat = buffer.
serialize(
reinterpret_cast<POINTER_CAST
>(this->m_bufferData));
119 stat = buffer.
serialize(this->m_context);
129 #if FW_SERIALIZATION_TYPE_ID
137 if (typeId != Buffer::TYPE_ID) {
141 POINTER_CAST pointer;
146 this->m_bufferData =
reinterpret_cast<U8*
>(pointer);
159 #if FW_SERIALIZABLE_TO_STRING || BUILD_UT
161 static const char * formatString =
"(data = %p, size = %u,context = %u)";
173 std::ostream& operator<<(std::ostream& os,
const Buffer& obj) {