Flutter Engine
The Flutter Engine
Static Public Member Functions | List of all members
flutter_runner::UniqueFDIONSTraits Struct Reference

#include <unique_fdio_ns.h>

Static Public Member Functions

static fdio_ns_t * InvalidValue ()
 
static bool IsValid (fdio_ns_t *ns)
 
static void Free (fdio_ns_t *ns)
 

Detailed Description

Definition at line 14 of file unique_fdio_ns.h.

Member Function Documentation

◆ Free()

static void flutter_runner::UniqueFDIONSTraits::Free ( fdio_ns_t *  ns)
inlinestatic

Definition at line 19 of file unique_fdio_ns.h.

19 {
20 auto status = fdio_ns_destroy(ns);
21 FML_DCHECK(status == ZX_OK);
22 }
#define FML_DCHECK(condition)
Definition: logging.h:103

◆ InvalidValue()

static fdio_ns_t * flutter_runner::UniqueFDIONSTraits::InvalidValue ( )
inlinestatic

Definition at line 15 of file unique_fdio_ns.h.

15{ return nullptr; }

◆ IsValid()

static bool flutter_runner::UniqueFDIONSTraits::IsValid ( fdio_ns_t *  ns)
inlinestatic

Definition at line 17 of file unique_fdio_ns.h.

17{ return ns != InvalidValue(); }
static fdio_ns_t * InvalidValue()

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