Searched refs:buffer_ (Results 1 - 25 of 27) sorted by relevance

12

/fuchsia/zircon/system/ulib/fidl/
H A Dmessage_builder.cpp16 buffer_(bytes_capacity, handles_capacity) {
25 HandlePart(buffer_.handles(),
26 buffer_.handles_capacity()));
31 Builder::Reset(buffer_.bytes(), buffer_.bytes_capacity());
H A Dbuilder.cpp14 : capacity_(0u), at_(0u), buffer_(nullptr) {}
17 : capacity_(capacity), at_(0u), buffer_(static_cast<uint8_t*>(buffer)) {
25 buffer_(other.buffer_) {
33 buffer_ = other.buffer_;
43 uint8_t* result = &buffer_[at_];
44 memset(buffer_ + at_, 0, limit - at_);
50 BytePart bytes(buffer_, capacity_, at_);
57 buffer_
[all...]
H A Dmessage_buffer.cpp27 : buffer_(static_cast<uint8_t*>(malloc(GetAllocSize(bytes_capacity, handles_capacity)))),
30 ZX_ASSERT_MSG(buffer_, "malloc returned NULL in MessageBuffer::MessageBuffer()");
34 free(buffer_);
38 return reinterpret_cast<zx_handle_t*>(buffer_ + AddPadding(bytes_capacity_));
H A Dformatting.cpp20 : buffer_(buffer), capacity_(capacity) {}
29 memcpy(buffer_ + length_, data, length);
49 int count = vsnprintf(buffer_ + length_, remaining, format, ap);
58 char* buffer_; member in class:__anon1089::StringBuilder
/fuchsia/zircon/system/ulib/cobalt-client/
H A Dcounter.cpp16 : BaseCounter(), buffer_(metadata), metric_id_(metric_id) {
17 *buffer_.mutable_event_data() = 0;
21 : BaseCounter(fbl::move(other)), buffer_(fbl::move(other.buffer_)),
25 if (!buffer_.TryBeginFlush()) {
29 *buffer_.mutable_event_data() = static_cast<uint32_t>(this->Exchange());
30 flush_handler(metric_id_, buffer_, fbl::BindMember(&buffer_, &EventBuffer::CompleteFlush));
H A Devent_buffer.cpp21 buffer_ = fbl::move(other.buffer_);
H A Dhistogram.cpp100 : BaseHistogram(num_buckets), buffer_(metadata), metric_id_(metric_id) {
108 auto* buckets = buffer_.mutable_event_data();
114 : BaseHistogram(fbl::move(other)), buffer_(fbl::move(other.buffer_)),
118 if (!buffer_.TryBeginFlush()) {
128 flush_handler(metric_id_, buffer_, fbl::BindMember(&buffer_, &EventBuffer::CompleteFlush));
/fuchsia/zircon/system/dev/audio/gauss-pdm-input/
H A Dvmo_helper.cpp15 return io_buffer_init(&buffer_, bti, buffer_size, IO_BUFFER_RW | IO_BUFFER_CONTIG);
24 ring_buffer_virt_ = reinterpret_cast<uintptr_t>(io_buffer_virt(&buffer_));
29 *start_address = io_buffer_phys(&buffer_);
35 zx_status_t status = zx_handle_duplicate(buffer_.vmo_handle, rights, &copy);
44 io_buffer_release(&buffer_);
56 io_buffer_cache_flush_invalidate(&buffer_, 0, buffer_.size);
H A Dvmo_helper.h21 io_buffer_t buffer_; member in class:audio::gauss::VmoHelperBase
/fuchsia/zircon/system/ulib/fidl/include/lib/fidl/cpp/
H A Dmessage_buffer.h30 uint8_t* bytes() const { return buffer_; }
50 uint8_t* const buffer_; member in class:fidl::MessageBuffer
H A Dmessage_builder.h70 MessageBuffer buffer_; member in class:fidl::MessageBuilder
H A Dbuilder.h97 uint8_t* buffer() const { return buffer_; }
106 uint8_t* buffer_; member in class:fidl::Builder
/fuchsia/zircon/system/ulib/cobalt-client/include/cobalt-client/cpp/
H A Dtypes-internal.h38 // if (!buffer_.TryBeginFlush()) {
42 // buffer_.CompleteFlush();
62 const BufferType& event_data() const { return buffer_; }
67 BufferType* mutable_event_data() { return &buffer_; }
82 BufferType buffer_; member in class:cobalt_client::internal::EventBuffer
H A Dhistogram-internal.h96 EventBuffer buffer_;
H A Dcounter-internal.h89 EventBuffer buffer_; member in class:cobalt_client::internal::RemoteCounter
/fuchsia/zircon/system/uapp/trace-benchmark/
H A Dhandler.h25 buffer_(new uint8_t[buffer_size], buffer_size) {
48 buffer_.get(), buffer_.size());
134 fbl::Array<uint8_t> const buffer_; member in class:BenchmarkHandler::fbl
/fuchsia/zircon/system/ulib/fuzz-utils/
H A Dpath.cpp34 Path::Path(fbl::RefPtr<PathBuffer> path) : path_(path), length_(path->buffer_.length()) {}
148 path_->buffer_.Clear();
149 path_->buffer_.Append(abspath);
150 path_->buffer_.Append('/');
151 length_ = path_->buffer_.length();
161 path_->buffer_.Resize(length_);
225 path_->buffer_.Clear();
226 path_->buffer_.Append("/");
227 length_ = path_->buffer_.length();
/fuchsia/zircon/system/ulib/fuzz-utils/include/fuzz-utils/
H A Dpath.h29 const char* c_str() const { return path_->buffer_.c_str(); }
63 fbl::StringBuffer<PATH_MAX> buffer_; member in struct:fuzzing::final::final
77 // The amount of |buffer_| belonging to this |Path| object. The buffer will be reset to this
/fuchsia/zircon/system/utest/trace/
H A Dfixture.cpp37 buffer_(new uint8_t[buffer_size], buffer_size) {
61 buffer_.get(), buffer_.size());
162 return buffer_reader.ReadChunks(buffer_.get(), buffer_.size());
197 fbl::Array<uint8_t> buffer_; member in class:__anon1465::Fixture
/fuchsia/zircon/system/ulib/minfs/
H A Dwriteback.cpp158 if (wb->buffer_->GetSize() % kMinfsBlockSize != 0) {
169 zx_status_t status = wb->bc_->AttachVmo(wb->buffer_->GetVmo(), &wb->buffer_vmoid_);
179 bc_(bc), unmounting_(false), buffer_(fbl::move(buffer)),
180 cap_(buffer_->GetSize() / kMinfsBlockSize) {}
237 void* ptr = (void*)((uintptr_t)(buffer_->GetData()) +
257 ptr = buffer_->GetData();
328 size_t blks_consumed = work->Complete(b->buffer_->GetVmo(), b->buffer_vmoid_);
/fuchsia/zircon/system/ulib/blobfs/
H A Dwriteback.cpp128 if (wb->buffer_->GetSize() % kBlobfsBlockSize != 0) {
139 zx_status_t status = wb->bs_->AttachVmo(wb->buffer_->GetVmo(), &wb->buffer_vmoid_);
161 bs_(bs), unmounting_(false), buffer_(fbl::move(buffer)),
162 cap_(buffer_->GetSize() / kBlobfsBlockSize) {}
219 void* ptr = (void*)((uintptr_t)(buffer_->GetData()) +
241 ptr = buffer_->GetData();
/fuchsia/zircon/system/ulib/trace-provider/
H A Dhandler_impl.cpp26 : buffer_(buffer),
41 reinterpret_cast<uintptr_t>(buffer_), buffer_num_bytes_);
108 handler->buffer_, handler->buffer_num_bytes_);
H A Dhandler_impl.h55 void* buffer_; member in class:trace::internal::final
/fuchsia/zircon/system/uapp/iochk/
H A Diochk.cpp133 : buffer_(buffer) {}
145 auto* buf = static_cast<uint64_t*>(buffer_);
163 auto* buf = static_cast<uint64_t*>(buffer_);
180 void* buffer_; member in class:__anon854::Checker
/fuchsia/zircon/system/ulib/blobfs/include/blobfs/
H A Dwriteback.h207 fbl::unique_ptr<fzl::MappedVmo> buffer_{};

Completed in 65 milliseconds

12