Home
last modified time | relevance | path

Searched refs:buf_ (Results 1 – 25 of 62) sorted by relevance

123

/third_party/skia/third_party/externals/libwebp/src/utils/
Dbit_writer_utils.c46 assert(bw->buf_ != NULL); in BitWriterResize()
47 memcpy(new_buf, bw->buf_, bw->pos_); in BitWriterResize()
49 WebPSafeFree(bw->buf_); in BitWriterResize()
50 bw->buf_ = new_buf; in BitWriterResize()
67 if (pos > 0) bw->buf_[pos - 1]++; in Flush()
71 for (; bw->run_ > 0; --bw->run_) bw->buf_[pos++] = value; in Flush()
73 bw->buf_[pos++] = bits & 0xff; in Flush()
170 bw->buf_ = NULL; in VP8BitWriterInit()
178 return bw->buf_; in VP8BitWriterFinish()
186 memcpy(bw->buf_ + bw->pos_, data, size); in VP8BitWriterAppend()
[all …]
Dbit_reader_utils.c27 br->buf_ = start; in VP8BitReaderSetBuffer()
48 if (br->buf_ != NULL) { in VP8RemapBitReader()
49 br->buf_ += offset; in VP8RemapBitReader()
88 assert(br != NULL && br->buf_ != NULL); in VP8LoadFinalBytes()
90 if (br->buf_ < br->buf_end_) { in VP8LoadFinalBytes()
92 br->value_ = (bit_t)(*br->buf_++) | (br->value_ << 8); in VP8LoadFinalBytes()
161 br->buf_ = start; in VP8LInitBitReader()
169 br->buf_ = buf; in VP8LBitReaderSetBuffer()
184 br->val_ |= ((vp8l_val_t)br->buf_[br->pos_]) << (VP8L_LBITS - 8); in ShiftBytes()
199 br->val_ |= (vp8l_val_t)HToLE32(WebPMemToUint32(br->buf_ + br->pos_)) << in VP8LDoFillBitWindow()
[all …]
Dbit_reader_inl_utils.h59 assert(br != NULL && br->buf_ != NULL); in VP8LoadNewBytes()
61 if (br->buf_ < br->buf_max_) { in VP8LoadNewBytes()
67 lbit_t* p_buf_ = (lbit_t*)br->buf_; in VP8LoadNewBytes()
80 memcpy(&in_bits, br->buf_, sizeof(in_bits)); in VP8LoadNewBytes()
82 br->buf_ += BITS >> 3; in VP8LoadNewBytes()
Dbit_writer_utils.h32 uint8_t* buf_; // internal buffer. Re-allocated regularly. Not owned. member
63 return bw->buf_; in VP8BitWriterBuf()
92 uint8_t* buf_; // start of buffer member
104 return (bw->cur_ - bw->buf_) + ((bw->used_ + 7) >> 3); in VP8LBitWriterNumBytes()
/third_party/protobuf/src/google/protobuf/stubs/
Dbytestream.cc89 buf_(new char[estimated_size]), in GrowingArrayByteSink()
94 delete[] buf_; // Just in case the user didn't call GetBuffer. in ~GrowingArrayByteSink()
99 if (bytes != (buf_ + size_)) { in Append()
102 GOOGLE_DCHECK(!(buf_ <= bytes && bytes < (buf_ + capacity_))) in Append()
108 if (n > 0 && bytes != (buf_ + size_)) { in Append()
109 memcpy(buf_ + size_, bytes, n); in Append()
116 char* b = buf_; in GetBuffer()
118 buf_ = nullptr; in GetBuffer()
126 memcpy(bigger, buf_, size_); in Expand()
127 delete[] buf_; in Expand()
[all …]
/third_party/nghttp2/src/
Dlibevent_util.cc37 buf_(nullptr), in EvbufferBuffer()
47 buf_(buf), in EvbufferBuffer()
56 buf_ = buf; in reset()
73 for (auto pos = buf_, end = buf_ + buflen_; pos < end;) { in write_buffer()
94 rv = evbuffer_add(evbuffer_, buf_, buflen_); in flush()
112 rv = evbuffer_add(evbuffer_, buf_, buflen_); in add()
135 memcpy(buf_ + buflen_, data, datalen); in add()
/third_party/ninja/src/
Dbuild_log.cc212 : file_(file), buf_end_(buf_), line_start_(buf_), line_end_(NULL) { in LineReader()
213 memset(buf_, 0, sizeof(buf_)); in LineReader()
223 size_t size_read = fread(buf_, 1, sizeof(buf_), file_); in ReadLine()
226 line_start_ = buf_; in ReadLine()
227 buf_end_ = buf_ + size_read; in ReadLine()
236 size_t already_consumed = line_start_ - buf_; in ReadLine()
237 size_t size_rest = (buf_end_ - buf_) - already_consumed; in ReadLine()
238 memmove(buf_, line_start_, size_rest); in ReadLine()
240 size_t read = fread(buf_ + size_rest, 1, sizeof(buf_) - size_rest, file_); in ReadLine()
241 buf_end_ = buf_ + size_rest + read; in ReadLine()
[all …]
/third_party/node/src/
Dnode_http_common.h258 return reinterpret_cast<const nv_t*>(*buf_);
262 return reinterpret_cast<const nv_t*>(*buf_); in data()
271 MaybeStackBuffer<char, 3000> buf_; variable
319 buf_ = other.buf_; in NgRcBufPointer()
320 other.buf_ = nullptr; in NgRcBufPointer()
334 vector_t v = T::get_vec(buf_); in data()
339 vector_t v = T::get_vec(buf_); in len()
348 if (buf_ == ptr)
351 if (buf_ != nullptr)
352 T::dec(buf_);
[all …]
Dutil.h374 return buf_; in out()
378 return buf_; in out()
383 return buf_;
387 return buf_;
392 return buf_[index];
397 return buf_[index];
428 buf_[length] = T(); in SetLengthAndZeroTerminate()
439 buf_ = nullptr; in Invalidate()
444 return !IsInvalidated() && buf_ != buf_st_; in IsAllocated()
449 return buf_ == nullptr; in IsInvalidated()
[all …]
Dnode_http_common-inl.h30 buf_.AllocateSufficientStorage((alignof(nv_t) - 1) + in NgHeaders()
34 char* start = AlignUp(buf_.out(), alignof(nv_t)); in NgHeaders()
38 CHECK_LE(header_contents + header_string_len, *buf_ + buf_.length()); in NgHeaders()
/third_party/openh264/test/api/
Ddecode_encode_test.cpp64 WritePlaneBuffer (&buf_, y.data, y.width, y.height, y.stride); in onDecodeFrame()
65 WritePlaneBuffer (&buf_, u.data, u.width, u.height, u.stride); in onDecodeFrame()
66 WritePlaneBuffer (&buf_, v.data, v.width, v.height, v.stride); in onDecodeFrame()
74 while (buf_.Length() < len) { in read()
80 if (buf_.Length() == 0) { in read()
86 return (int) buf_.PopFront (static_cast<uint8_t*> (ptr), len); in read()
91 BufferedData buf_; member in DecodeEncodeTest
DBaseDecoderTest.cpp200 if (false == ReadFrame(&file_, &buf_)) in DecodeNextFrame()
205 if (buf_.Length() == 0) { in DecodeNextFrame()
209 DecodeFrame (buf_.data(), buf_.Length(), cbk); in DecodeNextFrame()
Dltr_test.cpp57 buf_.SetLength (frameSize); in TEST_P()
58 ASSERT_TRUE (buf_.Length() == (size_t)frameSize); in TEST_P()
69 pic.pData[0] = buf_.data(); in TEST_P()
87 memset (buf_.data(), rand() % 256, frameSize); in TEST_P()
/third_party/skia/third_party/externals/libwebp/src/dec/
Didec_dec.c59 uint8_t* buf_; // We don't own this buffer in case WebPIUpdate() member
114 const uint8_t* const new_base = mem->buf_ + mem->start_; in DoRemap()
136 const uint8_t* const last_start = dec->parts_[last_part].buf_; in DoRemap()
138 mem->buf_ + mem->end_ - last_start); in DoRemap()
170 (mem->buf_ == NULL) ? NULL : mem->buf_ + mem->start_; in AppendToMemBuffer()
173 assert(mem->buf_ != NULL || mem->start_ == 0); in AppendToMemBuffer()
190 WebPSafeFree(mem->buf_); in AppendToMemBuffer()
191 mem->buf_ = new_buf; in AppendToMemBuffer()
197 assert(mem->buf_ != NULL); in AppendToMemBuffer()
198 memcpy(mem->buf_ + mem->end_, data, data_size); in AppendToMemBuffer()
[all …]
/third_party/node/deps/v8/src/builtins/
Dbuiltins-trace.cc30 explicit MaybeUtf8(Isolate* isolate, Handle<String> string) : buf_(data_) { in MaybeUtf8()
45 memcpy(buf_, Handle<SeqOneByteString>::cast(string)->GetChars(no_gc), in MaybeUtf8()
54 local->WriteUtf8(v8_isolate, reinterpret_cast<char*>(buf_)); in MaybeUtf8()
57 buf_[len] = 0; in MaybeUtf8()
59 const char* operator*() const { return reinterpret_cast<const char*>(buf_); } in operator *()
65 buf_ = allocated_.get(); in AllocateSufficientSpace()
73 uint8_t* buf_; member in v8::internal::__anona56b1ffa0111::MaybeUtf8
/third_party/skia/third_party/externals/freetype/src/autofit/
Dafshaper.c462 void* buf_, in af_shaper_get_cluster() argument
471 hb_buffer_t* buf = (hb_buffer_t*)buf_; in af_shaper_get_cluster()
559 void* buf_, in af_shaper_get_elem() argument
564 hb_buffer_t* buf = (hb_buffer_t*)buf_; in af_shaper_get_elem()
626 void* buf_, in af_shaper_get_cluster() argument
631 FT_ULong* buf = (FT_ULong*)buf_; in af_shaper_get_cluster()
661 void* buf_, in af_shaper_get_elem() argument
667 FT_ULong glyph_index = *(FT_ULong*)buf_; in af_shaper_get_elem()
Dafshaper.h54 void* buf_,
59 void* buf_,
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/
Dextension.h73 raw_.Write(string_view(buf_, pos_ - buf_)); in Flush()
74 pos_ = buf_; in Flush()
123 size_t Avail() const { return buf_ + sizeof(buf_) - pos_; } in Avail()
127 char* pos_ = buf_;
128 char buf_[1024]; variable
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DStringSearch.java1936 CEI[] buf_; field in StringSearch.CEBuffer
1974 buf_ = new CEI[bufSize_]; in CEBuffer()
1989 return buf_[i]; in get()
2009 if (buf_[i] == null) { in get()
2010 buf_[i] = new CEI(); in get()
2012 buf_[i].ce_ = strSearch_.textProcessedIter_.nextProcessed(range); in get()
2013 buf_[i].lowIndex_ = range.ixLow_; in get()
2014 buf_[i].highIndex_ = range.ixHigh_; in get()
2016 return buf_[i]; in get()
2031 return buf_[i]; in getPrevious()
[all …]
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DStringSearch.java1949 CEI[] buf_; field in StringSearch.CEBuffer
1987 buf_ = new CEI[bufSize_]; in CEBuffer()
2002 return buf_[i]; in get()
2022 if (buf_[i] == null) { in get()
2023 buf_[i] = new CEI(); in get()
2025 buf_[i].ce_ = strSearch_.textProcessedIter_.nextProcessed(range); in get()
2026 buf_[i].lowIndex_ = range.ixLow_; in get()
2027 buf_[i].highIndex_ = range.ixHigh_; in get()
2029 return buf_[i]; in get()
2044 return buf_[i]; in getPrevious()
[all …]
/third_party/skia/third_party/externals/libwebp/src/demux/
Ddemux.c35 const uint8_t* buf_; member
113 mem->buf_ = data; in RemapMemBuffer()
143 return mem->buf_ + mem->start_; in GetBuffer()
148 const uint8_t byte = mem->buf_[mem->start_]; in ReadByte()
154 const uint8_t* const data = mem->buf_ + mem->start_; in ReadLE16s()
161 const uint8_t* const data = mem->buf_ + mem->start_; in ReadLE24s()
168 const uint8_t* const data = mem->buf_ + mem->start_; in ReadLE32()
259 WebPGetFeatures(mem->buf_ + chunk_start_offset, chunk_size, in StoreFrame()
677 WebPGetFeatures(mem->buf_, mem->buf_size_, &features); in CreateRawImageDemuxer()
840 const uint8_t* const mem_buf = dmux->mem_.buf_; in SynthesizeFrame()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/flags/internal/
Dregistry.h86 flags_internal::Retire(flag_name, base_internal::FastTypeId<T>(), buf_); in Retire()
90 alignas(kRetiredFlagObjAlignment) char buf_[kRetiredFlagObjSize];
/third_party/node/deps/v8/src/debug/wasm/gdb-server/
Dtransport.cc108 : buf_(new char[kBufSize]), in Transport()
122 memcpy(*dst, buf_.get() + pos_, copy_bytes); in CopyFromBuffer()
261 ::recv(handle_accept_, buf_.get() + size_, kBufSize - size_, 0); in ReadSomeData()
384 ::recv(handle_accept_, buf_.get() + size_, kBufSize - size_, 0); in ReadSomeData()
/third_party/node/deps/openssl/openssl/ssl/
Dd1_msg.c12 int dtls1_write_app_data_bytes(SSL *s, int type, const void *buf_, size_t len, in dtls1_write_app_data_bytes() argument
32 return dtls1_write_bytes(s, type, buf_, len, written); in dtls1_write_app_data_bytes()
/third_party/openssl/ssl/
Dd1_msg.c12 int dtls1_write_app_data_bytes(SSL *s, int type, const void *buf_, size_t len, in dtls1_write_app_data_bytes() argument
32 return dtls1_write_bytes(s, type, buf_, len, written); in dtls1_write_app_data_bytes()

123