Lines Matching refs:data
49 static size_t RemainingSpace(ObjPtr<mirror::String> new_string, const uint8_t* data) in RemainingSpace() argument
52 DCHECK_GE(new_string->GetLength(), data - new_string->GetValueCompressed()); in RemainingSpace()
53 return new_string->GetLength() - (data - new_string->GetValueCompressed()); in RemainingSpace()
56 static size_t RemainingSpace(ObjPtr<mirror::String> new_string, const uint16_t* data) in RemainingSpace() argument
59 DCHECK_GE(new_string->GetLength(), data - new_string->GetValue()); in RemainingSpace()
60 return new_string->GetLength() - (data - new_string->GetValue()); in RemainingSpace()
65 CharType* data,
70 CharType* data,
75 CharType* data,
79 void StoreData(ObjPtr<mirror::String> new_string, CharType* data) const
147 CharType* data, in AppendLiteral() argument
155 DCHECK_LE(length, RemainingSpace(new_string, data)); in AppendLiteral()
157 data[i] = literal[i]; in AppendLiteral()
159 return data + length; in AppendLiteral()
164 CharType* data, in AppendString() argument
167 DCHECK_LE(length, RemainingSpace(new_string, data)); in AppendString()
172 data[i] = value[i]; in AppendString()
177 data[i] = dchecked_integral_cast<CharType>(value[i]); in AppendString()
180 return data + length; in AppendString()
185 CharType* data, in AppendInt64() argument
187 DCHECK_GE(RemainingSpace(new_string, data), Int64Length(value)); in AppendInt64()
190 *data = '-'; in AppendInt64()
191 ++data; in AppendInt64()
200 data[length - i] = '0' + static_cast<char>(digit); in AppendInt64()
203 *data = '0' + static_cast<char>(v); in AppendInt64()
204 return data + length; in AppendInt64()
277 CharType* data) const { in StoreData()
288 data = AppendString(new_string, data, str); in StoreData()
290 data = AppendLiteral(new_string, data, kNull); in StoreData()
296 data = AppendLiteral(new_string, data, kTrue); in StoreData()
298 data = AppendLiteral(new_string, data, kFalse); in StoreData()
303 DCHECK_GE(RemainingSpace(new_string, data), 1u); in StoreData()
304 *data = *reinterpret_cast<const CharType*>(current_arg); in StoreData()
305 ++data; in StoreData()
309 data = AppendInt64(new_string, data, static_cast<int32_t>(*current_arg)); in StoreData()
314 data = AppendInt64(new_string, data, *reinterpret_cast<const int64_t*>(current_arg)); in StoreData()
334 DCHECK_EQ(RemainingSpace(new_string, data), 0u) << std::hex << format_; in StoreData()