669f937487b2ee252abfc88e50c195b1091e0f15
[mirror_edk2.git] / MdePkg / Library / BaseCustomDecompressLibNull / BaseCustomDecompressLibNull.c
1 /** @file
2 Null implementation of the custom decompress library
3
4 Copyright (c) 2006 - 2007, Intel Corporation.<BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #include <Base.h>
16 #include <Library/CustomDecompressLib.h>
17
18
19 /**
20 The internal implementation of *_DECOMPRESS_PROTOCOL.GetInfo().
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.
28 @retval RETURN_INVALID_PARAMETER The source data is corrupted
29
30 **/
31 RETURN_STATUS
32 EFIAPI
33 CustomDecompressGetInfo (
34 IN CONST VOID *Source,
35 IN UINT32 SourceSize,
36 OUT UINT32 *DestinationSize,
37 OUT UINT32 *ScratchSize
38 )
39 {
40 return RETURN_UNSUPPORTED;
41 }
42
43
44 /**
45 The internal implementation of *_DECOMPRESS_PROTOCOL.Decompress().
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.
50
51
52 @retval RETURN_SUCCESS Decompression is successfull
53 @retval RETURN_INVALID_PARAMETER The source data is corrupted
54
55 **/
56 RETURN_STATUS
57 EFIAPI
58 CustomDecompress (
59 IN CONST VOID *Source,
60 IN OUT VOID *Destination,
61 IN OUT VOID *Scratch
62 )
63 {
64 return RETURN_UNSUPPORTED;
65 }