add GapBuffer::Iterator::operator*()

This commit is contained in:
josh committed 2016-11-02 21:16:20 -04:00
1 parent 35b35cb2f1
commit dcba852712
1 file changed
+11
+11
View File
@@ -28,6 +28,17 @@ public:
{
return m_gap_buffer->address(m_offset);
}
uint32_t operator*() const
{
if (valid())
{
return Encoding::decode(m_gap_buffer->m_encoding, address());
}
else
{
return 0xFFFFFFFFu;
}
}
protected:
GapBuffer * m_gap_buffer;