HomeSort by relevance Sort by last modified time
    Searched refs:length_ (Results 1 - 25 of 186) sorted by null

1 2 3 4 5 6 7 8

  /external/chromium_org/net/spdy/
spdy_pinnable_buffer_piece.cc 10 : buffer_(0), length_(0) {}
15 if (!storage_ && buffer_ != NULL && length_ != 0) {
16 storage_.reset(new char[length_]);
17 std::copy(buffer_, buffer_ + length_, storage_.get());
23 size_t length = length_;
24 length_ = other->length_;
25 other->length_ = length;
spdy_pinnable_buffer_piece.h 32 return length_;
36 return base::StringPiece(buffer_, length_);
53 size_t length_; member in struct:net::SpdyPinnableBufferPiece
  /external/chromium_org/courgette/
region.h 20 Region() : start_(NULL), length_(0) {}
25 length_(length) {
32 length_(string.length()) {
36 Region(const Region& other) : start_(other.start_), length_(other.length_) {}
41 this->length_ = other.length_;
49 size_t length() const { return length_; }
52 const uint8* end() const { return start_ + length_; }
56 size_t length_; member in class:courgette::Region
    [all...]
  /external/chromium_org/third_party/icu/source/common/unicode/
stringpiece.h 55 int32_t length_; member in class:StringPiece
62 StringPiece() : ptr_(NULL), length_(0) { }
75 : ptr_(str.data()), length_(static_cast<int32_t>(str.size())) { }
83 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { }
117 int32_t size() const { return length_; }
123 int32_t length() const { return length_; }
129 UBool empty() const { return length_ == 0; }
135 void clear() { ptr_ = NULL; length_ = 0; }
143 void set(const char* xdata, int32_t len) { ptr_ = xdata; length_ = len; }
159 if (n > length_) {
    [all...]
  /external/icu/icu4c/source/common/unicode/
stringpiece.h 55 int32_t length_; member in class:StringPiece
62 StringPiece() : ptr_(NULL), length_(0) { }
75 : ptr_(str.data()), length_(static_cast<int32_t>(str.size())) { }
83 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { }
117 int32_t size() const { return length_; }
123 int32_t length() const { return length_; }
129 UBool empty() const { return length_ == 0; }
135 void clear() { ptr_ = NULL; length_ = 0; }
143 void set(const char* xdata, int32_t len) { ptr_ = xdata; length_ = len; }
159 if (n > length_) {
    [all...]
  /external/chromium_org/third_party/re2/util/
stringpiece.cc 33 target->assign(ptr_, length_);
37 int ret = min(length_ - pos, n);
43 if (length_ < 0 || pos > static_cast<size_type>(length_))
46 const char* result = std::search(ptr_ + pos, ptr_ + length_,
47 s.ptr_, s.ptr_ + s.length_);
49 return xpos + s.length_ <= length_ ? xpos : npos;
53 if (length_ <= 0 || pos >= static_cast<size_type>(length_)) {
    [all...]
  /external/regex-re2/util/
stringpiece.cc 33 target->assign(ptr_, length_);
37 int ret = min(length_ - pos, n);
43 if (length_ < 0 || pos > static_cast<size_type>(length_))
46 const char* result = std::search(ptr_ + pos, ptr_ + length_,
47 s.ptr_, s.ptr_ + s.length_);
49 return xpos + s.length_ <= length_ ? xpos : npos;
53 if (length_ <= 0 || pos >= static_cast<size_type>(length_)) {
    [all...]
  /external/chromium_org/third_party/re2/re2/
stringpiece.h 35 int length_; member in class:re2::StringPiece
41 StringPiece() : ptr_(NULL), length_(0) { }
43 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int>(strlen(str))) { }
45 : ptr_(str.data()), length_(static_cast<int>(str.size())) { }
46 StringPiece(const char* offset, int len) : ptr_(offset), length_(len) { }
53 int size() const { return length_; }
54 int length() const { return length_; }
55 bool empty() const { return length_ == 0; }
57 void clear() { ptr_ = NULL; length_ = 0; }
58 void set(const char* data, int len) { ptr_ = data; length_ = len;
    [all...]
  /external/regex-re2/re2/
stringpiece.h 32 int length_; member in class:re2::StringPiece
38 StringPiece() : ptr_(NULL), length_(0) { }
40 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int>(strlen(str))) { }
42 : ptr_(str.data()), length_(static_cast<int>(str.size())) { }
43 StringPiece(const char* offset, int len) : ptr_(offset), length_(len) { }
50 int size() const { return length_; }
51 int length() const { return length_; }
52 bool empty() const { return length_ == 0; }
54 void clear() { ptr_ = NULL; length_ = 0; }
55 void set(const char* data, int len) { ptr_ = data; length_ = len;
    [all...]
  /external/chromium_org/third_party/libjingle/source/talk/media/base/
audioframe.h 37 length_(0),
43 length_(audio_length),
49 size_t GetSize() const { return length_; }
57 size_t length_; member in class:cricket::AudioFrame
  /art/runtime/base/
stringpiece.cc 25 target->assign(ptr_, length_);
29 int ret = std::min(length_ - pos, n);
35 if (length_ < 0 || pos > static_cast<size_type>(length_))
38 const char* result = std::search(ptr_ + pos, ptr_ + length_,
39 s.ptr_, s.ptr_ + s.length_);
41 return xpos + s.length_ <= static_cast<size_type>(length_) ? xpos : npos;
45 int r = memcmp(ptr_, x.ptr_, std::min(length_, x.length_));
    [all...]
stringpiece.h 42 int length_; member in class:art::StringPiece
48 StringPiece() : ptr_(NULL), length_(0) { }
50 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int>(strlen(str))) { }
52 : ptr_(str.data()), length_(static_cast<int>(str.size())) { }
53 StringPiece(const char* offset, int len) : ptr_(offset), length_(len) { }
60 int size() const { return length_; }
61 int length() const { return length_; }
62 bool empty() const { return length_ == 0; }
66 length_ = 0;
70 length_ = len
    [all...]
  /external/chromium_org/third_party/icu/source/common/
stringpiece.cpp 17 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int32_t>(uprv_strlen(str))) { }
22 } else if (pos > x.length_) {
23 pos = x.length_;
26 length_ = x.length_ - pos;
32 } else if (pos > x.length_) {
33 pos = x.length_;
37 } else if (len > x.length_ - pos) {
38 len = x.length_ - pos;
41 length_ = len
    [all...]
  /external/icu/icu4c/source/common/
stringpiece.cpp 17 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int32_t>(uprv_strlen(str))) { }
22 } else if (pos > x.length_) {
23 pos = x.length_;
26 length_ = x.length_ - pos;
32 } else if (pos > x.length_) {
33 pos = x.length_;
37 } else if (len > x.length_ - pos) {
38 len = x.length_ - pos;
41 length_ = len
    [all...]
  /external/chromium_org/third_party/ots/include/
ots-memory-stream.h 18 : ptr_(ptr), length_(length), off_(0) {
22 if ((off_ + length > length_) ||
33 if (static_cast<size_t>(position) > length_) return false;
44 size_t length_; member in class:ots::MemoryStream
51 : length_(initial), limit_(limit), off_(0) {
52 ptr_ = new uint8_t[length_];
64 if ((off_ + length > length_) ||
66 if (length_ == limit_)
68 size_t new_length = (length_ + 1) * 2;
69 if (new_length < length_)
98 size_t length_; member in class:ots::ExpandingMemoryStream
    [all...]
  /external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/strings/
string_piece.cc 38 size_type ret = std::min(length_ - pos, n);
44 if (pos > length_)
47 const char* result = std::search(ptr_ + pos, ptr_ + length_,
48 s.ptr_, s.ptr_ + s.length_);
50 return xpos + s.length_ <= length_ ? xpos : npos;
54 if (pos >= length_)
57 const char* result = std::find(ptr_ + pos, ptr_ + length_, c);
58 return result != ptr_ + length_ ? static_cast<size_t>(result - ptr_) : npos;
62 if (length_ < s.length_
    [all...]
string_piece.h 49 StringPiece() : ptr_(NULL), length_(0) { }
51 : ptr_(str), length_((str == NULL) ? 0 : strlen(str)) { }
53 : ptr_(str.data()), length_(str.size()) { }
55 : ptr_(offset), length_(len) { }
62 size_type size() const { return length_; }
63 size_type length() const { return length_; }
64 bool empty() const { return length_ == 0; }
68 length_ = 0;
72 length_ = len;
76 length_ = str ? strlen(str) : 0
164 size_type length_; member in class:i18n::phonenumbers::StringPiece
    [all...]
  /external/chromium_org/net/quic/
quic_data_writer.cc 22 length_(0) {
33 length_ = 0;
121 if (length_ > capacity_) {
125 if (capacity_ - length_ < length) {
133 return buffer_ + length_;
144 length_ += data_len;
156 length_ += count;
161 DCHECK_LE(length_, capacity_);
162 if (length_ > capacity_) {
165 memset(buffer_ + length_, 0x00, capacity_ - length_)
    [all...]
  /external/chromium_org/remoting/base/
typed_buffer.h 26 TypedBuffer() : buffer_(NULL), length_(0) {
30 explicit TypedBuffer(uint32 length) : buffer_(NULL), length_(length) {
31 if (length_ > 0)
32 buffer_ = reinterpret_cast<T*>(new uint8[length_]);
36 TypedBuffer(RValue rvalue) : buffer_(NULL), length_(0) {
69 uint32 length() const { return length_; }
85 std::swap(length_, other.length_);
93 uint32 length_; member in class:remoting::TypedBuffer
  /external/chromium_org/v8/src/
vector.h 22 Vector() : start_(NULL), length_(0) {}
23 Vector(T* data, int length) : start_(data), length_(length) {
34 SLOW_DCHECK(to <= length_);
41 int length() const { return length_; }
44 bool is_empty() const { return length_ == 0; }
51 DCHECK(0 <= index && index < length_);
59 T& last() { return start_[length_ - 1]; }
63 T* result = NewArray<T>(length_);
64 for (int i = 0; i < length_; i++) result[i] = start_[i];
65 return Vector<T>(result, length_);
    [all...]
  /external/chromium_org/third_party/webrtc/
frame_callback.h 24 EncodedFrame() : data_(NULL), length_(0), frame_type_(kFrameEmpty) {}
26 : data_(data), length_(length), frame_type_(frame_type) {}
29 const size_t length_; member in struct:webrtc::EncodedFrame
  /external/chromium_org/storage/common/
data_element.cc 13 length_(kuint64max) {
25 length_ = length;
35 length_ = length;
45 length_ = length;
  /external/chromium_org/third_party/brotli/src/woff2/
buffer.h 69 length_(len),
80 if ((offset_ + n_bytes > length_) ||
81 (offset_ > length_ - n_bytes)) {
92 if (offset_ + 1 > length_) {
101 if (offset_ + 2 > length_) {
115 if (offset_ + 3 > length_) {
126 if (offset_ + 4 > length_) {
140 if (offset_ + 4 > length_) {
149 if (offset_ + 8 > length_) {
159 size_t length() const { return length_; }
165 const size_t length_; member in class:woff2::Buffer
    [all...]
  /external/chromium_org/chrome/test/logging/win/
mof_data_parser.h 48 if (length_ < sizeof(**value))
60 bool empty() { return length_ == 0; }
65 length_ -= num_bytes;
69 if (length_ < sizeof(*value))
77 if (length_ < sizeof(**values) * size)
85 uint32 length_; member in class:logging_win::MofDataParser
  /external/chromium_org/third_party/brotli/src/brotli/enc/
block_splitter.h 39 : split_(split), idx_(0), type_(0), length_(0) {
41 length_ = split.lengths_[0];
46 if (length_ == 0) {
49 length_ = split_.lengths_[idx_];
51 --length_;
57 int length_; member in struct:brotli::BlockSplitIterator

Completed in 347 milliseconds

1 2 3 4 5 6 7 8