Home
last modified time | relevance | path

Searched refs:bytes_ (Results 1 – 25 of 36) sorted by relevance

12

/external/icu/android_icu4j/src/main/java/android/icu/util/
DBytesTrie.java46 bytes_=trieBytes; in BytesTrie()
58 bytes_ = other.bytes_; in BytesTrie()
137 state.bytes=bytes_; in saveState()
156 if(bytes_==state.bytes && bytes_!=null && root_==state.root) { in resetToState()
233 return (remainingMatchLength_<0 && (node=bytes_[pos]&0xff)>=kMinValueLead) ? in current()
270 if(inByte==(bytes_[pos++]&0xff)) { in next()
274 return (length<0 && (node=bytes_[pos]&0xff)>=kMinValueLead) ? in next()
318 return (length<0 && (node=(bytes_[pos]&0xff))>=kMinValueLead) ? in next()
326 if(inByte!=bytes_[pos]) { in next()
334 int node=bytes_[pos++]&0xff; in next()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DBytesTrie.java46 bytes_=trieBytes; in BytesTrie()
60 bytes_ = other.bytes_; in BytesTrie()
145 state.bytes=bytes_; in saveState()
165 if(bytes_==state.bytes && bytes_!=null && root_==state.root) { in resetToState()
250 return (remainingMatchLength_<0 && (node=bytes_[pos]&0xff)>=kMinValueLead) ? in current()
289 if(inByte==(bytes_[pos++]&0xff)) { in next()
293 return (length<0 && (node=bytes_[pos]&0xff)>=kMinValueLead) ? in next()
338 return (length<0 && (node=(bytes_[pos]&0xff))>=kMinValueLead) ? in next()
346 if(inByte!=bytes_[pos]) { in next()
354 int node=bytes_[pos++]&0xff; in next()
[all …]
/external/openscreen/platform/base/
Dip_address.cc23 bytes_ = {{b[0], b[1], b[2], b[3]}}; in IPAddress()
25 bytes_ = {{b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7], b[8], b[9], in IPAddress()
35 return bytes_[0] == o.bytes_[0] && bytes_[1] == o.bytes_[1] && in operator ==()
36 bytes_[2] == o.bytes_[2] && bytes_[3] == o.bytes_[3]; in operator ==()
38 return bytes_ == o.bytes_; in operator ==()
47 return bytes_[0] | bytes_[1] | bytes_[2] | bytes_[3]; in operator bool()
49 for (const auto& byte : bytes_) in operator bool()
58 std::memcpy(x, bytes_.data(), 4); in CopyToV4()
63 std::memcpy(x, bytes_.data(), 16); in CopyToV6()
222 return memcmp(bytes_.data(), other.bytes_.data(), 4) < 0; in operator <()
[all …]
Dip_address.h38 constexpr IPAddress() : version_(Version::kV4), bytes_({}) {} in IPAddress()
47 bytes_{{bytes[0], bytes[1], bytes[2], bytes[3]}} {} in IPAddress()
50 : version_(Version::kV4), bytes_{{b[0], b[1], b[2], b[3]}} {} in IPAddress()
53 : version_(Version::kV4), bytes_{{b1, b2, b3, b4}} {} in IPAddress()
85 bytes_{{ in IPAddress()
135 const uint8_t* bytes() const { return bytes_.data(); } in bytes()
143 std::array<uint8_t, 16> bytes_; variable
/external/llvm-project/flang/include/flang/Parser/
Dchar-buffer.h27 : blocks_(std::move(that.blocks_)), bytes_{that.bytes_}, in CharBuffer()
33 bytes_ = that.bytes_;
39 bool empty() const { return bytes_ == 0; } in empty()
40 std::size_t bytes() const { return bytes_; } in bytes()
44 bytes_ = 0; in clear()
65 int LastBlockOffset() const { return bytes_ % Block::capacity; } in LastBlockOffset()
67 std::size_t bytes_{0};
/external/protobuf/js/binary/
Ddecoder.js229 this.bytes_ = null;
320 return jspb.BinaryDecoder.alloc(this.bytes_,
329 this.bytes_ = null;
342 return this.bytes_;
355 this.bytes_ = jspb.utils.byteSourceToUint8Array(data);
358 goog.isDef(opt_length) ? this.start_ + opt_length : this.bytes_.length;
467 temp = this.bytes_[this.cursor_++];
477 temp = this.bytes_[this.cursor_++];
488 temp = this.bytes_[this.cursor_++];
507 while (this.bytes_[this.cursor_] & 0x80) {
[all …]
/external/icu/icu4c/source/common/unicode/
Dbytestrie.h70 : ownedArray_(NULL), bytes_(static_cast<const uint8_t *>(trieBytes)), in BytesTrie()
71 pos_(bytes_), remainingMatchLength_(-1) {} in BytesTrie()
86 : ownedArray_(NULL), bytes_(other.bytes_), in BytesTrie()
95 pos_=bytes_; in reset()
110 (uint64_t)(pos_ - bytes_); in getState64()
129 pos_ = bytes_ + (state & kState64PosMask); in resetToState64()
161 state.bytes=bytes_; in saveState()
178 if(bytes_==state.bytes && bytes_!=NULL) { in resetToState()
206 return nextImpl(bytes_, inByte); in first()
359 const uint8_t *bytes_; variable
[all …]
/external/icu/libicu/cts_headers/unicode/
Dbytestrie.h70 : ownedArray_(NULL), bytes_(static_cast<const uint8_t *>(trieBytes)), in BytesTrie()
71 pos_(bytes_), remainingMatchLength_(-1) {} in BytesTrie()
86 : ownedArray_(NULL), bytes_(other.bytes_), in BytesTrie()
95 pos_=bytes_; in reset()
110 (uint64_t)(pos_ - bytes_); in getState64()
129 pos_ = bytes_ + (state & kState64PosMask); in resetToState64()
161 state.bytes=bytes_; in saveState()
178 if(bytes_==state.bytes && bytes_!=NULL) { in resetToState()
206 return nextImpl(bytes_, inByte); in first()
359 const uint8_t *bytes_; variable
[all …]
/external/python/asn1crypto/asn1crypto/
D_int.py5 def fill_width(bytes_, width): argument
20 while len(bytes_) < width:
21 bytes_ = b'\x00' + bytes_
22 return bytes_
/external/libchrome/mojo/public/cpp/base/
Dbig_buffer.cc67 return bytes_.data(); in data()
81 return bytes_.size(); in size()
109 bytes_ = bytes; in BigBufferView()
117 DCHECK(bytes_.empty()); in SetBytes()
120 bytes_ = bytes; in SetBytes()
125 DCHECK(bytes_.empty()); in SetSharedMemory()
133 return bytes_; in data()
147 std::copy(view.bytes_.begin(), view.bytes_.end(), in ToBigBuffer()
148 std::back_inserter(buffer.bytes_)); in ToBigBuffer()
Dbig_buffer.h107 return bytes_; in COMPONENT_EXPORT()
119 std::vector<uint8_t> bytes_; in COMPONENT_EXPORT() local
161 return bytes_; in COMPONENT_EXPORT()
171 base::span<const uint8_t> bytes_; in COMPONENT_EXPORT() local
/external/deqp-deps/amber/src/
Dbuffer.cc86 buffer->bytes_ = bytes_; in CopyTo()
99 for (uint32_t i = 0; i < bytes_.size(); ++i) { in IsEqual()
100 if (bytes_[i] != buffer->bytes_[i]) { in IsEqual()
103 first_different_left = bytes_[i]; in IsEqual()
104 first_different_right = buffer->bytes_[i]; in IsEqual()
306 bytes_.resize(GetSizeInBytes()); in SetDataWithOffset()
315 memset(bytes_.data() + offset, 0, new_space); in SetDataWithOffset()
320 uint8_t* ptr = bytes_.data() + offset; in SetDataWithOffset()
395 bytes_.resize(element_count * format_->SizeInBytes()); in SetSizeInElements()
401 bytes_.resize(size_in_bytes); in SetSizeInBytes()
[all …]
Dbuffer.h220 std::vector<uint8_t>* ValuePtr() { return &bytes_; } in ValuePtr()
222 const std::vector<uint8_t>* ValuePtr() const { return &bytes_; } in ValuePtr()
227 return reinterpret_cast<const T*>(bytes_.data()); in GetValues()
272 std::vector<uint8_t> bytes_; variable
/external/flatbuffers/js/
Dflatbuffers.js846 this.bytes_ = bytes;
875 return this.bytes_;
902 return this.bytes_.length;
918 return this.bytes_[offset];
934 return this.bytes_[offset] | this.bytes_[offset + 1] << 8;
942 …return this.bytes_[offset] | this.bytes_[offset + 1] << 8 | this.bytes_[offset + 2] << 16 | this.b…
993 this.bytes_[offset] = /** @type {number} */(value);
1001 this.bytes_[offset] = value;
1009 this.bytes_[offset] = value;
1010 this.bytes_[offset + 1] = value >> 8;
[all …]
/external/image_io/includes/image_io/jpeg/
Djpeg_segment_info.h39 type_ == rhs.type_ && bytes_ == rhs.bytes_;
63 const std::vector<Byte>& GetBytes() const { return bytes_; } in GetBytes()
66 std::vector<Byte>* GetMutableBytes() { return &bytes_; } in GetMutableBytes()
79 std::vector<Byte> bytes_; variable
/external/icu/icu4c/source/common/
Dbytestrieiterator.cpp27 : bytes_(static_cast<const uint8_t *>(trieBytes)), in Iterator()
28 pos_(bytes_), initialPos_(bytes_), in Iterator()
49 : bytes_(trie.bytes_), pos_(trie.pos_), initialPos_(trie.pos_), in Iterator()
115 pos=bytes_+stack_->elementAti(stackSize-2); in next()
189 stack_->addElement((int32_t)(skipDelta(pos)-bytes_), errorCode); in branchNext()
202 stack_->addElement((int32_t)(pos-bytes_), errorCode); in branchNext()
/external/tensorflow/tensorflow/core/common_runtime/
Dpending_counts.h84 : num_bytes_(layout.next_offset_), bytes_(new char[num_bytes_]) { in PendingCounts()
86 CHECK_EQ(uintptr_t(bytes_) % alignof(LargeCounts), 0); in PendingCounts()
93 : num_bytes_(other.num_bytes_), bytes_(new char[num_bytes_]) { in PendingCounts()
95 CHECK_EQ(uintptr_t(bytes_) % alignof(LargeCounts), 0); in PendingCounts()
97 memcpy(bytes_, other.bytes_, other.num_bytes_); in PendingCounts()
100 ~PendingCounts() { delete[] bytes_; } in ~PendingCounts()
360 return reinterpret_cast<std::atomic<LargeCounts>*>(bytes_ + h.byte_offset_); in Large()
365 return reinterpret_cast<std::atomic<PackedCounts>*>(bytes_ + in Packed()
370 char* bytes_; // Array of num_bytes_ bytes variable
/external/llvm-project/flang/lib/Parser/
Dchar-buffer.cpp32 bytes_ += n; in Claim()
45 return bytes_ - n; in Put()
54 std::size_t bytes{bytes_}; in Marshal()
64 CHECK(result.size() == bytes_); in Marshal()
Dtoken-parsers.h125 : str_{str}, bytes_{n} {} in TokenStringMatch()
132 for (std::size_t j{0}; j < bytes_ && *p != '\0'; ++j, ++p) { in Parse()
135 if (j + 1 == bytes_ || p[1] == ' ' || p[1] == '\0') { in Parse()
158 state.Say(start, MessageExpectedText{str_, bytes_}); in Parse()
165 state.Say(start, MessageExpectedText{str_, bytes_}); in Parse()
180 const std::size_t bytes_{std::string::npos};
/external/webrtc/rtc_base/
Dbyte_buffer.cc39 bytes_ = bytes; in Construct()
137 val->append(bytes_ + start_, len); in ReadString()
147 memcpy(val, bytes_ + start_, len); in ReadBytes()
Dbyte_buffer.h133 const char* Data() const { return bytes_ + start_; } in Data()
160 const char* bytes_; variable
Dmessage_buffer_reader.h27 const char* MessageData() const { return bytes_; } in MessageData()
/external/webrtc/api/transport/
Dstun.cc937 : StunAttribute(type, 0), bytes_(NULL) {} in StunByteStringAttribute()
941 : StunAttribute(type, 0), bytes_(NULL) { in StunByteStringAttribute()
948 : StunAttribute(type, 0), bytes_(NULL) { in StunByteStringAttribute()
953 : StunAttribute(type, length), bytes_(NULL) {} in StunByteStringAttribute()
956 delete[] bytes_; in ~StunByteStringAttribute()
974 RTC_DCHECK(bytes_ != NULL); in GetByte()
976 return static_cast<uint8_t>(bytes_[index]); in GetByte()
980 RTC_DCHECK(bytes_ != NULL); in SetByte()
982 bytes_[index] = value; in SetByte()
986 bytes_ = new char[length()]; in Read()
[all …]
/external/tensorflow/tensorflow/core/common_runtime/device/
Ddevice_event_mgr_test.cc94 : TensorBuffer(nullptr), bytes_(bytes) { in TestTensorBuffer()
95 live_tensor_bytes += bytes_; in TestTensorBuffer()
97 ~TestTensorBuffer() override { live_tensor_bytes -= bytes_; } in ~TestTensorBuffer()
99 size_t size() const override { return bytes_; } in size()
106 size_t bytes_; member in tensorflow::TestTensorBuffer
/external/tensorflow/tensorflow/stream_executor/
Dkernel_spec.h264 const char *bytes() const { return bytes_; } in bytes()
267 const char *bytes_;

12