Flutter Engine
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 13 of file unique_fdio_ns.h.

Member Function Documentation

◆ Free()

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

Definition at line 18 of file unique_fdio_ns.h.

References FML_DCHECK.

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

◆ InvalidValue()

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

Definition at line 14 of file unique_fdio_ns.h.

Referenced by IsValid().

14 { return nullptr; }

◆ IsValid()

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

Definition at line 16 of file unique_fdio_ns.h.

References InvalidValue().

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

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