Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Friends | List of all members
dart::bin::IOHandle Class Reference

#include <eventhandler_fuchsia.h>

Inheritance diagram for dart::bin::IOHandle:
dart::bin::ReferenceCounted< IOHandle >

Public Member Functions

 IOHandle (intptr_t fd)
 
intptr_t fd () const
 
intptr_t Read (void *buffer, intptr_t num_bytes)
 
intptr_t Write (const void *buffer, intptr_t num_bytes)
 
intptr_t Accept (struct sockaddr *addr, socklen_t *addrlen)
 
intptr_t AvailableBytes ()
 
void Close ()
 
uint32_t MaskToEpollEvents (intptr_t mask)
 
bool AsyncWait (zx_handle_t port, uint32_t events, uint64_t key)
 
void CancelWait (zx_handle_t port, uint64_t key)
 
uint32_t WaitEnd (zx_signals_t observed)
 
intptr_t ToggleEvents (intptr_t event_mask)
 
- Public Member Functions inherited from dart::bin::ReferenceCounted< IOHandle >
 ReferenceCounted ()
 
virtual ~ReferenceCounted ()
 
void Retain ()
 
void Release ()
 

Static Public Member Functions

static intptr_t EpollEventsToMask (intptr_t events)
 

Friends

class ReferenceCounted< IOHandle >
 

Detailed Description

Definition at line 30 of file eventhandler_fuchsia.h.

Constructor & Destructor Documentation

◆ IOHandle()

dart::bin::IOHandle::IOHandle ( intptr_t  fd)
inlineexplicit

Definition at line 32 of file eventhandler_fuchsia.h.

34 mutex_(),
35 write_events_enabled_(true),
36 read_events_enabled_(true),
37 close_events_enabled_(true),
38 fd_(fd),
39 handle_(ZX_HANDLE_INVALID),
40 wait_key_(0),
41 fdio_(fdio_unsafe_fd_to_io(fd)) {}

Member Function Documentation

◆ Accept()

intptr_t dart::bin::IOHandle::Accept ( struct sockaddr *  addr,
socklen_t *  addrlen 
)

◆ AsyncWait()

bool dart::bin::IOHandle::AsyncWait ( zx_handle_t  port,
uint32_t  events,
uint64_t  key 
)

◆ AvailableBytes()

intptr_t dart::bin::IOHandle::AvailableBytes ( )

◆ CancelWait()

void dart::bin::IOHandle::CancelWait ( zx_handle_t  port,
uint64_t  key 
)

◆ Close()

void dart::bin::IOHandle::Close ( )

◆ EpollEventsToMask()

static intptr_t dart::bin::IOHandle::EpollEventsToMask ( intptr_t  events)
static

◆ fd()

intptr_t dart::bin::IOHandle::fd ( ) const
inline

Definition at line 43 of file eventhandler_fuchsia.h.

43{ return fd_; }

◆ MaskToEpollEvents()

uint32_t dart::bin::IOHandle::MaskToEpollEvents ( intptr_t  mask)

◆ Read()

intptr_t dart::bin::IOHandle::Read ( void *  buffer,
intptr_t  num_bytes 
)

◆ ToggleEvents()

intptr_t dart::bin::IOHandle::ToggleEvents ( intptr_t  event_mask)

◆ WaitEnd()

uint32_t dart::bin::IOHandle::WaitEnd ( zx_signals_t  observed)

◆ Write()

intptr_t dart::bin::IOHandle::Write ( const void *  buffer,
intptr_t  num_bytes 
)

Friends And Related Function Documentation

◆ ReferenceCounted< IOHandle >

friend class ReferenceCounted< IOHandle >
friend

Definition at line 88 of file eventhandler_fuchsia.h.


The documentation for this class was generated from the following file: