Lines Matching refs:pos

2576     const char* pos = key.data();  in KeyExpired()  local
2577 pos += 8; in KeyExpired()
2582 timestamp |= (static_cast<uint64_t>(static_cast<unsigned char>(pos[i])) in KeyExpired()
2586 memcpy(&timestamp, pos, sizeof(timestamp)); in KeyExpired()
2762 char* pos = start; in GenerateKeyFromInt() local
2769 pos[i] = (prefix >> ((bytes_to_fill - i - 1) << 3)) & 0xFF; in GenerateKeyFromInt()
2772 memcpy(pos, static_cast<void*>(&prefix), bytes_to_fill); in GenerateKeyFromInt()
2776 memset(pos + 8, '0', prefix_size_ - 8); in GenerateKeyFromInt()
2778 pos += prefix_size_; in GenerateKeyFromInt()
2781 int bytes_to_fill = std::min(key_size_ - static_cast<int>(pos - start), 8); in GenerateKeyFromInt()
2784 pos[i] = (v >> ((bytes_to_fill - i - 1) << 3)) & 0xFF; in GenerateKeyFromInt()
2787 memcpy(pos, static_cast<void*>(&v), bytes_to_fill); in GenerateKeyFromInt()
2789 pos += bytes_to_fill; in GenerateKeyFromInt()
2790 if (key_size_ > pos - start) { in GenerateKeyFromInt()
2791 memset(pos, '0', key_size_ - (pos - start)); in GenerateKeyFromInt()
5253 int pos = static_cast<int>(rand_num % range_); in GetType() local
5255 if (pos < type_[i]) { in GetType()
5359 int64_t pos = rand_loca.Next() % FLAGS_keyrange_num; in InitiateExpDistribution() local
5361 pos >= 0 && pos < static_cast<int64_t>(keyrange_set_.size())); in InitiateExpDistribution()
5362 std::swap(keyrange_set_[i], keyrange_set_[pos]); in InitiateExpDistribution()
6789 char* pos = start + 8; in TimeSeriesWrite() local
6791 std::min(key_size_ - static_cast<int>(pos - start), 8); in TimeSeriesWrite()
6795 pos[i] = (timestamp_value >> ((bytes_to_fill - i - 1) << 3)) & 0xFF; in TimeSeriesWrite()
6798 memcpy(pos, static_cast<void*>(&timestamp_value), bytes_to_fill); in TimeSeriesWrite()