Home
last modified time | relevance | path

Searched refs:pos_ (Results 1 - 25 of 134) sorted by relevance

123456

/foundation/multimedia/av_codec/services/media_engine/modules/muxer/
H A Ddata_sink_file.cpp28 DataSinkFile::DataSinkFile(FILE *file) : file_(file), pos_(0), end_(-1), isCanRead_(true) in DataSinkFile()
45 if (pos_ >= end_) { in Read()
49 FALSE_RETURN_V_MSG_E(fseek(file_, pos_, SEEK_SET) >= 0, -1, "failed to seek, %{public}s", strerror(errno)); in Read()
53 pos_ = pos_ + size; in Read()
61 FALSE_RETURN_V_MSG_E(fseek(file_, pos_, SEEK_SET) >= 0, -1, "failed to seek, %{public}s", strerror(errno)); in Write()
65 pos_ = pos_ + size; in Write()
66 end_ = pos_ > end_ ? pos_ in Write()
[all...]
H A Ddata_sink_fd.cpp29 DataSinkFd::DataSinkFd(int32_t fd) : fd_(dup(fd)), pos_(0), end_(-1) in DataSinkFd()
52 if (pos_ >= end_) { in Read()
55 FALSE_RETURN_V_MSG_E(lseek(fd_, pos_, SEEK_SET) >= 0, -1, "failed to seek, %{public}s, fd is %{public}d", in Read()
59 pos_ = pos_ + size; in Read()
66 FALSE_RETURN_V_MSG_E(lseek(fd_, pos_, SEEK_SET) >= 0, -1, "failed to seek, %{public}s, fd is %{public}d", in Write()
70 pos_ = pos_ + size; in Write()
71 end_ = pos_ > end_ ? pos_ in Write()
[all...]
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
H A Dlexer.cc116 return pos_ >= len_; in is_eof()
143 auto pos = pos_; in skip_whitespace_and_comments()
144 while (!is_eof() && is_whitespace(content_->data[pos_])) { in skip_whitespace_and_comments()
145 if (matches(pos_, "\n")) { in skip_whitespace_and_comments()
146 pos_++; in skip_whitespace_and_comments()
152 pos_++; in skip_whitespace_and_comments()
163 if (pos == pos_) in skip_whitespace_and_comments()
174 if (matches(pos_, "//")) { in skip_comment()
177 while (!is_eof() && !matches(pos_, "\n")) { in skip_comment()
178 pos_ in skip_comment()
[all...]
/third_party/node/deps/v8/src/codegen/
H A Dlabel.h42 pos_ = other.pos_;
61 V8_INLINE void Unuse() { pos_ = 0; } in Unuse()
64 V8_INLINE bool is_bound() const { return pos_ < 0; } in is_bound()
65 V8_INLINE bool is_unused() const { return pos_ == 0 && near_link_pos_ == 0; } in is_unused()
66 V8_INLINE bool is_linked() const { return pos_ > 0; } in is_linked()
72 if (pos_ < 0) return -pos_ - 1; in pos()
73 if (pos_ > 0) return pos_ in pos()
86 int pos_ = 0; global() member in v8::internal::Label
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DCharsTrie.java50 pos_=root_=offset; in CharsTrie()
65 pos_ = other.pos_; in CharsTrie()
86 pos_=root_; in reset()
100 return ((long)remainingMatchLength_ << 32) | pos_; in getState64()
119 pos_ = (int)state; in resetToState64()
150 state.pos=pos_; in saveState()
169 pos_=state.pos; in resetToState()
184 int pos=pos_; in current()
229 int pos=pos_; in next()
676 private int pos_; global() field in CharsTrie.Iterator
1070 private int pos_; global() field in CharsTrie
[all...]
H A DBytesTrie.java47 pos_=root_=offset; in BytesTrie()
62 pos_ = other.pos_; in BytesTrie()
83 pos_=root_; in reset()
97 return ((long)remainingMatchLength_ << 32) | pos_; in getState64()
116 pos_ = (int)state; in resetToState64()
147 state.pos=pos_; in saveState()
166 pos_=state.pos; in resetToState()
245 int pos=pos_; in current()
279 int pos=pos_; in next()
740 private int pos_; global() field in BytesTrie.Iterator
1127 private int pos_; global() field in BytesTrie
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
H A DCharsTrie.java50 pos_=root_=offset; in CharsTrie()
63 pos_ = other.pos_; in CharsTrie()
82 pos_=root_; in reset()
95 return ((long)remainingMatchLength_ << 32) | pos_; in getState64()
113 pos_ = (int)state; in resetToState64()
142 state.pos=pos_; in saveState()
160 pos_=state.pos; in resetToState()
174 int pos=pos_; in current()
216 int pos=pos_; in next()
649 private int pos_; global() field in CharsTrie.Iterator
1043 private int pos_; global() field in CharsTrie
[all...]
H A DBytesTrie.java47 pos_=root_=offset; in BytesTrie()
60 pos_ = other.pos_; in BytesTrie()
79 pos_=root_; in reset()
92 return ((long)remainingMatchLength_ << 32) | pos_; in getState64()
110 pos_ = (int)state; in resetToState64()
139 state.pos=pos_; in saveState()
157 pos_=state.pos; in resetToState()
228 int pos=pos_; in current()
260 int pos=pos_; in next()
705 private int pos_; global() field in BytesTrie.Iterator
1087 private int pos_; global() field in BytesTrie
[all...]
/base/hiviewdfx/hiview/base/event_raw/decoded/
H A Ddecoded_param.cpp32 return pos_; in GetPosition()
77 return RawDataDecoder::UnsignedVarintDecoded(rawData_, maxLen_, pos_, val_); in DecodeValue()
94 auto ret = RawDataDecoder::UnsignedVarintDecoded(rawData_, maxLen_, pos_, size); in DecodeValue()
97 ret = ret && RawDataDecoder::UnsignedVarintDecoded(rawData_, maxLen_, pos_, val); in DecodeValue()
120 return RawDataDecoder::SignedVarintDecoded(rawData_, maxLen_, pos_, val_); in DecodeValue()
137 auto ret = RawDataDecoder::UnsignedVarintDecoded(rawData_, maxLen_, pos_, size); in DecodeValue()
140 ret = ret && RawDataDecoder::SignedVarintDecoded(rawData_, maxLen_, pos_, val); in DecodeValue()
163 return RawDataDecoder::FloatingNumberDecoded(rawData_, maxLen_, pos_, val_); in DecodeValue()
180 auto ret = RawDataDecoder::UnsignedVarintDecoded(rawData_, maxLen_, pos_, size); in DecodeValue()
183 ret = ret && RawDataDecoder::FloatingNumberDecoded(rawData_, maxLen_, pos_, va in DecodeValue()
[all...]
/foundation/window/window_manager/test/fuzztest/window_scene/
H A Ddata_source.h27 DataSource(const std::uint8_t* data, size_t size) : data_(data), size_(size), pos_(0) {} in DataSource()
34 if (!data_ || (objSize > size_ - pos_)) { in GetObject()
37 auto ret = memcpy_s(&object, objSize, data_ + pos_, objSize); in GetObject()
41 pos_ += objSize; in GetObject()
47 if (!data_ || (rawSize > size_ - pos_)) { in GetRaw()
50 auto current = pos_; in GetRaw()
51 pos_ += rawSize; in GetRaw()
70 size_t pos_; member in OHOS::Rosen::DataSource
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/model/
H A Dmodel_position.h31 pos_ = Vec3(src.GetX(), src.GetY(), src.GetZ(), src.GetPosition().GetAnimationOption()); in ModelPosition()
41 pos_.SetContextAndCallbacks(context, std::forward<RenderNodeAnimationCallback>(callback)); in SetContextAndCallbacks()
47 pos_ = pos; in Set()
54 pos_ = pos; in SetPosition()
69 return pos_; in GetPosition()
74 return pos_.GetX(); in GetX()
79 return pos_.GetY(); in GetY()
84 return pos_.GetZ(); in GetZ()
98 Vec3 pos_ { 0.0f, 0.0f, 4.0f };
/foundation/ai/ai_engine/services/common/utils/encdec/source/
H A Ddata_encoder.cpp47 DataEncoder::DataEncoder() : buffer_(nullptr), pos_(0), allocSuccess_(false) in DataEncoder()
68 CHK_RET(EncodeOneParameter(pos_) != RETCODE_SUCCESS, RETCODE_FAILURE); in GetSerializedData()
69 CHK_RET(buffer_ == nullptr || pos_ == 0, RETCODE_FAILURE); in GetSerializedData()
70 if (pos_ > INT_MAX) { // pos_ is unsigned but data.length is signed, avoid implicit conversion. in GetSerializedData()
74 dataInfo.length = pos_; in GetSerializedData()
79 errno_t res = memcpy_s(dataInfo.data, dataInfo.length, buffer_->data, pos_); in GetSerializedData()
88 pos_ = 0; in GetSerializedData()
96 if (buffer_->blockSize >= pos_ + incSize) { in Ensure()
113 size_t leftSize = pos_; in ReallocBuffer()
[all...]
/third_party/node/deps/v8/src/wasm/
H A Dwasm-module-builder.h36 pos_ = buffer_; in ZoneBuffer()
42 *(pos_++) = x; in write_u8()
47 base::WriteLittleEndianValue<uint16_t>(reinterpret_cast<Address>(pos_), x); in write_u16()
48 pos_ += 2; in write_u16()
53 base::WriteLittleEndianValue<uint32_t>(reinterpret_cast<Address>(pos_), x); in write_u32()
54 pos_ += 4; in write_u32()
59 base::WriteLittleEndianValue<uint64_t>(reinterpret_cast<Address>(pos_), x); in write_u64()
60 pos_ += 8; in write_u64()
65 LEBHelper::write_u32v(&pos_, val); in write_u32v()
70 LEBHelper::write_i32v(&pos_, va in write_i32v()
160 byte* pos_; global() member in v8::internal::wasm::ZoneBuffer
[all...]
/third_party/icu/icu4c/source/common/
H A Dbytestrieiterator.cpp28 pos_(bytes_), initialPos_(bytes_), in Iterator()
49 : bytes_(trie.bytes_), pos_(trie.pos_), initialPos_(trie.pos_), in Iterator()
72 str_->append(reinterpret_cast<const char *>(pos_), length, errorCode); in Iterator()
73 pos_+=length; in Iterator()
85 pos_=initialPos_; in reset()
92 pos_+=length; in reset()
99 BytesTrie::Iterator::hasNext() const { return pos_!=NULL || !stack_->isEmpty(); } in hasNext()
106 const uint8_t *pos=pos_; in next()
[all...]
H A Ducharstrieiterator.cpp27 pos_(uchars_), initialPos_(uchars_), in Iterator()
48 : uchars_(trie.uchars_), pos_(trie.pos_), initialPos_(trie.pos_), in Iterator()
71 str_.append(pos_, length); in Iterator()
72 pos_+=length; in Iterator()
83 pos_=initialPos_; in reset()
91 pos_+=length; in reset()
98 UCharsTrie::Iterator::hasNext() const { return pos_!=NULL || !stack_->isEmpty(); } in hasNext()
105 const UChar *pos=pos_; in next()
[all...]
/third_party/icu/icu4c/source/common/unicode/
H A Dbytestrie.h73 pos_(bytes_), remainingMatchLength_(-1) {} in BytesTrie()
89 pos_(other.pos_), remainingMatchLength_(other.remainingMatchLength_) {} in BytesTrie()
97 pos_=bytes_; in reset()
112 (uint64_t)(pos_ - bytes_); in getState64()
131 pos_ = bytes_ + (state & kState64PosMask); in resetToState64()
164 state.pos=pos_; in saveState()
181 pos_=state.pos; in resetToState()
247 const uint8_t *pos=pos_; in getValue()
263 const uint8_t *pos=pos_; in hasUniqueValue()
362 const uint8_t *pos_; global() member in BytesTrie::Iterator
559 const uint8_t *pos_; global() member in BytesTrie
[all...]
/third_party/node/deps/icu-small/source/common/unicode/
H A Dbytestrie.h73 pos_(bytes_), remainingMatchLength_(-1) {} in BytesTrie()
89 pos_(other.pos_), remainingMatchLength_(other.remainingMatchLength_) {} in BytesTrie()
97 pos_=bytes_; in reset()
112 (uint64_t)(pos_ - bytes_); in getState64()
131 pos_ = bytes_ + (state & kState64PosMask); in resetToState64()
164 state.pos=pos_; in saveState()
181 pos_=state.pos; in resetToState()
247 const uint8_t *pos=pos_; in getValue()
263 const uint8_t *pos=pos_; in hasUniqueValue()
362 const uint8_t *pos_; global() member in BytesTrie::Iterator
559 const uint8_t *pos_; global() member in BytesTrie
[all...]
/third_party/node/deps/icu-small/source/common/
H A Dbytestrieiterator.cpp28 pos_(bytes_), initialPos_(bytes_), in Iterator()
49 : bytes_(trie.bytes_), pos_(trie.pos_), initialPos_(trie.pos_), in Iterator()
72 str_->append(reinterpret_cast<const char *>(pos_), length, errorCode); in Iterator()
73 pos_+=length; in Iterator()
85 pos_=initialPos_; in reset()
92 pos_+=length; in reset()
99 BytesTrie::Iterator::hasNext() const { return pos_!=nullptr || !stack_->isEmpty(); } in hasNext()
106 const uint8_t *pos=pos_; in next()
[all...]
H A Ducharstrieiterator.cpp27 pos_(uchars_), initialPos_(uchars_), in Iterator()
48 : uchars_(trie.uchars_), pos_(trie.pos_), initialPos_(trie.pos_), in Iterator()
71 str_.append(pos_, length); in Iterator()
72 pos_+=length; in Iterator()
83 pos_=initialPos_; in reset()
91 pos_+=length; in reset()
98 UCharsTrie::Iterator::hasNext() const { return pos_!=nullptr || !stack_->isEmpty(); } in hasNext()
105 const char16_t *pos=pos_; in next()
[all...]
/third_party/skia/third_party/externals/icu/source/common/
H A Dbytestrieiterator.cpp28 pos_(bytes_), initialPos_(bytes_), in Iterator()
49 : bytes_(trie.bytes_), pos_(trie.pos_), initialPos_(trie.pos_), in Iterator()
72 str_->append(reinterpret_cast<const char *>(pos_), length, errorCode); in Iterator()
73 pos_+=length; in Iterator()
85 pos_=initialPos_; in reset()
92 pos_+=length; in reset()
99 BytesTrie::Iterator::hasNext() const { return pos_!=NULL || !stack_->isEmpty(); } in hasNext()
106 const uint8_t *pos=pos_; in next()
[all...]
/third_party/skia/third_party/externals/icu/source/common/unicode/
H A Dbytestrie.h73 pos_(bytes_), remainingMatchLength_(-1) {} in BytesTrie()
89 pos_(other.pos_), remainingMatchLength_(other.remainingMatchLength_) {} in BytesTrie()
97 pos_=bytes_; in reset()
112 (uint64_t)(pos_ - bytes_); in getState64()
131 pos_ = bytes_ + (state & kState64PosMask); in resetToState64()
164 state.pos=pos_; in saveState()
181 pos_=state.pos; in resetToState()
247 const uint8_t *pos=pos_; in getValue()
263 const uint8_t *pos=pos_; in hasUniqueValue()
362 const uint8_t *pos_; global() member in BytesTrie::Iterator
559 const uint8_t *pos_; global() member in BytesTrie
[all...]
/foundation/ai/ai_engine/services/common/utils/encdec/include/
H A Ddata_decoder.h31 explicit DataDecoder(const DataInfo dataInfo) : buffer_(dataInfo.data), size_(dataInfo.length), pos_(0) in DataDecoder()
75 if ((pos_ != size_) || (pos_ != dataSize + sizeof(dataSize))) { in CheckDataEnd()
77 pos_, dataSize, size_); in CheckDataEnd()
110 if (memcpy_s(&val, sizeof(val), buffer_ + pos_, sizeof(val)) != EOK) { in DecodeOneParameter()
114 pos_ += sizeof(T); in DecodeOneParameter()
125 return (size <= size_ && (pos_ + size) <= size_); in Ensure()
141 size_t pos_ {0};
/foundation/graphic/graphic_3d/3d_widget_adapter/include/data_type/
H A Dposition.h29 pos_ = vec; in SetPosition()
44 return pos_; in GetPosition()
49 return pos_.GetX(); in GetX()
54 return pos_.GetY(); in GetY()
59 return pos_.GetZ(); in GetZ()
73 OHOS::Render3D::Vec3 pos_ { 0.0f, 0.0f, 4.0f };
/third_party/node/deps/brotli/c/enc/
H A Dringbuffer.h41 uint32_t pos_; member
51 rb->pos_ = 0; in RingBufferInit()
95 const size_t masked_pos = rb->pos_ & rb->mask_; in RingBufferWriteTail()
107 if (rb->pos_ == 0 && n < rb->tail_size_) { in RingBufferWrite()
114 rb->pos_ = (uint32_t)n; in RingBufferWrite()
115 RingBufferInitBuffer(m, rb->pos_, rb); in RingBufferWrite()
133 const size_t masked_pos = rb->pos_ & rb->mask_; in RingBufferWrite()
151 BROTLI_BOOL not_first_lap = (rb->pos_ & (1u << 31)) != 0; in RingBufferWrite()
155 rb->pos_ = (rb->pos_ in RingBufferWrite()
[all...]
/third_party/skia/third_party/externals/brotli/c/enc/
H A Dringbuffer.h41 uint32_t pos_; member
51 rb->pos_ = 0; in RingBufferInit()
95 const size_t masked_pos = rb->pos_ & rb->mask_; in RingBufferWriteTail()
107 if (rb->pos_ == 0 && n < rb->tail_size_) { in RingBufferWrite()
114 rb->pos_ = (uint32_t)n; in RingBufferWrite()
115 RingBufferInitBuffer(m, rb->pos_, rb); in RingBufferWrite()
133 const size_t masked_pos = rb->pos_ & rb->mask_; in RingBufferWrite()
151 BROTLI_BOOL not_first_lap = (rb->pos_ & (1u << 31)) != 0; in RingBufferWrite()
155 rb->pos_ = (rb->pos_ in RingBufferWrite()
[all...]

Completed in 13 milliseconds

123456