OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
BmfDummy.c File Reference
#include <Library/DebugLib.h>

Go to the source code of this file.

Functions

EFI_STATUS OcGetFileData (IN EFI_FILE_PROTOCOL *File, IN UINT32 Position, IN UINT32 Size, OUT UINT8 *Buffer)
 
EFI_STATUS OcReadFileSize (IN EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *FileSystem, IN CONST CHAR16 *FilePath, OUT UINT32 *Size)
 

Detailed Description

This file is part of OpenCanopy, OpenCore GUI.

Copyright (c) 2018-2019, Download-Fritz. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause

Definition in file BmfDummy.c.

Function Documentation

◆ OcGetFileData()

EFI_STATUS OcGetFileData ( IN EFI_FILE_PROTOCOL * File,
IN UINT32 Position,
IN UINT32 Size,
OUT UINT8 * Buffer )

Read exact amount of bytes from EFI_FILE_PROTOCOL at specified position.

Parameters
[in]FileA pointer to the file protocol.
[in]PositionPosition to read data from.
[in]SizeThe size of the data read.
[out]BufferA pointer to previously allocated buffer to read data to.
Return values
EFI_SUCCESSon success.

Definition at line 11 of file BmfDummy.c.

◆ OcReadFileSize()

EFI_STATUS OcReadFileSize ( IN EFI_SIMPLE_FILE_SYSTEM_PROTOCOL * FileSystem,
IN CONST CHAR16 * FilePath,
OUT UINT32 * Size )

Determine file size if it is less than 4 GB.

Parameters
[in]FileSystemA pointer to the file system protocol of the volume.
[in]FilePathThe full path to the file on the device.
[out]Size32-bit file size.
Return values
EFI_SUCCESSon success.

Definition at line 24 of file BmfDummy.c.