Closed jiacai2050 closed 5 years ago
In both Label Offset Table and Postings Offset Table, there is a 4-byte entries field, but in ReadOffsetTable, read as following order:
cnt := d.Be32()
keyCount := d.Uvarint()
It seems that there is no entries in offset table, Am I missing anything?
cnt := d.Be32() is the #entries <4b> field. The len <4b> is gobbled up by encoding.NewDecbufAt(...).
#entries <4b>
len <4b>
encoding.NewDecbufAt(...)
In both Label Offset Table and Postings Offset Table, there is a 4-byte entries field, but in ReadOffsetTable, read as following order:
cnt := d.Be32()
keyCount := d.Uvarint()
It seems that there is no entries in offset table, Am I missing anything?