DotNetCompression Class Reference for Windows Phone
Add(Int32,Byte[]) Method






The 16-bit unsigned integer identifier of the header field.
The array of bytes to be stored in header field.
Adds the header to the list of GZip headers.
Syntax
'Declaration
 
Public Overloads Sub Add( _
   ByVal id As System.Integer, _
   ByVal data() As System.Byte _
) 
'Usage
 
Dim instance As ExtraFieldCollection
Dim id As System.Integer
Dim data() As System.Byte
 
instance.Add(id, data)
public void Add( 
   System.int id,
   System.byte[] data
)
public procedure Add( 
    id: System.Integer;
    data: System.Bytearray of
); 
public function Add( 
   id : System.int,
   data : System.byte[]
);
public: void Add( 
   System.int id,
   System.byte[]* data
) 
public:
void Add( 
   System.int id,
   System.array<byte>^ data
) 

Parameters

id
The 16-bit unsigned integer identifier of the header field.
data
The array of bytes to be stored in header field.
Remarks

Each GZip header extra-field is identified by two 8-bit values (ID1 and ID2), which can be represented as a single 16-bit unsigned integer where ID1 is the most significant 8 bits and ID2 is the less significant 8 bits of its binary representation.

Use this method if it's more comfortable to provide the ID as a single Int16 value. To provide the ID as two 8-bit fields use Add(Byte, Byte, Byte[]) overload.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ExtraFieldCollection Class
ExtraFieldCollection Members
Overload List

Send Feedback