]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseCustomDecompressLibNull/BaseCustomDecompressLibNull.c
Removed CommonHeader.h from MdePkg & MdeModulePkg
[mirror_edk2.git] / MdePkg / Library / BaseCustomDecompressLibNull / BaseCustomDecompressLibNull.c
1 /*++
2
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 BaseCustomDecompressLibNull.c
15
16 Abstract:
17
18 NULL Custom Decompress Library
19
20 --*/
21
22 #include <Base.h>
23 #include <Library/CustomDecompressLib.h>
24
25
26 RETURN_STATUS
27 EFIAPI
28 CustomDecompressGetInfo (
29 IN CONST VOID *Source,
30 IN UINT32 SourceSize,
31 OUT UINT32 *DestinationSize,
32 OUT UINT32 *ScratchSize
33 )
34 /*++
35
36 Routine Description:
37
38 The internal implementation of *_DECOMPRESS_PROTOCOL.GetInfo().
39
40 Arguments:
41
42 Source - The source buffer containing the compressed data.
43 SourceSize - The size of source buffer
44 DestinationSize - The size of destination buffer.
45 ScratchSize - The size of scratch buffer.
46
47 Returns:
48
49 RETURN_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.
50 RETURN_INVALID_PARAMETER - The source data is corrupted
51
52 --*/
53 {
54 return RETURN_UNSUPPORTED;
55 }
56
57 RETURN_STATUS
58 EFIAPI
59 CustomDecompress (
60 IN CONST VOID *Source,
61 IN OUT VOID *Destination,
62 IN OUT VOID *Scratch
63 )
64 /*++
65
66 Routine Description:
67
68 The internal implementation of *_DECOMPRESS_PROTOCOL.Decompress().
69
70 Arguments:
71
72 Source - The source buffer containing the compressed data.
73 Destination - The destination buffer to store the decompressed data
74 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.
75
76 Returns:
77
78 RETURN_SUCCESS - Decompression is successfull
79 RETURN_INVALID_PARAMETER - The source data is corrupted
80
81 --*/
82 {
83 return RETURN_UNSUPPORTED;
84 }