System.ZLib.z_stream

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

  z_stream = record
    next_in: PByte;      // next input byte
    avail_in: Cardinal;  // number of bytes available at next_in
    total_in: LongWord;  // total nb of input bytes read so far
    next_out: PByte;     // next output byte will go here
    avail_out: Cardinal; // remaining free space at next_out
    total_out: LongWord; // total nb of bytes output so far
    msg: MarshaledAString; // last error message, NULL if no error
    state: Pinternal_state; // not visible by applications
    zalloc: alloc_func;  // used to allocate the internal state
    zfree: free_func;    // used to free the internal state
    opaque: Pointer;     // private data object passed to zalloc and zfree
    data_type: Integer;  // best guess about the data type: binary or text
    adler: LongWord;     // Adler-32 or CRC-32 value of the uncompressed data
    reserved: LongWord;  // reserved for future use
  end;

C++

struct DECLSPEC_DRECORD z_stream
{
public:
    System::Byte *next_in;
    unsigned avail_in;
    unsigned total_in;
    System::Byte *next_out;
    unsigned avail_out;
    unsigned total_out;
    char *msg;
    internal_state *state;
    alloc_func zalloc;
    free_func zfree;
    void *opaque;
    int data_type;
    unsigned adler;
    unsigned reserved;
};

Properties

Type Visibility Source Unit Parent
record
struct
public
System.ZLib.pas
System.ZLib.hpp
System.ZLib System.ZLib

Description

z_stream is a record that is used to compress and decompress data.

For more information, see the original documentation provided by ZLib library.

See Also