System.ZLib.ZDecompressStr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ZDecompressStr(const s: TBytes): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall ZDecompressStr(const System::DynamicArray<System::Byte> s);

Properties

Type Visibility Source Unit Parent
function public
System.ZLib.pas
System.ZLib.hpp
System.ZLib System.ZLib

Description

ZDecompressStr returns the decompression of a compressed string.

ZDecompressStr decompresses the source dynamic array of bytes (TBytes) represented by s and returns the result as a String.

ZDecompressStr may raise an EZDecompressionError.

See sample:

function myDecompressStr(Source: TBytes): string;
begin
  Result := ZDecompressStr(mySource);
end;

See Also