template <InOutPolicy Policy>
class user_iovec
Defined at line 20 of file ../../zircon/kernel/lib/user_copy/include/lib/user_copy/user_iovec.h
Public Methods
bool operator bool ()
special operator to return the nullness of the pointer
Defined at line 25 of file ../../zircon/kernel/lib/user_copy/include/lib/user_copy/user_iovec.h
void user_iovec<Policy> (VecType * vector, size_t count)
Defined at line 31 of file ../../zircon/kernel/lib/user_copy/include/lib/user_copy/user_iovec.h
zx_status_t GetTotalCapacity (size_t * out_capacity)
Defined at line 33 of file ../../zircon/kernel/lib/user_copy/include/lib/user_copy/user_iovec.h
template <typename Callback>
zx_status_t ForEach (Callback callback)
Iterate through the iovec.
The expected signature for the callback is:
zx_status_t (callback)(PtrType ptr, size_t capacity).
To continue to the next buffer in the vector, return ZX_ERR_NEXT. To stop
iterating successfully, return ZX_ERR_STOP. Returning any other error will
also stop the iteration but will cause ForEach to retun that error instead
of ZX_OK.
Defined at line 58 of file ../../zircon/kernel/lib/user_copy/include/lib/user_copy/user_iovec.h
Enumerations
enum
| Name | Value |
|---|---|
| is_out | ((Policy & kOut) == kOut) |
Defined at line 22 of file ../../zircon/kernel/lib/user_copy/include/lib/user_copy/user_iovec.h