Unpacker Class

TegoOS

Unpacker Class
Helper class for decoding word arrays filled with data, especially where the data elements are not aligned on word boundaries. Data that can be decoded includes fixed length data, variable length codes, extensible bit vectors and byte arrays.
Inheritance Hierarchy
SystemObject  Tego.UtilsUnpacker

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

The Unpacker type exposes the following members.

Constructors
  NameDescription
Public methodUnpacker(UnpackerGetWordDelegate, Int32, Int32)
Create an Unpacker which uses a delegate function to get and to decode data from a source.
Public methodUnpacker(UInt16, Int32, Int32, Int32)
Create an Unpacker which starts decoding from a defined starting point in a given array
Top
Properties
  NameDescription
Public propertyAddress
Current word address from which to get data.
Public propertyBitAddress
Current bit address in word from which to get data (0 is the most significant bit).
Public propertyIsByteAligned
Gets whether the current position to get data is byte aligned.
Public propertyIsWordAligned
Gets whether the current position to get data is word aligned.
Public propertyLastAddress
Previous word address before last get.
Public propertyLastBitAddress
Previous bit address in word before last get.
Top
Methods
  NameDescription
Public methodByteAlign
If not already on a byte boundary, sets the current position to the start of the next byte.
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 methodGet
Get a defined number of bits
Public methodGetBytes
Get a specified number of bytes as a byte array
Public methodGetCode
Get a variable length code matching defined code patterns
Public methodGetEbv
Get the value of an extensible bit vector of specified order
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetNumericCode
Get a variable length code matching defined code patterns.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPopPosition
Public methodPushPosition
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWordAlign
If not already on a word boundary, sets the current position to the start of the next word.
Top
See Also