]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseCustomDecompressLibNull/BaseCustomDecompressLibNull.c
Removed MdePkg usage of ModuleName: in file headers
[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
13 --*/
14
15 #include <Base.h>
16 #include <Library/CustomDecompressLib.h>
17
18
19 RETURN_STATUS
20 EFIAPI
21 CustomDecompressGetInfo (
22 IN CONST VOID *Source,
23 IN UINT32 SourceSize,
24 OUT UINT32 *DestinationSize,
25 OUT UINT32 *ScratchSize
26 )
27 /*++
28
29 Routine Description:
30
31 The internal implementation of *_DECOMPRESS_PROTOCOL.GetInfo().
32
33 Arguments:
34
35 Source - The source buffer containing the compressed data.
36 SourceSize - The size of source buffer
37 DestinationSize - The size of destination buffer.
38 ScratchSize - The size of scratch buffer.
39
40 Returns:
41
42 RETURN_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.
43 RETURN_INVALID_PARAMETER - The source data is corrupted
44
45 --*/
46 {
47 return RETURN_UNSUPPORTED;
48 }
49
50 RETURN_STATUS
51 EFIAPI
52 CustomDecompress (
53 IN CONST VOID *Source,
54 IN OUT VOID *Destination,
55 IN OUT VOID *Scratch
56 )
57 /*++
58
59 Routine Description:
60
61 The internal implementation of *_DECOMPRESS_PROTOCOL.Decompress().
62
63 Arguments:
64
65 Source - The source buffer containing the compressed data.
66 Destination - The destination buffer to store the decompressed data
67 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.
68
69 Returns:
70
71 RETURN_SUCCESS - Decompression is successfull
72 RETURN_INVALID_PARAMETER - The source data is corrupted
73
74 --*/
75 {
76 return RETURN_UNSUPPORTED;
77 }