OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
UserFile.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>

Go to the source code of this file.

Functions

UINT8 * UserReadFile (IN CONST CHAR8 *FileName, OUT UINT32 *Size)
 
VOID UserWriteFile (IN CONST CHAR8 *FileName, IN CONST VOID *Data, IN UINT32 Size)
 

Detailed Description

Copyright (c) 2020, PMheart. All rights reserved. SPDX-License-Identifier: BSD-3-Clause

Definition in file UserFile.h.

Function Documentation

◆ UserReadFile()

UINT8 * UserReadFile ( IN CONST CHAR8 * FileName,
OUT UINT32 * Size )

Read a file on disk into buffer.

Parameters
[in]FileNameASCII string containing the name of the file to be opened.
[out]SizeSize of the file.
Returns
A pointer to buffer containing the content of FileName.

Definition at line 62 of file UserFile.c.

◆ UserWriteFile()

VOID UserWriteFile ( IN CONST CHAR8 * FileName,
IN CONST VOID * Data,
IN UINT32 Size )

Write the buffer to the file.

Parameters
[in]FileNameOutput filename.
[in]DataData to write.
[in]SizeSize of the output file.

Definition at line 116 of file UserFile.c.