![]() |
Bitcoin Core
24.1.0
P2P Digital Currency
|
#include <streams.h>
Public Member Functions | |
| CAutoFile (FILE *filenew, int nTypeIn, int nVersionIn) | |
| int | GetType () const |
| int | GetVersion () const |
| template<typename T > | |
| CAutoFile & | operator<< (const T &obj) |
| template<typename T > | |
| CAutoFile & | operator>> (T &&obj) |
Public Member Functions inherited from AutoFile | |
| AutoFile (FILE *filenew) | |
| ~AutoFile () | |
| AutoFile (const AutoFile &)=delete | |
| AutoFile & | operator= (const AutoFile &)=delete |
| void | fclose () |
| FILE * | release () |
| Get wrapped FILE* with transfer of ownership. More... | |
| FILE * | Get () const |
| Get wrapped FILE* without transfer of ownership. More... | |
| bool | IsNull () const |
| Return true if the wrapped FILE* is nullptr, false otherwise. More... | |
| void | read (Span< std::byte > dst) |
| void | ignore (size_t nSize) |
| void | write (Span< const std::byte > src) |
| template<typename T > | |
| AutoFile & | operator<< (const T &obj) |
| template<typename T > | |
| AutoFile & | operator>> (T &&obj) |
Private Attributes | |
| const int | nType |
| const int | nVersion |
Additional Inherited Members | |
Protected Attributes inherited from AutoFile | |
| FILE * | file |
|
inline |
|
inline |
1.8.14