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