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/tools/aidl/ |
D | code_writer.cpp | 119 : CodeWriter(std::unique_ptr<std::ostream>(new std::stringstream())), buf_(buf) {} in ForString() 124 *buf_ = static_cast<std::stringstream*>(ostream_.get())->str(); in ForString() 129 std::string* buf_; in ForString() member in android::aidl::CodeWriter::ForString::StringCodeWriter
|
/system/keymaster/include/keymaster/ |
D | android_keymaster_utils.h | 170 explicit Eraser(T& t) : buf_(reinterpret_cast<uint8_t*>(&t)), size_(sizeof(t)) {} in Eraser() 172 template <size_t N> explicit Eraser(uint8_t (&arr)[N]) : buf_(arr), size_(N) {} in Eraser() 174 Eraser(void* buf, size_t size) : buf_(static_cast<uint8_t*>(buf)), size_(size) {} in Eraser() 175 ~Eraser() { memset_s(buf_, 0, size_); } in ~Eraser() 181 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 | 53 explicit LineReader(FILE* fp) : fp_(fp), buf_(nullptr), bufsize_(0) { in LineReader() 57 free(buf_); in ~LineReader() 62 if (getline(&buf_, &bufsize_, fp_) != -1) { in ReadLine() 63 return buf_; in ReadLine() 74 char* buf_; member in LineReader
|
/system/core/libziparchive/ |
D | zip_archive.cc | 813 MemoryWriter(uint8_t* buf, size_t size) : Writer(), buf_(buf), size_(size), bytes_written_(0) {} in MemoryWriter() 822 memcpy(buf_ + bytes_written_, buf, buf_size); in Append() 828 uint8_t* const buf_; member in MemoryWriter
|