A Sandcastle Documented Class Library
Packer Class |
Helper class for making word arrays filled with data, especially where the data elements are not aligned on
word boundaries. Data that can be added includes fixed length data, variable length codes, extensible bit
vectors and byte arrays.
Inheritance Hierarchy
Namespace: Tego.Utils
Assembly: Tego (in Tego.dll) Version: 1.0.6599.21663 (1.2017.413.1)
Syntax
The Packer type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Packer | Create a packer. | |
Packer(Int32) | Create a packer with a given start address. |
Properties
Name | Description | |
---|---|---|
Address | Current word address where next data will be added (possibly offset at this address by the BitAddress within the word). | |
BitAddress | Bit address within word where data will be added. 0 is beginning of word and 15 is the last bit therein. | |
LastAddress | Address before data was last added to the packer. | |
LastBitAddress | BitAddress before data was last added to the packer. 0 is beginning of word and 15 is the last bit therein. | |
Size | Size of data added rounded up to a whole number of words. | |
StartAddress | Start word address of data. Note that this will be word zero of the word array generated by the packer. |
Methods
Name | Description | |
---|---|---|
Add | Adds a data value to the buffer using a specified number of bits. | |
AddBytes | Adds an array of bytes to the buffer. | |
AddEbv | Adds an extensible bit value to the buffer. | |
ByteAlign | If not currently on a byte boundary, skips to next byte boundary (i.e. start or mid point of a word). | |
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.) | |
GetWords | Generates an array of words containing previously added data. Do not add further data after calling this method. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WordAlign | If not currently on a word boundary, skips to next word boundary (i.e. start of word). |
See Also