Skip to content

DFSEC_DecodeUC

Include: Use System\Security.pkg

See Also: Encoding, DFSEC_Decode, DFSEC_EncodeUC

Purpose

Decodes encoded data and returns decoded bytes.

Syntax

Function DFSEC_DecodeUC Global DFSEC_ENCODING_FORMAT eFormat Variant vValue Returns UChar[]

Arguments

eFormat : Encoding format used by the input data. Use one of the C_DFSEC_ENCODING_* constants.

vValue : Encoded data as a DataFlex string or byte-compatible array.

Returns

Decoded data as a UChar[] array.

Behavior

DFSEC_DecodeUC accepts the same input values as DFSEC_Decode, but returns the decoded result as UChar[].

Use this function when decoded data is binary or should not be converted into a String.

Empty input returns an empty array. An invalid format or unsupported value type raises DFERR_BAD_PARAMETER.

Example

UChar[] ucaDecoded

Get DFSEC_DecodeUC C_DFSEC_ENCODING_HEX "44617461466C6578" to ucaDecoded