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.
Syntax
'Declaration
 
Public Function GetByID( _
   ByVal id As System.Integer _
) As System.Byte()
'Usage
 
Dim instance As ExtraFieldCollection
Dim id As System.Integer
Dim value() As System.Byte
 
value = instance.GetByID(id)
public System.byte[] GetByID( 
   System.int id
)
public function GetByID( 
    id: System.Integer
): System.array of Byte; 
public function GetByID( 
   id : System.int
) : System.byte[];
public: System.byte[]* GetByID( 
   System.int id
) 
public:
System.array<byte>^ GetByID( 
   System.int id
) 

Parameters

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

Return Value

The array of bytes stored in the 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 Get(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

Send Feedback