[ox/buffer] Add new log messages to NodeBuffer

This commit is contained in:
Gary Talent 2018-07-07 14:33:16 -05:00
parent c35f7abc5b
commit 35df47eaf8

View File

@ -47,6 +47,10 @@ class __attribute__((packed)) NodeBuffer {
return m_current; return m_current;
} }
operator ItemPtr() {
return m_current;
}
operator Item*() { operator Item*() {
return m_current; return m_current;
} }
@ -207,7 +211,10 @@ typename NodeBuffer<size_t, Item>::ItemPtr NodeBuffer<size_t, Item>::ptr(size_t
itemSpace >= item->fullSize()) { itemSpace >= item->fullSize()) {
return ItemPtr(this, m_header.size, itemOffset, item->fullSize()); return ItemPtr(this, m_header.size, itemOffset, item->fullSize());
} else { } else {
oxTrace("ox::ptrarith::NodeBuffer::ptr::null") << itemOffset; oxTrace("ox::ptrarith::NodeBuffer::ptr::null") << "itemOffset:" << itemOffset;
oxTrace("ox::ptrarith::NodeBuffer::ptr::null") << "itemOffset >= sizeof(Header):" << (itemOffset >= sizeof(Header));
oxTrace("ox::ptrarith::NodeBuffer::ptr::null") << "itemSpace >= sizeof(Item):" << (itemSpace >= sizeof(Item));
oxTrace("ox::ptrarith::NodeBuffer::ptr::null") << "itemSpace >= item->fullSize():" << (itemSpace >= item->fullSize());
return ItemPtr(this, m_header.size, 0, 0); return ItemPtr(this, m_header.size, 0, 0);
} }
} }