Lines Matching refs:uint32_t

18 inline uint32_t Block::NumRestarts() const {  in NumRestarts()
19 assert(size_ >= sizeof(uint32_t)); in NumRestarts()
20 return DecodeFixed32(data_ + size_ - sizeof(uint32_t)); in NumRestarts()
27 if (size_ < sizeof(uint32_t)) { in Block()
30 size_t max_restarts_allowed = (size_-sizeof(uint32_t)) / sizeof(uint32_t); in Block()
35 restart_offset_ = size_ - (1 + NumRestarts()) * sizeof(uint32_t); in Block()
54 uint32_t* shared, in DecodeEntry()
55 uint32_t* non_shared, in DecodeEntry()
56 uint32_t* value_length) { in DecodeEntry()
70 if (static_cast<uint32_t>(limit - p) < (*non_shared + *value_length)) { in DecodeEntry()
80 uint32_t const restarts_; // Offset of restart array (list of fixed32)
81 uint32_t const num_restarts_; // Number of uint32_t entries in restart array
84 uint32_t current_;
85 uint32_t restart_index_; // Index of restart block in which current_ falls
95 inline uint32_t NextEntryOffset() const { in NextEntryOffset()
99 uint32_t GetRestartPoint(uint32_t index) { in GetRestartPoint()
101 return DecodeFixed32(data_ + restarts_ + index * sizeof(uint32_t)); in GetRestartPoint()
104 void SeekToRestartPoint(uint32_t index) { in SeekToRestartPoint()
110 uint32_t offset = GetRestartPoint(index); in SeekToRestartPoint()
117 uint32_t restarts, in Iter()
118 uint32_t num_restarts) in Iter()
148 const uint32_t original = current_; in Prev()
168 uint32_t left = 0; in Seek()
169 uint32_t right = num_restarts_ - 1; in Seek()
171 uint32_t mid = (left + right + 1) / 2; in Seek()
172 uint32_t region_offset = GetRestartPoint(mid); in Seek()
173 uint32_t shared, non_shared, value_length; in Seek()
238 uint32_t shared, non_shared, value_length; in ParseNextKey()
257 if (size_ < sizeof(uint32_t)) { in NewIterator()
260 const uint32_t num_restarts = NumRestarts(); in NewIterator()