TianoCore EDK2 master
Loading...
Searching...
No Matches
MemImage.h File Reference
#include "HexEditor.h"

Go to the source code of this file.

Functions

EFI_STATUS HMemImageInit (VOID)
 
EFI_STATUS HMemImageBackup (VOID)
 
EFI_STATUS HMemImageSetMemOffsetSize (IN UINTN Offset, IN UINTN Size)
 
EFI_STATUS HMemImageRead (IN UINTN Offset, IN UINTN Size, IN BOOLEAN Recover)
 
EFI_STATUS HMemImageSave (IN UINTN Offset, IN UINTN Size)
 

Detailed Description

Defines MemImage - the view of the file that is visible at any point, as well as the event handlers for editing the file

Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file MemImage.h.

Function Documentation

◆ HMemImageBackup()

EFI_STATUS HMemImageBackup ( VOID  )

Backup function for HDiskImage. Only a few fields need to be backup. This is for making the Disk buffer refresh as few as possible.

Return values
EFI_SUCCESSThe operation was successful.

Definition at line 70 of file MemImage.c.

◆ HMemImageInit()

EFI_STATUS HMemImageInit ( VOID  )

Initialization function for HDiskImage.

Return values
EFI_SUCCESSThe operation was successful.
EFI_LOAD_ERRORA load error occurred.

Definition at line 40 of file MemImage.c.

◆ HMemImageRead()

EFI_STATUS HMemImageRead ( IN UINTN  Offset,
IN UINTN  Size,
IN BOOLEAN  Recover 
)

Read a disk from disk into HBufferImage.

Parameters
[in]OffsetThe offset.
[in]SizeThe size.
[in]Recoverif is for recover, no information print.
Return values
EFI_LOAD_ERRORA load error occurred.
EFI_SUCCESSThe operation was successful.
EFI_OUT_OF_RESOURCESA memory allocation failed.

Definition at line 113 of file MemImage.c.

◆ HMemImageSave()

EFI_STATUS HMemImageSave ( IN UINTN  Offset,
IN UINTN  Size 
)

Save lines in HBufferImage to disk.

Parameters
[in]OffsetThe offset.
[in]SizeThe size.
Return values
EFI_LOAD_ERRORA load error occurred.
EFI_SUCCESSThe operation was successful.
EFI_OUT_OF_RESOURCESA memory allocation failed.

Definition at line 221 of file MemImage.c.

◆ HMemImageSetMemOffsetSize()

EFI_STATUS HMemImageSetMemOffsetSize ( IN UINTN  Offset,
IN UINTN  Size 
)

Set FileName field in HFileImage.

Parameters
[in]OffsetThe offset.
[in]SizeThe size.
Return values
EFI_SUCCESSThe operation was successful.
EFI_OUT_OF_RESOURCESA memory allocation failed.

Definition at line 90 of file MemImage.c.