Packer Class

TegoOS

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
SystemObject  Tego.UtilsPacker

Namespace: Tego.Utils
Assembly: Tego (in Tego.dll) Version: 1.0.6599.21663 (1.2017.413.1)
Syntax
public class Packer
Public Class Packer
public ref class Packer
type Packer =  class end

The Packer type exposes the following members.

Constructors
  NameDescription
Public methodPacker
Create a packer.
Public methodPacker(Int32)
Create a packer with a given start address.
Top
Properties
  NameDescription
Public propertyAddress
Current word address where next data will be added (possibly offset at this address by the BitAddress within the word).
Public propertyBitAddress
Bit address within word where data will be added. 0 is beginning of word and 15 is the last bit therein.
Public propertyLastAddress
Address before data was last added to the packer.
Public propertyLastBitAddress
BitAddress before data was last added to the packer. 0 is beginning of word and 15 is the last bit therein.
Public propertySize
Size of data added rounded up to a whole number of words.
Public propertyStartAddress
Start word address of data. Note that this will be word zero of the word array generated by the packer.
Top
Methods
  NameDescription
Public methodAdd
Adds a data value to the buffer using a specified number of bits.
Public methodAddBytes
Adds an array of bytes to the buffer.
Public methodAddEbv
Adds an extensible bit value to the buffer.
Public methodByteAlign
If not currently on a byte boundary, skips to next byte boundary (i.e. start or mid point of a word).
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetWords
Generates an array of words containing previously added data. Do not add further data after calling this method.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWordAlign
If not currently on a word boundary, skips to next word boundary (i.e. start of word).
Top
See Also