template <typename T, size_t Buf>
class BufferedUserOutPtr
Defined at line 315 of file ../../zircon/kernel/lib/syscalls/driver.cc
Helper for optimizing writing many small elements of user ptr array by allowing for a variable
amount of buffering.
Public Methods
void BufferedUserOutPtr<T, Buf> (user_out_ptr<T> out_ptr)
Defined at line 317 of file ../../zircon/kernel/lib/syscalls/driver.cc
void ~BufferedUserOutPtr<T, Buf> ()
Defined at line 318 of file ../../zircon/kernel/lib/syscalls/driver.cc
zx_status_t Write (const T & item)
Add a single element, either appending to the buffer and/or flushing the buffer if full.
Defined at line 323 of file ../../zircon/kernel/lib/syscalls/driver.cc
zx_status_t Flush ()
Flush any remaining buffered items. Must be called prior to destruction.
Defined at line 332 of file ../../zircon/kernel/lib/syscalls/driver.cc