TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
EFI_STATUS | RedfishContentEncode (IN CHAR8 *ContentEncodedValue, IN CHAR8 *OriginalContent, IN UINTN OriginalContentLength, OUT VOID **EncodedContentPointer, OUT UINTN *EncodedLength) |
EFI_STATUS | RedfishContentDecode (IN CHAR8 *ContentEncodedValue, IN VOID *ContentPointer, IN UINTN ContentLength, OUT VOID **DecodedContentPointer, OUT UINTN *DecodedLength) |
Definitinos of RedfishContentCodingLib.
(C) Copyright 2021 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file RedfishContentCodingLib.h.
EFI_STATUS RedfishContentDecode | ( | IN CHAR8 * | ContentDecodedValue, |
IN VOID * | ContentPointer, | ||
IN UINTN | ContentLength, | ||
OUT VOID ** | DecodedContentPointer, | ||
OUT UINTN * | DecodedContentLength | ||
) |
This is the function to decode the content use the algorithm indicated in ContentEncodedValue. The naming of ContentEncodedValue is follow HTTP spec or could be a platform-specific value.
[in] | ContentDecodedValue | HTTP conent decoded value. The value could be one of below or any which is platform-specific.
|
[in] | ContentPointer | Original content. |
[in] | ContentLength | The length of original content. |
[out] | DecodedContentPointer | Pointer to receive decoded content pointer. |
[out] | DecodedContentLength | Length of decoded content. |
EFI_SUCCESS | Content is decoded successfully. |
EFI_UNSUPPORTED | No supported decoding funciton, |
EFI_INVALID_PARAMETER | One of the given parameter is invalid. |
Definition at line 72 of file RedfishContentCodingLibNull.c.
EFI_STATUS RedfishContentEncode | ( | IN CHAR8 * | ContentEncodedValue, |
IN CHAR8 * | OriginalContent, | ||
IN UINTN | OriginalContentLength, | ||
OUT VOID ** | EncodedContentPointer, | ||
OUT UINTN * | EncodedContentLength | ||
) |
This is the function to encode the content use the algorithm indicated in ContentEncodedValue. The naming of ContentEncodedValue is follow HTTP spec or could be a platform-specific value.
[in] | ContentEncodedValue | HTTP conent encoded value. The value could be one of below or any which is platform-specific.
|
[in] | OriginalContent | Original content. |
[in] | OriginalContentLength | The length of original content. |
[out] | EncodedContentPointer | Pointer to receive the encoded content pointer. |
[out] | EncodedContentLength | Length of encoded content. |
EFI_SUCCESS | Content is encoded successfully. |
EFI_UNSUPPORTED | No supported encoding funciton, |
EFI_INVALID_PARAMETER | One of the given parameter is invalid. |
Definition at line 36 of file RedfishContentCodingLibNull.c.