Home
last modified time | relevance | path

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

123

/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_flag_parser.cc76 while (is_space(buf_[pos_])) ++pos_; in skip_whitespace()
81 while (buf_[pos_] != 0 && buf_[pos_] != '=' && !is_space(buf_[pos_])) ++pos_; in parse_flag()
82 if (buf_[pos_] != '=') fatal_error("expected '='"); in parse_flag()
83 char *name = ll_strndup(buf_ + name_start, pos_ - name_start); in parse_flag()
87 if (buf_[pos_] == '\'' || buf_[pos_] == '"') { in parse_flag()
88 char quote = buf_[pos_++]; in parse_flag()
89 while (buf_[pos_] != 0 && buf_[pos_] != quote) ++pos_; in parse_flag()
90 if (buf_[pos_] == 0) fatal_error("unterminated string"); in parse_flag()
91 value = ll_strndup(buf_ + value_start + 1, pos_ - value_start - 1); in parse_flag()
94 while (buf_[pos_] != 0 && !is_space(buf_[pos_])) ++pos_; in parse_flag()
[all …]
/external/google-breakpad/src/client/linux/minidump_writer/
Dline_reader.h70 if (buf_[i] == '\n' || buf_[i] == 0) { in GetNextLine()
71 buf_[i] = 0; in GetNextLine()
73 *line = buf_; in GetNextLine()
78 if (buf_used_ == sizeof(buf_)) { in GetNextLine()
90 buf_[buf_used_] = 0; in GetNextLine()
93 *line = buf_; in GetNextLine()
98 const ssize_t n = sys_read(fd_, buf_ + buf_used_, in GetNextLine()
99 sizeof(buf_) - buf_used_); in GetNextLine()
118 my_memmove(buf_, buf_ + len + 1, buf_used_); in PopLine()
126 char buf_[kMaxLineLen]; variable
Ddirectory_reader.h63 reinterpret_cast<kernel_dirent*>(buf_); in GetNextEntry()
67 const int n = sys_getdents(fd_, dent, sizeof(buf_)); in GetNextEntry()
91 reinterpret_cast<kernel_dirent*>(buf_); in PopEntry()
94 my_memmove(buf_, buf_ + dent->d_reclen, buf_used_); in PopEntry()
101 uint8_t buf_[sizeof(struct kernel_dirent) + NAME_MAX + 1]; variable
/external/webp/src/utils/
Dbit_writer.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; 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.c26 br->buf_ = start; in VP8BitReaderSetBuffer()
47 if (br->buf_ != NULL) { in VP8RemapBitReader()
48 br->buf_ += offset; in VP8RemapBitReader()
87 assert(br != NULL && br->buf_ != NULL); in VP8LoadFinalBytes()
89 if (br->buf_ < br->buf_end_) { in VP8LoadFinalBytes()
91 br->value_ = (bit_t)(*br->buf_++) | (br->value_ << 8); in VP8LoadFinalBytes()
160 br->buf_ = start; in VP8LInitBitReader()
168 br->buf_ = buf; in VP8LBitReaderSetBuffer()
183 br->val_ |= ((vp8l_val_t)br->buf_[br->pos_]) << (VP8L_LBITS - 8); in ShiftBytes()
202 br->val_ |= (vp8l_val_t)WebPMemToUint32(br->buf_ + br->pos_) << in VP8LDoFillBitWindow()
Dbit_reader_inl.h59 assert(br != NULL && br->buf_ != NULL); in VP8LoadNewBytes()
61 if (br->buf_ < br->buf_max_) { in VP8LoadNewBytes()
66 memcpy(&in_bits, br->buf_, sizeof(in_bits)); in VP8LoadNewBytes()
70 lbit_t* p_buf_ = (lbit_t*)br->buf_; in VP8LoadNewBytes()
82 const lbit_t in_bits = *(const lbit_t*)br->buf_; in VP8LoadNewBytes()
84 br->buf_ += BITS >> 3; in VP8LoadNewBytes()
Dbit_writer.h32 uint8_t* buf_; // internal buffer. Re-allocated regularly. Not owned. member
62 return bw->buf_; in VP8BitWriterBuf()
91 uint8_t* buf_; // start of buffer member
103 return (bw->cur_ - bw->buf_) + ((bw->used_ + 7) >> 3); in VP8LBitWriterNumBytes()
/external/marisa-trie/lib/marisa/
Dvector-inline.h8 : buf_(NULL), objs_(NULL), size_(0), capacity_(0), fixed_(false) {} in Vector()
12 if (buf_ != NULL) { in ~Vector()
14 buf_[i].~T(); in ~Vector()
16 delete [] reinterpret_cast<char *>(buf_); in ~Vector()
79 reader.read(temp.buf_, size); in read()
120 new (&buf_[size_++]) T(x); in push_back()
126 buf_[--size_].~T(); in pop_back()
134 new (&buf_[i]) T; in resize()
137 buf_[i].~T(); in resize()
147 new (&buf_[i]) T(x); in resize()
[all …]
Dtail.h36 MARISA_DEBUG_IF(offset >= buf_.size(), MARISA_PARAM_ERROR);
37 return &buf_[offset];
41 return (buf_.front() == '\0') ? MARISA_BINARY_TAIL : MARISA_TEXT_TAIL; in mode()
44 return buf_.empty(); in empty()
47 return buf_.size(); in size()
50 return buf_.total_size(); in total_size()
57 Vector<UInt8> buf_;
Dtail.cc9 Tail::Tail() : buf_() {} in Tail()
48 temp.buf_.map(mapper); in map()
75 temp.buf_.read(reader); in read()
102 buf_.write(writer); in write()
110 buf_.swap(&rhs->buf_); in swap()
138 buf_.swap(&buf); in build_binary_tail()
194 buf_.swap(&buf); in build_text_tail()
199 buf_.clear(); in build_empty_tail()
Dvector.h64 return buf_; in begin()
68 return buf_ + size_; in end()
73 return buf_[i];
77 return buf_[0]; in front()
81 return buf_[size_ - 1]; in back()
110 T *buf_;
/external/marisa-trie/v0_1_5/lib/marisa_alpha/
Dvector-inline.h8 : buf_(NULL), objs_(NULL), size_(0), capacity_(0), fixed_(false) {} in Vector()
12 if (buf_ != NULL) { in ~Vector()
14 buf_[i].~T(); in ~Vector()
16 delete [] reinterpret_cast<char *>(buf_); in ~Vector()
79 reader.read(temp.buf_, size); in read()
120 new (&buf_[size_++]) T(x); in push_back()
126 buf_[--size_].~T(); in pop_back()
134 new (&buf_[i]) T; in resize()
137 buf_[i].~T(); in resize()
147 new (&buf_[i]) T(x); in resize()
[all …]
Dtail.h36 MARISA_ALPHA_DEBUG_IF(offset >= buf_.size(), MARISA_ALPHA_PARAM_ERROR);
37 return &buf_[offset];
41 return (buf_.front() == '\0') ? in mode()
45 return buf_.empty(); in empty()
48 return buf_.size(); in size()
51 return buf_.total_size(); in total_size()
58 Vector<UInt8> buf_;
Dtail.cc9 Tail::Tail() : buf_() {} in Tail()
48 temp.buf_.map(mapper); in map()
75 temp.buf_.read(reader); in read()
102 buf_.write(writer); in write()
110 buf_.swap(&rhs->buf_); in swap()
138 buf_.swap(&buf); in build_binary_tail()
194 buf_.swap(&buf); in build_text_tail()
199 buf_.clear(); in build_empty_tail()
Dvector.h64 return buf_; in begin()
68 return buf_ + size_; in end()
73 return buf_[i];
77 return buf_[0]; in front()
81 return buf_[size_ - 1]; in back()
110 T *buf_;
/external/flac/libFLAC/
Dmd5.c276 FLAC__byte *buf_ = mbuf->p8; in format_input_() local
291 *buf_++ = signal[0][sample]; in format_input_()
296 *buf_++ = signal[0][sample]; in format_input_()
297 *buf_++ = signal[1][sample]; in format_input_()
303 *buf_++ = signal[0][sample]; in format_input_()
304 *buf_++ = signal[1][sample]; in format_input_()
305 *buf_++ = signal[2][sample]; in format_input_()
306 *buf_++ = signal[3][sample]; in format_input_()
312 *buf_++ = signal[0][sample]; in format_input_()
313 *buf_++ = signal[1][sample]; in format_input_()
[all …]
/external/libchrome/base/files/
Ddir_reader_linux.h37 memset(buf_, 0, sizeof(buf_)); in DirReaderLinux()
54 linux_dirent* dirent = reinterpret_cast<linux_dirent*>(&buf_[offset_]); in Next()
61 const int r = syscall(__NR_getdents64, fd_, buf_, sizeof(buf_)); in Next()
78 reinterpret_cast<const linux_dirent*>(&buf_[offset_]); in name()
92 unsigned char buf_[512]; variable
/external/libcxx/include/
D__sso_allocator39 typename aligned_storage<sizeof(_Tp) * _Np>::type buf_;
58 return (pointer)&buf_;
64 if (__p == (pointer)&buf_)
72 bool operator==(__sso_allocator& __a) const {return &buf_ == &__a.buf_;}
74 bool operator!=(__sso_allocator& __a) const {return &buf_ != &__a.buf_;}
/external/libvpx/libvpx/test/
Dwebm_video_source.h31 buf_(NULL), in WebMVideoSource()
65 const int status = webm_read_frame(webm_ctx_, &buf_, &buf_sz_, &buf_sz_); in FillFrame()
75 const int status = webm_read_frame(webm_ctx_, &buf_, &buf_sz_, &buf_sz_); in SeekToNextKeyFrame()
85 return end_of_file_ ? NULL : buf_; in cxdata()
94 uint8_t *buf_; variable
/external/webrtc/webrtc/modules/video_coding/utility/
Dvp8_header_parser.cc28 if (br->buf_ < br->buf_end_) { in VP8LoadFinalBytes()
30 br->value_ = static_cast<uint32_t>(*br->buf_++) | (br->value_ << 8); in VP8LoadFinalBytes()
41 if (br->buf_ + sizeof(uint32_t) <= br->buf_end_) { in VP8LoadNewBytes()
43 const uint32_t in_bits = *(const uint32_t*)(br->buf_); in VP8LoadNewBytes()
44 br->buf_ += BITS >> 3; in VP8LoadNewBytes()
64 br->buf_ = start; in VP8InitBitReader()
/external/webp/src/dec/
Didec.c59 uint8_t* buf_; // We don't own this buffer in case WebPIUpdate() member
112 const uint8_t* const new_base = mem->buf_ + mem->start_; in DoRemap()
134 const uint8_t* const last_start = dec->parts_[last_part].buf_; in DoRemap()
137 mem->buf_ + mem->end_ - last_start); in DoRemap()
169 const uint8_t* const old_start = mem->buf_ + mem->start_; in AppendToMemBuffer()
188 WebPSafeFree(mem->buf_); in AppendToMemBuffer()
189 mem->buf_ = new_buf; in AppendToMemBuffer()
195 memcpy(mem->buf_ + mem->end_, data, data_size); in AppendToMemBuffer()
199 DoRemap(idec, mem->buf_ + mem->start_ - old_start); in AppendToMemBuffer()
206 const uint8_t* const old_buf = mem->buf_; in RemapMemBuffer()
[all …]
/external/freetype/src/autofit/
Dafshaper.c448 void* buf_, in af_shaper_get_cluster() argument
457 hb_buffer_t* buf = (hb_buffer_t*)buf_; in af_shaper_get_cluster()
545 void* buf_, in af_shaper_get_elem() argument
550 hb_buffer_t* buf = (hb_buffer_t*)buf_; in af_shaper_get_elem()
619 void* buf_, in af_shaper_get_cluster() argument
624 FT_ULong* buf = (FT_ULong*)buf_; in af_shaper_get_cluster()
654 void* buf_, in af_shaper_get_elem() argument
660 FT_ULong glyph_index = *(FT_ULong*)buf_; in af_shaper_get_elem()
/external/webrtc/webrtc/base/
Dasyncudpsocket.cc42 buf_ = new char[size_]; in AsyncUDPSocket()
50 delete [] buf_; in ~AsyncUDPSocket()
106 int len = socket_->RecvFrom(buf_, size_, &remote_addr); in OnReadEvent()
120 SignalReadPacket(this, buf_, static_cast<size_t>(len), remote_addr, in OnReadEvent()
/external/libcxx/test/std/containers/
Dstack_allocator.h19 char buf_[sizeof(T)*N]; variable
32 stack_allocator() : ptr_(buf_) {} in stack_allocator()
41 if (n > N - (ptr_ - buf_) / sizeof(value_type)) {
/external/compiler-rt/test/asan/TestCases/Posix/
Dreadv.cc18 char * volatile buf_ = buf; in main() local
19 iov[0].iov_base = buf_ - 1; in main()

123