System.NetEncoding.TNetEncoding.Encode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

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

Description

Encodes the input data and returns the encoded data.

If Input is a string or an array of bytes, Encode returns the encoded data as a string or as an array of bytes respectively.
If Input is a stream, Encode saves the encoded data into Output and returns the number of bytes written into Output.

See Also