Changed the library class name to HiiLibFramework
[mirror_edk2.git] / MdePkg / Library / BaseCustomDecompressLibNull / BaseCustomDecompressLibNull.c
CommitLineData
bf231ea6
A
1/** @file\r
2 Null implementation of the custom decompress library\r
7bc232b2 3\r
bf231ea6
A
4 Copyright (c) 2006 - 2007, Intel Corporation.<BR>\r
5 All rights reserved. This program and the accompanying materials \r
6 are licensed and made available under the terms and conditions of the BSD License \r
7 which accompanies this distribution. The full text of the license may be found at \r
8 http://opensource.org/licenses/bsd-license.php \r
7bc232b2 9\r
bf231ea6
A
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
7bc232b2 12\r
bf231ea6 13**/\r
7bc232b2 14\r
859b72fa
A
15#include <Base.h>\r
16#include <Library/CustomDecompressLib.h>\r
17\r
7bc232b2 18\r
bf231ea6
A
19/**
20 The internal implementation of *_DECOMPRESS_PROTOCOL.GetInfo().\r
21
22 @param[in] Source The source buffer containing the compressed data.
23 @param[in] SourceSize The size of source buffer
24 @param[out] DestinationSize The size of destination buffer.
25 @param[out] ScratchSize The size of scratch buffer.
26
27 @retval RETURN_SUCCESS The size of destination buffer and the size of scratch buffer are successull retrieved.\r
28 @retval RETURN_INVALID_PARAMETER The source data is corrupted
29
30**/\r
7bc232b2
LG
31RETURN_STATUS\r
32EFIAPI\r
33CustomDecompressGetInfo (\r
34 IN CONST VOID *Source,\r
35 IN UINT32 SourceSize,\r
36 OUT UINT32 *DestinationSize,\r
37 OUT UINT32 *ScratchSize\r
38 )\r
7bc232b2
LG
39{\r
40 return RETURN_UNSUPPORTED;\r
41}\r
42\r
bf231ea6
A
43\r
44/**
45 The internal implementation of *_DECOMPRESS_PROTOCOL.Decompress().\r
46
47 @param[in] Source The source buffer containing the compressed data.
48 @param[in] Destination The destination buffer to store the decompressed data
49 @param[out] Scratch The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.\r
50
51
52 @retval RETURN_SUCCESS Decompression is successfull\r
53 @retval RETURN_INVALID_PARAMETER The source data is corrupted
54
55**/\r
7bc232b2
LG
56RETURN_STATUS\r
57EFIAPI\r
58CustomDecompress (\r
59 IN CONST VOID *Source,\r
60 IN OUT VOID *Destination,\r
61 IN OUT VOID *Scratch\r
62 )\r
7bc232b2
LG
63{\r
64 return RETURN_UNSUPPORTED;\r
65}\r