CryptoPressStream:
Delphi / C++Builder Streaming Compression Library
with Strong Encryption
Converts formatted string to the binary data.
Delphi syntax:
type TCPSStringFormat = (cpssfHEX,cpssfHEXL,cpssfMIME64,cpssfXX,cpssfUU);
procedure FormatToBuffer(Source: String; Format: TCPSStringFormat; out Buffer: PChar; out Size: Integer);
C++ syntax:
enum TCPSStringFormat { cpssfHEX, cpssfHEXL, cpssfMIME64, cpssfXX, cpssfUU };
void __fastcall FormatToBuffer(AnsiString Source, TCPSStringFormat Format, /* out */ char * &Buffer, /* out */ int &Size);
Description
Converts formatted string to the binary data.
Source is a source formatted string.
Format is a string format.
Buffer is a pointer to buffer with source data. Buffer is allocated by GetMem call. You should free it by calling FreeMem.
Size is size in bytes of the buffer.
|