Searched refs:buf_ (Results 1 – 6 of 6) sorted by relevance
/system/chre/external/flatbuffers/include/flatbuffers/ |
D | flatbuffers.h | 545 buf_(allocator.allocate(reserved_)), 546 cur_(buf_ + reserved_), 550 if (buf_) 551 allocator_.deallocate(buf_); 555 if (buf_ == nullptr) 556 buf_ = allocator_.allocate(reserved_); 558 cur_ = buf_ + reserved_; 566 std::bind(&simple_allocator::deallocate, allocator_, buf_)); 572 buf_ = nullptr; 584 if (len > static_cast<size_t>(cur_ - buf_)) { [all …]
|
/system/core/libprocessgroup/ |
D | processgroup.cpp | 72 ProcessGroup() : buf_ptr_(buf_), buf_len_(0) {} in ProcessGroup() 88 char buf_[128]; member in ProcessGroup 138 memmove(buf_, buf_ptr_, buf_len_); in RefillBuffer() 139 buf_ptr_ = buf_; in RefillBuffer() 141 ssize_t ret = read(fd_, buf_ptr_ + buf_len_, sizeof(buf_) - buf_len_ - 1); in RefillBuffer() 149 buf_[buf_len_] = 0; in RefillBuffer() 150 LOG(VERBOSE) << "Read " << ret << " to buffer: " << buf_; in RefillBuffer() 152 assert(buf_len_ <= sizeof(buf_)); in RefillBuffer()
|
/system/keymaster/include/keymaster/ |
D | android_keymaster_utils.h | 147 explicit Eraser(T& t) : buf_(reinterpret_cast<uint8_t*>(&t)), size_(sizeof(t)) {} in Eraser() 149 template <size_t N> explicit Eraser(uint8_t (&arr)[N]) : buf_(arr), size_(N) {} in Eraser() 151 Eraser(void* buf, size_t size) : buf_(static_cast<uint8_t*>(buf)), size_(size) {} in Eraser() 152 ~Eraser() { memset_s(buf_, 0, size_); } in ~Eraser() 158 uint8_t* buf_; variable
|
/system/core/trusty/storage/proxy/ |
D | storage.c | 126 static ssize_t write_with_retry(int fd, const void *buf_, size_t size, off_t offset) in write_with_retry() argument 129 const uint8_t *buf = buf_; in write_with_retry() 142 static ssize_t read_with_retry(int fd, void *buf_, size_t size, off_t offset) in read_with_retry() argument 146 uint8_t *buf = buf_; in read_with_retry()
|
/system/extras/simpleperf/ |
D | environment.cpp | 50 explicit LineReader(FILE* fp) : fp_(fp), buf_(nullptr), bufsize_(0) { in LineReader() 54 free(buf_); in ~LineReader() 59 if (getline(&buf_, &bufsize_, fp_) != -1) { in ReadLine() 60 return buf_; in ReadLine() 71 char* buf_; member in LineReader
|
/system/core/libziparchive/ |
D | zip_archive.cc | 754 MemoryWriter(uint8_t* buf, size_t size) : Writer(), buf_(buf), size_(size), bytes_written_(0) {} in MemoryWriter() 763 memcpy(buf_ + bytes_written_, buf, buf_size); in Append() 769 uint8_t* const buf_; member in MemoryWriter
|