Noemax.GZip Namespace > ExtraFieldCollection Class > Add Method : Add(Int32,Byte[]) Method |
'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)
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.
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