]>
git.proxmox.com Git - mirror_edk2.git/blob - ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.h
2 Defines FileImage - 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_FILE_IMAGE_H_
11 #define _LIB_FILE_IMAGE_H_
13 #include "HexEditor.h"
16 Initialization function for HFileImage
18 @retval EFI_SUCCESS The operation was successful.
26 Cleanup function for HFileImage.
28 @retval EFI_SUCCESS The operation was successful.
36 Backup function for HFileImage. Only a few fields need to be backup.
37 This is for making the file buffer refresh as few as possible.
39 @retval EFI_SUCCESS The operation was successful.
40 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.
48 Read a file from disk into HBufferImage.
50 @param[in] FileName filename to read.
51 @param[in] Recover if is for recover, no information print.
53 @retval EFI_SUCCESS The operation was successful.
54 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.
55 @retval EFI_LOAD_ERROR A load error occurred.
59 IN CONST CHAR16
*FileName
,
64 Save lines in HBufferImage to disk.
66 @param[in] FileName The file name.
68 @retval EFI_SUCCESS The operation was successful.
69 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.
70 @retval EFI_LOAD_ERROR A load error occurred.