]>
git.proxmox.com Git - mirror_edk2.git/blob - ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MemImage.h
2 Defines MemImage - the view of the file that is visible at any point,
3 as well as the event handlers for editing the file
5 Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef _LIB_MEM_IMAGE_H_
11 #define _LIB_MEM_IMAGE_H_
13 #include "HexEditor.h"
16 Initialization function for HDiskImage.
18 @retval EFI_SUCCESS The operation was successful.
19 @retval EFI_LOAD_ERROR A load error occurred.
27 Backup function for HDiskImage. Only a few fields need to be backup.
28 This is for making the Disk buffer refresh as few as possible.
30 @retval EFI_SUCCESS The operation was successful.
38 Set FileName field in HFileImage.
40 @param[in] Offset The offset.
41 @param[in] Size The size.
43 @retval EFI_SUCCESS The operation was successful.
44 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.
47 HMemImageSetMemOffsetSize (
53 Read a disk from disk into HBufferImage.
55 @param[in] Offset The offset.
56 @param[in] Size The size.
57 @param[in] Recover if is for recover, no information print.
59 @retval EFI_LOAD_ERROR A load error occurred.
60 @retval EFI_SUCCESS The operation was successful.
61 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.
71 Save lines in HBufferImage to disk.
73 @param[in] Offset The offset.
74 @param[in] Size The size.
76 @retval EFI_LOAD_ERROR A load error occurred.
77 @retval EFI_SUCCESS The operation was successful.
78 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.