Searched refs:ptr_ (Results 1 – 9 of 9) sorted by relevance
/art/libartbase/base/ |
D | stringpiece.h | 52 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece() 54 : ptr_(str), length_((str == nullptr) ? 0 : strlen(str)) { } in StringPiece() 56 : ptr_(str.data()), length_(str.size()) { } in StringPiece() 57 StringPiece(const char* offset, size_t len) : ptr_(offset), length_(len) { } in StringPiece() 63 const char* data() const { return ptr_; } in data() 69 ptr_ = nullptr; in clear() 73 ptr_ = data_in; in set() 77 ptr_ = str; in set() 85 ptr_ = reinterpret_cast<const char*>(data_in); in set() 91 return ptr_[i]; [all …]
|
D | stride_iterator.h | 38 : ptr_(reinterpret_cast<uintptr_t>(ptr)), in StrideIterator() 43 return ptr_ == other.ptr_; 51 ptr_ += stride_; 62 ptr_ -= stride_; 73 ptr_ += static_cast<ssize_t>(stride_) * delta; 84 ptr_ -= static_cast<ssize_t>(stride_) * delta; 96 DCHECK_EQ((ptr_ - rhs.ptr_) % stride_, 0u); 97 return (ptr_ - rhs.ptr_) / stride_; 101 return *reinterpret_cast<T*>(ptr_); 113 uintptr_t ptr_; [all …]
|
/art/libdexfile/dex/ |
D | dex_file_verifier.cc | 556 if (LIKELY(CheckListSize(ptr_, size, sizeof(uint8_t), "encoded_value"))) { in ReadUnsignedLittleEndian() 558 result |= ((uint32_t) *(ptr_++)) << (i * 8); in ReadUnsignedLittleEndian() 592 size_t offset = ptr_ - handlers_base; in CheckAndGetHandlerOffsets() 593 DECODE_SIGNED_CHECKED_FROM(ptr_, size); in CheckAndGetHandlerOffsets() 610 DECODE_UNSIGNED_CHECKED_FROM(ptr_, type_idx); in CheckAndGetHandlerOffsets() 615 DECODE_UNSIGNED_CHECKED_FROM(ptr_, addr); in CheckAndGetHandlerOffsets() 623 DECODE_UNSIGNED_CHECKED_FROM(ptr_, addr); in CheckAndGetHandlerOffsets() 747 if (UNLIKELY(*ptr_ != '\0')) { in CheckPadding() 749 *ptr_, in CheckPadding() 754 ptr_++; in CheckPadding() [all …]
|
D | dex_file.cc | 727 ptr_(array_data), in EncodedArrayValueIterator() 729 array_size_ = (ptr_ != nullptr) ? DecodeUnsignedLeb128(&ptr_) : 0; in EncodedArrayValueIterator() 740 uint8_t value_type = *ptr_++; in Next() 750 jval_.i = DexFile::ReadSignedInt(ptr_, value_arg); in Next() 754 jval_.i = DexFile::ReadSignedInt(ptr_, value_arg); in Next() 758 jval_.i = DexFile::ReadUnsignedInt(ptr_, value_arg, false); in Next() 762 jval_.i = DexFile::ReadSignedInt(ptr_, value_arg); in Next() 765 jval_.j = DexFile::ReadSignedLong(ptr_, value_arg); in Next() 768 jval_.i = DexFile::ReadUnsignedInt(ptr_, value_arg, true); in Next() 771 jval_.j = DexFile::ReadUnsignedLong(ptr_, value_arg, true); in Next() [all …]
|
D | dex_file_verifier.h | 54 ptr_(nullptr), in DexFileVerifier() 235 const uint8_t* ptr_; variable
|
D | dex_file.h | 1422 const uint8_t* ptr_; // Pointer into encoded data array. variable
|
/art/runtime/base/ |
D | arena_allocator.h | 300 if (UNLIKELY(bytes > static_cast<size_t>(end_ - ptr_))) { 303 uint8_t* ret = ptr_; 305 ptr_ += bytes; 317 ((reinterpret_cast<uintptr_t>(ptr_) + 15u) & 15u) - reinterpret_cast<uintptr_t>(ptr_); 319 if (UNLIKELY(padding + bytes > static_cast<size_t>(end_ - ptr_))) { 323 ptr_ += padding; 324 uint8_t* ret = ptr_; 326 ptr_ += bytes; 341 if (end == ptr_) { 343 DCHECK(!IsRunningOnMemoryTool() || ptr_ == nullptr); [all …]
|
D | arena_allocator.cc | 385 size_t total = ptr_ - begin_; in BytesUsed() 399 ptr_(nullptr), in ArenaAllocator() 407 arena_head_->bytes_allocated_ = ptr_ - begin_; in UpdateBytesAllocated() 418 if (UNLIKELY(rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryTool() 421 ret = ptr_; in AllocWithMemoryTool() 422 ptr_ += rounded_bytes; in AllocWithMemoryTool() 437 ((reinterpret_cast<uintptr_t>(ptr_) + 15u) & 15u) - reinterpret_cast<uintptr_t>(ptr_); in AllocWithMemoryToolAlign16() 440 if (UNLIKELY(padding + rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryToolAlign16() 444 ptr_ += padding; // Leave padding inaccessible. in AllocWithMemoryToolAlign16() 445 ret = ptr_; in AllocWithMemoryToolAlign16() [all …]
|
/art/runtime/ |
D | check_jni.cc | 173 VarArgs(jmethodID m, const jvalue* vals) : m_(m), type_(kTypePtr), cnt_(0), ptr_(vals) {} in VarArgs() 188 ptr_ = other.ptr_; in VarArgs() 202 return VarArgs(m_, cnt_, ptr_); in Clone() 231 jvalue v = ptr_[cnt_]; in GetValue() 260 …VarArgs(jmethodID m, uint32_t cnt, const jvalue* vals) : m_(m), type_(kTypePtr), cnt_(cnt), ptr_(v… in VarArgs() 272 const jvalue* ptr_; member
|