ndk::ScopedFileDescriptor

#include <binder_auto_utils.h>

Convenience wrapper for a file descriptor.

Summary

Inheritance

Inherits from: ndk::impl::ScopedAResource< int, int, close,-1 >

Constructors and Destructors

ScopedFileDescriptor(int a)
Takes ownership of a.
ScopedFileDescriptor(ScopedFileDescriptor &&)
~ScopedFileDescriptor()

Public functions

ScopedFileDescriptor

 ScopedFileDescriptor(
  int a
)

Takes ownership of a.

ScopedFileDescriptor

 ScopedFileDescriptor(
  ScopedFileDescriptor &&
)=default

~ScopedFileDescriptor

 ~ScopedFileDescriptor()