Constructors

Synopses

Declared in <streams.h>

Deleted copy constructor; AutoFile is non‐copyable.

AutoFile(AutoFile const& other) = delete;

Construct a wrapper taking ownership of file, optionally obfuscating its data.

explicit
AutoFile(
    FILE* file,
    Obfuscation const& obfuscation = {});

Parameters

Name

Description

other

The instance that would be copied.

file

C file handle to take ownership of; may be nullptr.

obfuscation

XOR key applied to data as it is read or written.

Created with MrDocs