Discuss this help topic in SecureBlackbox Forum

TElMessageDecompressor.Decompress

TElMessageDecompressor     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Decompresses a piece of data.

Declaration

[C#]
    int Decompress(byte[] InBuffer, ref byte[] OutBuffer, ref int OutSize);
    int Decompress(byte[] InBuffer, int InStartIndex, int InSize, byte[] OutBuffer, int OutStartIndex, ref int OutSize);
    int Decompress(System.IO.Stream InStream, System.IO.Stream OutStream, long InCount);

[VB.NET]
    Function Decompress(ByVal InBuffer As Byte(), ByRef OutBuffer As Byte(), ByRef OutSize As Integer) As Integer
    Function Decompress(ByVal InBuffer As Byte(), ByVal InStartIndex As Integer, ByVal InSize As Integer, ByVal OutBuffer As Byte(), ByVal OutStartIndex As Integer, ByRef OutSize As Integer) As Integer
    Function Decompress(ByVal InStream As System.IO.Stream, ByVal OutStream As System.IO.Stream, ByVal InCount As Long) As Integer

[Pascal]
    function Decompress(InBuffer : pointer; InSize : integer; OutBuffer : pointer; var OutSize : integer) : integer; overload;
    function Decompress(InStream, OutStream : TStream; InCount : Int64 = 0): integer;

[C++]
    int32_t Decompress(void * InBuffer, int32_t InSize, void * OutBuffer, int32_t &OutSize);
    int32_t Decompress(TStream &InStream, TStream &OutStream, int64_t InCount);
    int32_t Decompress(TStream *InStream, TStream *OutStream, int64_t InCount);

[PHP]
    integer Decompress(TSBPointer|array of byte|string|NULL $InBuffer, integer $InSize, TSBPointer|array of byte|string|NULL $OutBuffer, integer &$OutSize)
    integer Decompress(TStream $InStream, TStream $OutStream, integer $InCount)

[Java]
    int decompress(byte[] InBuffer, int InStartIndex, int InSize, byte[] OutBuffer, int OutStartIndex, TSBInteger OutSize);
    int decompress(byte[] InBuffer, byte[] OutBuffer, TSBInteger OutSize);
    int decompress(TElStream InStream, TElStream OutStream, long InCount);

Parameters

  • InBuffer - buffer with compressed data.
  • InSize - the size of the compressed data in bytes.
  • OutBuffer - buffer where the decompressed data will be saved.
  • OutSize - the size of the decompressed data.
  • InStream - stream containing compressed data.
  • OutStream - stream where the decompressed data should be stored.
  • InCount - number of bytes to be read from InStream.
  • InStartIndex - position in InStream at which to start reading.
  • OutStartIndex - position in Out Stream at which to start writing the decompressed data.

Return value

    0 if decompression was successful, and an error code otherwise.

Possible values:

Description

    Use this method to decompress a PKCS#7 CompressedData structure.

Discuss this help topic in SecureBlackbox Forum