add GapBuffer::Iterator::operator*()
This commit is contained in:
1 parent
35b35cb2f1
commit
dcba852712
1 file changed
+11
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user