Lines Matching refs:buf
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()
36 char buf[sizeof(value)]; in PutFixed32() local
37 EncodeFixed32(buf, value); in PutFixed32()
38 dst->append(buf, sizeof(buf)); in PutFixed32()
42 char buf[sizeof(value)]; in PutFixed64() local
43 EncodeFixed64(buf, value); in PutFixed64()
44 dst->append(buf, sizeof(buf)); in PutFixed64()
76 char buf[5]; in PutVarint32() local
77 char* ptr = EncodeVarint32(buf, v); in PutVarint32()
78 dst->append(buf, ptr - buf); in PutVarint32()
93 char buf[10]; in PutVarint64() local
94 char* ptr = EncodeVarint64(buf, v); in PutVarint64()
95 dst->append(buf, ptr - buf); in PutVarint64()