Get a File object for the binary file at Path.

Synopsis

Declared in <llvm/Support/VirtualFileSystem.h>

virtual
llvm::ErrorOr<std::unique_ptr<File>>
openFileForReadBinary(Twine const& Path);

Description

Some non‐ascii based file systems perform encoding conversions when reading as a text file, and this function should be used if a file's bytes should be read as‐is. On most filesystems, this is the same behaviour as openFileForRead.

Return Value

A File for the binary file at Path, or an error.

Parameters

Name

Description

Path

Path of the file to open.

Created with MrDocs