C# Class SwfDotNet.IO.Utils.BitParser

A helper class with static methods for bit-parsing swf data
Afficher le fichier Open project: bladecoding/SwfExport

Méthodes publiques

Méthode Description
BytewiseReverse ( BitArray bitArr ) : void

Reverse bit order in each byte (8 bits) of a BitArray (change endian bit order)

GetBitValues ( byte byteSequence ) : BitArray

Prepare read bytes for bit parsing

Int32ToByteArray ( int int32 ) : byte[]

convert a signed int 32 to a four bytes array

ReadInt32 ( BitArray bitArr ) : int

convert total BitArray

ReadInt32 ( BitArray bitArr, int length ) : int

starts at index 0

ReadInt32 ( BitArray bitArr, int index, int length ) : int

Overloaded static method Converts part of a BitArray to a signed int32

ReadUInt32 ( BitArray bitArr ) : int

convert total BitArray

ReadUInt32 ( BitArray bitArr, int length ) : int

start at index 0

ReadUInt32 ( BitArray bitArr, int index, int length ) : int

convert part of a BitArray to a unsigned integer (uint32)

Private Methods

Méthode Description
BitParser ( ) : System Static constructor: initialize bitValueList

Method Details

BytewiseReverse() public static méthode

Reverse bit order in each byte (8 bits) of a BitArray (change endian bit order)
public static BytewiseReverse ( BitArray bitArr ) : void
bitArr System.Collections.BitArray
Résultat void

GetBitValues() public static méthode

Prepare read bytes for bit parsing
public static GetBitValues ( byte byteSequence ) : BitArray
byteSequence byte /// Byte sequence read from swf by aBinaryReader ///
Résultat System.Collections.BitArray

Int32ToByteArray() public static méthode

convert a signed int 32 to a four bytes array
public static Int32ToByteArray ( int int32 ) : byte[]
int32 int int32 number to convert
Résultat byte[]

ReadInt32() public static méthode

convert total BitArray
public static ReadInt32 ( BitArray bitArr ) : int
bitArr System.Collections.BitArray source BitArray
Résultat int

ReadInt32() public static méthode

starts at index 0
public static ReadInt32 ( BitArray bitArr, int length ) : int
bitArr System.Collections.BitArray source BitArray
length int bit count
Résultat int

ReadInt32() public static méthode

Overloaded static method Converts part of a BitArray to a signed int32
public static ReadInt32 ( BitArray bitArr, int index, int length ) : int
bitArr System.Collections.BitArray source BitArray
index int start index
length int bit count
Résultat int

ReadUInt32() public static méthode

convert total BitArray
public static ReadUInt32 ( BitArray bitArr ) : int
bitArr System.Collections.BitArray source BitArray
Résultat int

ReadUInt32() public static méthode

start at index 0
public static ReadUInt32 ( BitArray bitArr, int length ) : int
bitArr System.Collections.BitArray source BitArray
length int bit count
Résultat int

ReadUInt32() public static méthode

convert part of a BitArray to a unsigned integer (uint32)
public static ReadUInt32 ( BitArray bitArr, int index, int length ) : int
bitArr System.Collections.BitArray source BitArray
index int start index
length int bit count
Résultat int