TianoCore EDK2 master
Loading...
Searching...
No Matches
MemImage.c 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)
 

Variables

EFI_HANDLE HImageHandleBackup
 
HEFI_EDITOR_BUFFER_IMAGE HBufferImage
 
BOOLEAN HBufferImageNeedRefresh
 
BOOLEAN HBufferImageOnlyLineNeedRefresh
 
BOOLEAN HBufferImageMouseNeedRefresh
 
HEFI_EDITOR_GLOBAL_EDITOR HMainEditor
 
HEFI_EDITOR_MEM_IMAGE HMemImage
 
HEFI_EDITOR_MEM_IMAGE HMemImageBackupVar
 
HEFI_EDITOR_MEM_IMAGE HMemImageConst
 

Detailed Description

Functions to deal with Mem buffer

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

Definition in file MemImage.c.

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.

Variable Documentation

◆ HBufferImage

HEFI_EDITOR_BUFFER_IMAGE HBufferImage
extern

Definition at line 27 of file BufferImage.c.

◆ HBufferImageMouseNeedRefresh

BOOLEAN HBufferImageMouseNeedRefresh
extern

Definition at line 69 of file BufferImage.c.

◆ HBufferImageNeedRefresh

BOOLEAN HBufferImageNeedRefresh
extern

Definition at line 62 of file BufferImage.c.

◆ HBufferImageOnlyLineNeedRefresh

BOOLEAN HBufferImageOnlyLineNeedRefresh
extern

Definition at line 67 of file BufferImage.c.

◆ HMainEditor

HEFI_EDITOR_GLOBAL_EDITOR HMainEditor
extern

Definition at line 38 of file MainHexEditor.c.

◆ HMemImage

Definition at line 21 of file MemImage.c.

◆ HMemImageBackupVar

HEFI_EDITOR_MEM_IMAGE HMemImageBackupVar

Definition at line 22 of file MemImage.c.

◆ HMemImageConst

HEFI_EDITOR_MEM_IMAGE HMemImageConst
Initial value:
= {
0,
0
}
#define NULL
Definition: Base.h:319

Definition at line 27 of file MemImage.c.