Home
last modified time | relevance | path

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

/art/runtime/base/
Dstringpiece.cc25 target->assign(ptr_, length_); in CopyToString()
29 int ret = std::min(length_ - pos, n); in copy()
35 if (length_ < 0 || pos > static_cast<size_type>(length_)) in find()
38 const char* result = std::search(ptr_ + pos, ptr_ + length_, in find()
39 s.ptr_, s.ptr_ + s.length_); in find()
41 return xpos + s.length_ <= static_cast<size_type>(length_) ? xpos : npos; in find()
45 int r = memcmp(ptr_, x.ptr_, std::min(length_, x.length_)); in compare()
47 if (length_ < x.length_) r = -1; in compare()
48 else if (length_ > x.length_) r = +1; in compare()
54 if (length_ <= 0 || pos >= static_cast<size_type>(length_)) { in find()
[all …]
Dstringpiece.h42 int length_; variable
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()
60 int size() const { return length_; } in size()
61 int length() const { return length_; } in length()
62 bool empty() const { return length_ == 0; } in empty()
66 length_ = 0; in clear()
70 length_ = len; in set()
[all …]
/art/runtime/verifier/
Dinstruction_flags.h30 InstructionFlags() : length_(0), flags_(0) {} in InstructionFlags()
34 length_ = length; in SetLengthInCodeUnits()
37 return length_; in GetLengthInCodeUnits()
40 return length_ != 0; in IsOpcode()
131 uint16_t length_; variable
/art/compiler/utils/mips/
Dassembler_mips.h56 CHECK_GE(length_, 2);
57 return static_cast<int8_t>(encoding_[length_ - 1]);
61 CHECK_GE(length_, 5);
63 memcpy(&value, &encoding_[length_ - 4], sizeof(value));
74 Operand() : length_(0) { }
79 length_ = 1;
83 CHECK_EQ(length_, 1);
86 length_ = 2;
90 CHECK(length_ == 1 || length_ == 2);
91 encoding_[length_++] = static_cast<uint8_t>(disp);
[all …]
/art/runtime/mirror/
Darray.h42 return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), false); in GetLength()
47 SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length, false); in SetLength()
51 return OFFSET_OF_OBJECT_MEMBER(Array, length_); in LengthOffset()
90 int32_t length_;
/art/compiler/utils/x86/
Dassembler_x86.h72 CHECK_GE(length_, 2); in disp8()
73 return static_cast<int8_t>(encoding_[length_ - 1]); in disp8()
77 CHECK_GE(length_, 5); in disp32()
79 memcpy(&value, &encoding_[length_ - 4], sizeof(value)); in disp32()
90 Operand() : length_(0) { } in Operand()
95 length_ = 1; in SetModRM()
99 CHECK_EQ(length_, 1); in SetSIB()
102 length_ = 2; in SetSIB()
106 CHECK(length_ == 1 || length_ == 2); in SetDisp8()
107 encoding_[length_++] = static_cast<uint8_t>(disp); in SetDisp8()
[all …]
Dassembler_x86.cc145 EmitLabel(lbl, dst.length_ + 5); in movl()
1319 const int length = operand.length_; in EmitOperand()
/art/runtime/hprof/
Dhprof.cc206 length_ = 0; in StartNewRecord()
217 U4_TO_BUF_BE(headBuf, 5, length_); in Flush()
223 nb = fwrite(body_, 1, length_, fp_); in Flush()
224 if (nb != static_cast<int>(length_)) { in Flush()
240 body_[length_++] = value; in AddU1()
266 memcpy(body_ + length_, values, numValues); in AddU1List()
267 length_ += numValues; in AddU1List()
277 unsigned char* insert = body_ + length_; in AddU2List()
282 length_ += numValues * 2; in AddU2List()
292 unsigned char* insert = body_ + length_; in AddU4List()
[all …]