Flutter Engine
fml::internal::os_unix::UniqueFDTraits Struct Reference

#include <unique_fd.h>

Static Public Member Functions

static int InvalidValue ()
 
static bool IsValid (int value)
 
static void Free (int fd)
 

Detailed Description

Definition at line 37 of file unique_fd.h.

Member Function Documentation

◆ Free()

void fml::internal::os_unix::UniqueFDTraits::Free ( int  fd)
static

Definition at line 26 of file unique_fd.cc.

26  {
27  close(fd);
28 }

◆ InvalidValue()

static int fml::internal::os_unix::UniqueFDTraits::InvalidValue ( )
inlinestatic

Definition at line 38 of file unique_fd.h.

38 { return -1; }

◆ IsValid()

static bool fml::internal::os_unix::UniqueFDTraits::IsValid ( int  value)
inlinestatic

Definition at line 39 of file unique_fd.h.

Referenced by flutter::RunConfiguration::InferFromSettings().

39 { return value >= 0; }
uint8_t value

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