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

Synopsis

Declared in <streams.h>

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

Parameters

Name

Description

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