fdf::Channel

Summary

Constructors and Destructors

Channel()
Channel(fdf_handle_t channel)
Channel(const Channel & to_copy)
Channel(Channel && other)
~Channel()

Public types

HandleType using
fdf_handle_t

Public functions

Call(uint32_t options, zx::time deadline, const Arena & arena, void *data, uint32_t num_bytes, cpp20::span< zx_handle_t > handles) const
Read(uint32_t options) const
Write(uint32_t options, const Arena & arena, void *data, uint32_t num_bytes, cpp20::span< zx_handle_t > handles) const
borrow() const
close()
void
get() const
fdf_handle_t
is_valid() const
bool
operator=(const Channel & other)=delete
operator=(Channel && other) noexcept
release()
fdf_handle_t
reset(fdf_handle_t channel)
void

Structs

fdf::Channel::ReadReturn

Public types

HandleType

fdf_handle_t HandleType

Public functions

Call

zx::result< ReadReturn > Call(
  uint32_t options,
  zx::time deadline,
  const Arena & arena,
  void *data,
  uint32_t num_bytes,
  cpp20::span< zx_handle_t > handles
) const 

Channel

 Channel()

Channel

 Channel(
  fdf_handle_t channel
)

Channel

 Channel(
  const Channel & to_copy
)=delete

Channel

 Channel(
  Channel && other
) noexcept

Read

zx::result< ReadReturn > Read(
  uint32_t options
) const 

Write

zx::result Write(
  uint32_t options,
  const Arena & arena,
  void *data,
  uint32_t num_bytes,
  cpp20::span< zx_handle_t > handles
) const 

borrow

Unowned< Channel > borrow() const 

close

void close()

get

fdf_handle_t get() const 

is_valid

bool is_valid() const 

operator=

Channel & operator=(
  const Channel & other
)=delete

operator=

Channel & operator=(
  Channel && other
) noexcept

release

fdf_handle_t release()

reset

void reset(
  fdf_handle_t channel
)

~Channel

 ~Channel()