Show: Delphi C++
Display Preferences

System.NetEncoding.TNetEncoding.Decode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Decode(const Input, Output: TStream): Integer; overload;
function Decode(const Input: array of Byte): TBytes; overload;
function Decode(const Input: string): string; overload;

C++

int __fastcall Decode(System::Classes::TStream* const Input, System::Classes::TStream* const Output)/* overload */;
System::DynamicArray<System::Byte> __fastcall Decode(const System::Byte *Input, const int Input_High)/* overload */;
System::UnicodeString __fastcall Decode(const System::UnicodeString Input)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.NetEncoding.pas
System.NetEncoding.hpp
System.NetEncoding TNetEncoding

Description

Decodes the input data and returns the decoded data.

If Input is a string or an array of bytes, Decode returns the decoded data as a string or as an array of bytes respectively.
If Input is a string, it should be UTF8 encoded.
If Input is a stream, Decode saves the decoded data into Output and returns the number of bytes written into Output.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance