Home
last modified time | relevance | path

Searched refs:ptr_ (Results 1 – 8 of 8) sorted by relevance

/art/runtime/base/
Dstringpiece.cc25 target->assign(ptr_, length_); in CopyToString()
30 memcpy(buf, ptr_ + pos, ret); in copy()
38 const char* result = std::search(ptr_ + pos, ptr_ + length_, in find()
39 s.ptr_, s.ptr_ + s.length_); in find()
40 const size_type xpos = result - ptr_; in find()
45 int r = memcmp(ptr_, x.ptr_, std::min(length_, x.length_)); in compare()
57 const char* result = std::find(ptr_ + pos, ptr_ + length_, c); in find()
58 return result != ptr_ + length_ ? result - ptr_ : npos; in find()
66 const char* last = ptr_ + std::min(ulen - s.length_, pos) + s.length_; in rfind()
67 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_); in rfind()
[all …]
Dstringpiece.h41 const char* ptr_;
48 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece()
50 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int>(strlen(str))) { } in StringPiece()
52 : ptr_(str.data()), length_(static_cast<int>(str.size())) { } in StringPiece()
53 StringPiece(const char* offset, int len) : ptr_(offset), length_(len) { } in StringPiece()
59 const char* data() const { return ptr_; } in data()
65 ptr_ = NULL; in clear()
69 ptr_ = data; in set()
73 ptr_ = str; in set()
80 ptr_ = reinterpret_cast<const char*>(data); in set()
[all …]
/art/runtime/
Ddex_file_verifier.cc391 if (LIKELY(CheckListSize(ptr_, size, sizeof(byte), "encoded_value"))) { in ReadUnsignedLittleEndian()
393 result |= ((uint32_t) *(ptr_++)) << (i * 8); in ReadUnsignedLittleEndian()
405 size_t offset = ptr_ - handlers_base; in CheckAndGetHandlerOffsets()
406 int32_t size = DecodeSignedLeb128(&ptr_); in CheckAndGetHandlerOffsets()
423 uint32_t type_idx = DecodeUnsignedLeb128(&ptr_); in CheckAndGetHandlerOffsets()
428 uint32_t addr = DecodeUnsignedLeb128(&ptr_); in CheckAndGetHandlerOffsets()
436 uint32_t addr = DecodeUnsignedLeb128(&ptr_); in CheckAndGetHandlerOffsets()
510 if (UNLIKELY(*ptr_ != '\0')) { in CheckPadding()
511 ErrorStringPrintf("Non-zero padding %x before section start at %zx", *ptr_, offset); in CheckPadding()
514 ptr_++; in CheckPadding()
[all …]
Ddex_file_verifier.h39 header_(&dex_file->GetHeader()), ptr_(NULL), previous_item_(NULL) { in DexFileVerifier()
121 const byte* ptr_; variable
Ddex_file.cc1130 ptr_ = dex_file.GetEncodedStaticFieldValuesArray(class_def); in EncodedStaticFieldValueIterator()
1131 if (ptr_ == NULL) { in EncodedStaticFieldValueIterator()
1134 array_size_ = DecodeUnsignedLeb128(&ptr_); in EncodedStaticFieldValueIterator()
1146 byte value_type = *ptr_++; in Next()
1156 jval_.i = ReadSignedInt(ptr_, value_arg); in Next()
1160 jval_.i = ReadSignedInt(ptr_, value_arg); in Next()
1164 jval_.i = ReadUnsignedInt(ptr_, value_arg, false); in Next()
1168 jval_.i = ReadSignedInt(ptr_, value_arg); in Next()
1171 jval_.j = ReadSignedLong(ptr_, value_arg); in Next()
1174 jval_.i = ReadUnsignedInt(ptr_, value_arg, true); in Next()
[all …]
Ddex_file.h1315 const byte* ptr_; // Pointer into encoded data array. variable
/art/compiler/utils/
Darena_allocator.cc215 ptr_(nullptr), in ArenaAllocator()
224 arena_head_->bytes_allocated_ = ptr_ - begin_; in UpdateBytesAllocated()
230 if (UNLIKELY(ptr_ + rounded_bytes > end_)) { in AllocValgrind()
233 if (UNLIKELY(ptr_ == nullptr)) { in AllocValgrind()
238 uint8_t* ret = ptr_; in AllocValgrind()
239 ptr_ += rounded_bytes; in AllocValgrind()
241 for (uint8_t* ptr = ret; ptr < ptr_; ++ptr) { in AllocValgrind()
260 ptr_ = begin_ = new_arena->Begin(); in ObtainNewArenaForAllocation()
280 (arena_head_ == nullptr) ? 0 : (end_ - ptr_) - arena_head_->RemainingSpace(); in GetMemStats()
Darena_allocator.h173 if (UNLIKELY(ptr_ + bytes > end_)) { in Alloc()
176 if (UNLIKELY(ptr_ == nullptr)) { in Alloc()
181 uint8_t* ret = ptr_; in Alloc()
182 ptr_ += bytes; in Alloc()
201 uint8_t* ptr_; variable