ndk:: ScopedFileDescriptor
#include <binder_auto_utils.h>
Convenience wrapper for a file descriptor.
Summary
Inheritance
Inherits from: ndk::impl::ScopedAResource< int, internal::closeWithError,-1 >
Constructors and Destructors |
|
---|---|
ScopedFileDescriptor()
Takes ownership of a.
|
|
ScopedFileDescriptor(int a)
|
|
ScopedFileDescriptor(ScopedFileDescriptor &&)
|
|
~ScopedFileDescriptor()
|
Public functions |
|
---|---|
dup() const
|
|
operator!=(const ScopedFileDescriptor & rhs) const
|
bool
|
operator<(const ScopedFileDescriptor & rhs) const
|
bool
|
operator<=(const ScopedFileDescriptor & rhs) const
|
bool
|
operator=(ScopedFileDescriptor &&)=default
|
|
operator==(const ScopedFileDescriptor & rhs) const
|
bool
|
operator>(const ScopedFileDescriptor & rhs) const
|
bool
|
operator>=(const ScopedFileDescriptor & rhs) const
|
bool
|
Public functions
ScopedFileDescriptor
ScopedFileDescriptor()
Takes ownership of a.
ScopedFileDescriptor
ScopedFileDescriptor( int a )
ScopedFileDescriptor
ScopedFileDescriptor( ScopedFileDescriptor && )=default
dup
ScopedFileDescriptor dup() const
operator!=
bool operator!=( const ScopedFileDescriptor & rhs ) const
operator<
bool operator<( const ScopedFileDescriptor & rhs ) const
operator<=
bool operator<=( const ScopedFileDescriptor & rhs ) const
operator=
ScopedFileDescriptor & operator=( ScopedFileDescriptor && )=default
operator==
bool operator==( const ScopedFileDescriptor & rhs ) const
operator>
bool operator>( const ScopedFileDescriptor & rhs ) const
operator>=
bool operator>=( const ScopedFileDescriptor & rhs ) const
~ScopedFileDescriptor
~ScopedFileDescriptor()