C# 클래스 SwfDotNet.IO.Utils.BitParser

A helper class with static methods for bit-parsing swf data
파일 보기 프로젝트 열기: bladecoding/SwfExport

공개 메소드들

메소드 설명
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)

비공개 메소드들

메소드 설명
BitParser ( ) : System Static constructor: initialize bitValueList

메소드 상세

BytewiseReverse() 공개 정적인 메소드

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
리턴 void

GetBitValues() 공개 정적인 메소드

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

Int32ToByteArray() 공개 정적인 메소드

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

ReadInt32() 공개 정적인 메소드

convert total BitArray
public static ReadInt32 ( BitArray bitArr ) : int
bitArr System.Collections.BitArray source BitArray
리턴 int

ReadInt32() 공개 정적인 메소드

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

ReadInt32() 공개 정적인 메소드

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
리턴 int

ReadUInt32() 공개 정적인 메소드

convert total BitArray
public static ReadUInt32 ( BitArray bitArr ) : int
bitArr System.Collections.BitArray source BitArray
리턴 int

ReadUInt32() 공개 정적인 메소드

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

ReadUInt32() 공개 정적인 메소드

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
리턴 int