C# 클래스 Recurity.Blitzableiter.SWF.EncodedU32

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

공개 메소드들

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

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

Encode ( ulong value ) : byte[]

Encodes a value of type ulong to a byte array.

EncodedSizeOf ( ulong value ) : int

Calculates the number of bytes used to encode a ulong value

Read ( Stream source ) : byte[]

Reads an encoded ulong from a given stream

Write ( ulong value, Stream target ) : void

Writes an encoded ulong value to a given Stream

메소드 상세

Decode() 공개 정적인 메소드

Decodes the byte representation of an ulong value to the ulong value itself
public static Decode ( byte data ) : ulong
data byte byte representation
리턴 ulong

Encode() 공개 정적인 메소드

Encodes a value of type ulong to a byte array.
public static Encode ( ulong value ) : byte[]
value ulong Value to convert
리턴 byte[]

EncodedSizeOf() 공개 정적인 메소드

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

Read() 공개 정적인 메소드

Reads an encoded ulong from a given stream
public static Read ( Stream source ) : byte[]
source Stream Stream to read the value from
리턴 byte[]

Write() 공개 정적인 메소드

Writes an encoded ulong value to a given Stream
public static Write ( ulong value, Stream target ) : void
value ulong Value to write
target Stream Stream to write the value to
리턴 void