Common
|
public abstract class CommonHeaderBase<TTypeIdentifier> : ICommonHeader<TTypeIdentifier>
The CommonHeaderBaseTTypeIdentifier type exposes the following members.
Name | Description | |
---|---|---|
CommonHeaderBaseTTypeIdentifier | Initializes a new instance of the CommonHeaderBaseTTypeIdentifier class |
Name | Description | |
---|---|---|
State | Gets or sets any additional state information that might be needed for parsing. | |
TypeID | Gets or sets the identifier used for identifying the Type to be parsed. |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
GetHashCode | Serves as the default hash function. (Inherited from Object) | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Name | Description | |
---|---|---|
GetEnumValueOrDefault |
Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions) | |
GetEnumValueOrDefaultT |
Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions) |
public CommonHeader(object state, byte[] binaryImage, int startIndex, int length) { if (length > 3) { TypeID = LittleEndian.ToInt32(binaryImage, startIndex); State = state; } else throw new InvalidOperationException("Malformed image"); }