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