DotNetCompression Class Reference for Windows Phone
GetByID Method (ExtraFieldCollection)

The 16-bit unsigned integer identifier of the header field.
Gets the header associated with the ID represented as a 16-bit unsigned integer.
Gets the header.
Public Function GetByID( _
   ByVal id As System.Integer _
) As System.Byte()
Dim instance As ExtraFieldCollection
Dim id As System.Integer
Dim value() As System.Byte
value = instance.GetByID(id)
public System.byte[] GetByID( id
public function GetByID( 
    id: System.Integer
): System.array of Byte; 
public function GetByID( 
   id :
) : System.byte[];
public: System.byte[]* GetByID( id
System.array<byte>^ GetByID( id


The 16-bit unsigned integer identifier of the header field.

Return Value

The array of bytes stored in the header field.

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 Get(Byte, Byte) overload.


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


ExtraFieldCollection Class
ExtraFieldCollection Members

Send Feedback