Lines Matching refs:value

9 void EncodeFixed32(char* buf, uint32_t value) {  in EncodeFixed32()  argument
11 memcpy(buf, &value, sizeof(value)); in EncodeFixed32()
13 buf[0] = value & 0xff; in EncodeFixed32()
14 buf[1] = (value >> 8) & 0xff; in EncodeFixed32()
15 buf[2] = (value >> 16) & 0xff; in EncodeFixed32()
16 buf[3] = (value >> 24) & 0xff; in EncodeFixed32()
20 void EncodeFixed64(char* buf, uint64_t value) { in EncodeFixed64() argument
22 memcpy(buf, &value, sizeof(value)); in EncodeFixed64()
24 buf[0] = value & 0xff; in EncodeFixed64()
25 buf[1] = (value >> 8) & 0xff; in EncodeFixed64()
26 buf[2] = (value >> 16) & 0xff; in EncodeFixed64()
27 buf[3] = (value >> 24) & 0xff; in EncodeFixed64()
28 buf[4] = (value >> 32) & 0xff; in EncodeFixed64()
29 buf[5] = (value >> 40) & 0xff; in EncodeFixed64()
30 buf[6] = (value >> 48) & 0xff; in EncodeFixed64()
31 buf[7] = (value >> 56) & 0xff; in EncodeFixed64()
35 void PutFixed32(std::string* dst, uint32_t value) { in PutFixed32() argument
36 char buf[sizeof(value)]; in PutFixed32()
37 EncodeFixed32(buf, value); in PutFixed32()
41 void PutFixed64(std::string* dst, uint64_t value) { in PutFixed64() argument
42 char buf[sizeof(value)]; in PutFixed64()
43 EncodeFixed64(buf, value); in PutFixed64()
98 void PutLengthPrefixedSlice(std::string* dst, const Slice& value) { in PutLengthPrefixedSlice() argument
99 PutVarint32(dst, value.size()); in PutLengthPrefixedSlice()
100 dst->append(value.data(), value.size()); in PutLengthPrefixedSlice()
114 uint32_t* value) { in GetVarint32PtrFallback() argument
124 *value = result; in GetVarint32PtrFallback()
131 bool GetVarint32(Slice* input, uint32_t* value) { in GetVarint32() argument
134 const char* q = GetVarint32Ptr(p, limit, value); in GetVarint32()
143 const char* GetVarint64Ptr(const char* p, const char* limit, uint64_t* value) { in GetVarint64Ptr() argument
153 *value = result; in GetVarint64Ptr()
160 bool GetVarint64(Slice* input, uint64_t* value) { in GetVarint64() argument
163 const char* q = GetVarint64Ptr(p, limit, value); in GetVarint64()