C# 클래스 Recurity.Swf.SwfEncodedU32

This class offers access to the EncodedU32 format of the Swf specification. It defines an unsigned Iteger as a sequence of 1 to 5 bytes. The most significant bit of a byte indicates if the next byte is also part of the value. The byte are ordered low to high.
파일 보기 프로젝트 열기: rtezli/Blitzableiter

공개 메소드들

메소드 설명
SwfEncodedSizeOf ( ulong value ) : int

Calculates the number of bytes used to encode a ulong value

SwfReadEncodedU32 ( BinaryReader source ) : ulong

Reads an ulong value encoded as EncodedU32 from stream

SwfWriteEncodedU32 ( ulong value, BinaryWriter target ) : void

Writes an encoded ulong value to a given Stream

비공개 메소드들

메소드 설명
SwfDecodeU32 ( byte data ) : ulong

Decodes the byte representation of an ulong value to the ulong value itself

SwfEncodeU32 ( ulong value ) : byte[]

Encodes a value of type ulong to a byte array.

SwfReadEncodedU32Data ( BinaryReader source ) : byte[]

Reads an encoded ulong from a given stream

메소드 상세

SwfEncodedSizeOf() 공개 정적인 메소드

Calculates the number of bytes used to encode a ulong value
public static SwfEncodedSizeOf ( ulong value ) : int
value ulong value to calculate the size of
리턴 int

SwfReadEncodedU32() 공개 정적인 메소드

Reads an ulong value encoded as EncodedU32 from stream
public static SwfReadEncodedU32 ( BinaryReader source ) : ulong
source System.IO.BinaryReader Stream to read the data
리턴 ulong

SwfWriteEncodedU32() 공개 정적인 메소드

Writes an encoded ulong value to a given Stream
public static SwfWriteEncodedU32 ( ulong value, BinaryWriter target ) : void
value ulong Value to write
target System.IO.BinaryWriter Stream to write the value to
리턴 void