|
Fingerprint_Card
|
A class to handle the extra data field for Zip entries. More...


Public Member Functions | |
| ZipExtraData () | |
| Initialise a default instance. | |
| ZipExtraData (byte[] data) | |
| Initialise with known extra data. | |
| byte[] | GetEntryData () |
| Get the raw extra data value. | |
| void | Clear () |
| Clear the stored data. | |
| Stream | GetStreamForTag (int tag) |
| Get a read-only Stream for the associated tag. | |
| bool | Find (int headerID) |
| Find an extra data value. | |
| void | AddEntry (ITaggedData taggedData) |
| Add a new entry to extra data. | |
| void | AddEntry (int headerID, byte[] fieldData) |
| Add a new entry to extra data. | |
| void | StartNewEntry () |
| Start adding a new entry. | |
| void | AddNewEntry (int headerID) |
| Add entry data added since StartNewEntry using the ID passed. | |
| void | AddData (byte data) |
| Add a byte of data to the pending new entry. | |
| void | AddData (byte[] data) |
| Add data to a pending new entry. | |
| void | AddLeShort (int toAdd) |
| Add a short value in little endian order to the pending new entry. | |
| void | AddLeInt (int toAdd) |
| Add an integer value in little endian order to the pending new entry. | |
| void | AddLeLong (long toAdd) |
| Add a long value in little endian order to the pending new entry. | |
| bool | Delete (int headerID) |
| Delete an extra data field. | |
| long | ReadLong () |
| Read a long in little endian form from the last found data value. | |
| int | ReadInt () |
| Read an integer in little endian form from the last found data value. | |
| int | ReadShort () |
| Read a short value in little endian form from the last found data value. | |
| int | ReadByte () |
| Read a byte from an extra data. | |
| void | Skip (int amount) |
| Skip data during reading. | |
| void | Dispose () |
| Dispose of this instance. | |
Properties | |
| int | Length [get] |
| Gets the current extra data length. | |
| int | ValueLength [get] |
| Get the length of the last value found by Find | |
| int | CurrentReadIndex [get] |
| Get the index for the current read value. | |
| int | UnreadCount [get] |
| Get the number of bytes remaining to be read for the current value;. | |
Private Member Functions | |
| ITaggedData | GetData (short tag) |
| Get the tagged data for a tag. | |
| void | ReadCheck (int length) |
| int | ReadShortInternal () |
| Internal form of ReadShort that reads data at any location. | |
| void | SetShort (ref int index, int source) |
Static Private Member Functions | |
| static ITaggedData | Create (short tag, byte[] data, int offset, int count) |
Private Attributes | |
| int | _index |
| int | _readValueStart |
| int | _readValueLength |
| MemoryStream | _newEntry |
| byte[] | _data |
A class to handle the extra data field for Zip entries.
Extra data contains 0 or more values each prefixed by a header tag and length. They contain zero or more bytes of actual data. The data is held internally using a copy on write strategy. This is more efficient but means that for extra data created by passing in data can have the values modified by the caller in some circumstances.
| ICSharpCode.SharpZipLib.Zip.ZipExtraData.ZipExtraData | ( | ) |
Initialise a default instance.

| ICSharpCode.SharpZipLib.Zip.ZipExtraData.ZipExtraData | ( | byte[] | data | ) |
Initialise with known extra data.
| data | The extra data. |
| void ICSharpCode.SharpZipLib.Zip.ZipExtraData.AddData | ( | byte | data | ) |
Add a byte of data to the pending new entry.
| data | The byte to add. |

| void ICSharpCode.SharpZipLib.Zip.ZipExtraData.AddData | ( | byte[] | data | ) |
| void ICSharpCode.SharpZipLib.Zip.ZipExtraData.AddEntry | ( | int | headerID, |
| byte[] | fieldData ) |
Add a new entry to extra data.
| headerID | The ID for this entry. |
| fieldData | The data to add. |
If the ID already exists its contents are replaced.

| void ICSharpCode.SharpZipLib.Zip.ZipExtraData.AddEntry | ( | ITaggedData | taggedData | ) |
Add a new entry to extra data.
| taggedData | The ITaggedData value to add. |


| void ICSharpCode.SharpZipLib.Zip.ZipExtraData.AddLeInt | ( | int | toAdd | ) |
Add an integer value in little endian order to the pending new entry.
| toAdd | The data to add. |


| void ICSharpCode.SharpZipLib.Zip.ZipExtraData.AddLeLong | ( | long | toAdd | ) |
Add a long value in little endian order to the pending new entry.
| toAdd | The data to add. |


| void ICSharpCode.SharpZipLib.Zip.ZipExtraData.AddLeShort | ( | int | toAdd | ) |
Add a short value in little endian order to the pending new entry.
| toAdd | The data to add. |

| void ICSharpCode.SharpZipLib.Zip.ZipExtraData.AddNewEntry | ( | int | headerID | ) |
Add entry data added since StartNewEntry using the ID passed.
| headerID | The identifier to use for this entry. |


| void ICSharpCode.SharpZipLib.Zip.ZipExtraData.Clear | ( | ) |
Clear the stored data.

|
staticprivate |


| bool ICSharpCode.SharpZipLib.Zip.ZipExtraData.Delete | ( | int | headerID | ) |
Delete an extra data field.
| headerID | The identifier of the field to delete. |


| void ICSharpCode.SharpZipLib.Zip.ZipExtraData.Dispose | ( | ) |
Dispose of this instance.
| bool ICSharpCode.SharpZipLib.Zip.ZipExtraData.Find | ( | int | headerID | ) |
Find an extra data value.
| headerID | The identifier for the value to find. |


|
private |
Get the tagged data for a tag.
| tag | The tag to search for. |

| byte[] ICSharpCode.SharpZipLib.Zip.ZipExtraData.GetEntryData | ( | ) |
Get the raw extra data value.

| Stream ICSharpCode.SharpZipLib.Zip.ZipExtraData.GetStreamForTag | ( | int | tag | ) |
Get a read-only Stream for the associated tag.
| tag | The tag to locate data for. |

| int ICSharpCode.SharpZipLib.Zip.ZipExtraData.ReadByte | ( | ) |
Read a byte from an extra data.

|
private |

| int ICSharpCode.SharpZipLib.Zip.ZipExtraData.ReadInt | ( | ) |
Read an integer in little endian form from the last found data value.


| long ICSharpCode.SharpZipLib.Zip.ZipExtraData.ReadLong | ( | ) |
Read a long in little endian form from the last found data value.


| int ICSharpCode.SharpZipLib.Zip.ZipExtraData.ReadShort | ( | ) |
Read a short value in little endian form from the last found data value.


|
private |
Internal form of ReadShort that reads data at any location.

|
private |

| void ICSharpCode.SharpZipLib.Zip.ZipExtraData.Skip | ( | int | amount | ) |
Skip data during reading.
| amount | The number of bytes to skip. |


| void ICSharpCode.SharpZipLib.Zip.ZipExtraData.StartNewEntry | ( | ) |
Start adding a new entry.
Add data using AddData(byte[]), AddLeShort, AddLeInt, or AddLeLong. The new entry is completed and actually added by calling AddNewEntry

|
private |
|
private |
|
private |
|
private |
|
private |
|
get |
|
get |
Gets the current extra data length.
|
get |
Get the number of bytes remaining to be read for the current value;.
|
get |