Lines Matching refs:value

34   static_assert(std::is_same<typename Vector::value_type, uint8_t>::value, "Invalid value type");
37 void PushUint8(int value) { in PushUint8() argument
38 DCHECK_GE(value, 0); in PushUint8()
39 DCHECK_LE(value, UINT8_MAX); in PushUint8()
40 data_->push_back(value & 0xff); in PushUint8()
43 void PushUint16(int value) { in PushUint16() argument
44 DCHECK_GE(value, 0); in PushUint16()
45 DCHECK_LE(value, UINT16_MAX); in PushUint16()
46 data_->push_back((value >> 0) & 0xff); in PushUint16()
47 data_->push_back((value >> 8) & 0xff); in PushUint16()
50 void PushUint32(uint32_t value) { in PushUint32() argument
51 data_->push_back((value >> 0) & 0xff); in PushUint32()
52 data_->push_back((value >> 8) & 0xff); in PushUint32()
53 data_->push_back((value >> 16) & 0xff); in PushUint32()
54 data_->push_back((value >> 24) & 0xff); in PushUint32()
57 void PushUint32(int value) { in PushUint32() argument
58 DCHECK_GE(value, 0); in PushUint32()
59 PushUint32(static_cast<uint32_t>(value)); in PushUint32()
62 void PushUint32(uint64_t value) { in PushUint32() argument
63 DCHECK_LE(value, UINT32_MAX); in PushUint32()
64 PushUint32(static_cast<uint32_t>(value)); in PushUint32()
67 void PushUint64(uint64_t value) { in PushUint64() argument
68 data_->push_back((value >> 0) & 0xff); in PushUint64()
69 data_->push_back((value >> 8) & 0xff); in PushUint64()
70 data_->push_back((value >> 16) & 0xff); in PushUint64()
71 data_->push_back((value >> 24) & 0xff); in PushUint64()
72 data_->push_back((value >> 32) & 0xff); in PushUint64()
73 data_->push_back((value >> 40) & 0xff); in PushUint64()
74 data_->push_back((value >> 48) & 0xff); in PushUint64()
75 data_->push_back((value >> 56) & 0xff); in PushUint64()
78 void PushInt8(int value) { in PushInt8() argument
79 DCHECK_GE(value, INT8_MIN); in PushInt8()
80 DCHECK_LE(value, INT8_MAX); in PushInt8()
81 PushUint8(static_cast<uint8_t>(value)); in PushInt8()
84 void PushInt16(int value) { in PushInt16() argument
85 DCHECK_GE(value, INT16_MIN); in PushInt16()
86 DCHECK_LE(value, INT16_MAX); in PushInt16()
87 PushUint16(static_cast<uint16_t>(value)); in PushInt16()
90 void PushInt32(int value) { in PushInt32() argument
91 PushUint32(static_cast<uint32_t>(value)); in PushInt32()
94 void PushInt64(int64_t value) { in PushInt64() argument
95 PushUint64(static_cast<uint64_t>(value)); in PushInt64()
100 void PushUleb128(uint32_t value) { in PushUleb128() argument
101 EncodeUnsignedLeb128(data_, value); in PushUleb128()
104 void PushUleb128(int value) { in PushUleb128() argument
105 DCHECK_GE(value, 0); in PushUleb128()
106 EncodeUnsignedLeb128(data_, value); in PushUleb128()
109 void PushSleb128(int value) { in PushSleb128() argument
110 EncodeSignedLeb128(data_, value); in PushSleb128()
115 void PushString(const char* value) { in PushString() argument
116 data_->insert(data_->end(), value, value + strlen(value) + 1); in PushString()
131 void UpdateUint32(size_t offset, uint32_t value) { in UpdateUint32() argument
133 (*data_)[offset + 0] = (value >> 0) & 0xFF; in UpdateUint32()
134 (*data_)[offset + 1] = (value >> 8) & 0xFF; in UpdateUint32()
135 (*data_)[offset + 2] = (value >> 16) & 0xFF; in UpdateUint32()
136 (*data_)[offset + 3] = (value >> 24) & 0xFF; in UpdateUint32()
139 void UpdateUint64(size_t offset, uint64_t value) { in UpdateUint64() argument
141 (*data_)[offset + 0] = (value >> 0) & 0xFF; in UpdateUint64()
142 (*data_)[offset + 1] = (value >> 8) & 0xFF; in UpdateUint64()
143 (*data_)[offset + 2] = (value >> 16) & 0xFF; in UpdateUint64()
144 (*data_)[offset + 3] = (value >> 24) & 0xFF; in UpdateUint64()
145 (*data_)[offset + 4] = (value >> 32) & 0xFF; in UpdateUint64()
146 (*data_)[offset + 5] = (value >> 40) & 0xFF; in UpdateUint64()
147 (*data_)[offset + 6] = (value >> 48) & 0xFF; in UpdateUint64()
148 (*data_)[offset + 7] = (value >> 56) & 0xFF; in UpdateUint64()
151 void UpdateUleb128(size_t offset, uint32_t value) { in UpdateUleb128() argument
152 DCHECK_LE(offset + UnsignedLeb128Size(value), data_->size()); in UpdateUleb128()
153 UpdateUnsignedLeb128(data_->data() + offset, value); in UpdateUleb128()