C# 클래스 FyreVM.BigEndian

Provides utility functions for working with big-endian numbers.
파일 보기 프로젝트 열기: ChicagoDave/Zifmia 1 사용 예제들

공개 메소드들

메소드 설명
ReadInt16 ( Stream stream ) : ushort

Reads an unsigned, big-endian, 16-bit number from a stream.

ReadInt16 ( byte array, int offset ) : ushort

Reads an unsigned, big-endian, 16-bit number from a byte array.

ReadInt16 ( byte array, uint offset ) : ushort

Reads an unsigned, big-endian, 16-bit number from a byte array.

ReadInt32 ( Stream stream ) : uint

Reads an unsigned, big-endian, 32-bit number from a stream.

ReadInt32 ( byte array, int offset ) : uint

Reads an unsigned, big-endian, 32-bit number from a byte array.

ReadInt32 ( byte array, uint offset ) : uint

Reads an unsigned, big-endian, 32-bit number from a byte array.

WriteInt16 ( Stream stream, ushort value ) : void

Writes an unsigned, big-endian, 16-bit number to a stream.

WriteInt16 ( byte array, int offset, ushort value ) : void

Writes an unsigned, big-endian, 16-bit number into a byte array.

WriteInt16 ( byte array, uint offset, ushort value ) : void

Writes an unsigned, big-endian, 16-bit number into a byte array.

WriteInt32 ( Stream stream, uint value ) : void

Writes an unsigned, big-endian, 32-bit number to a stream.

WriteInt32 ( byte array, int offset, uint value ) : void

Writes an unsigned, big-endian, 32-bit number into a byte array.

WriteInt32 ( byte array, uint offset, uint value ) : void

Writes an unsigned, big-endian, 32-bit number into a byte array.

메소드 상세

ReadInt16() 공개 정적인 메소드

Reads an unsigned, big-endian, 16-bit number from a stream.
public static ReadInt16 ( Stream stream ) : ushort
stream Stream The stream to read from.
리턴 ushort

ReadInt16() 공개 정적인 메소드

Reads an unsigned, big-endian, 16-bit number from a byte array.
public static ReadInt16 ( byte array, int offset ) : ushort
array byte The array to read from.
offset int The index within the array where the number starts.
리턴 ushort

ReadInt16() 공개 정적인 메소드

Reads an unsigned, big-endian, 16-bit number from a byte array.
public static ReadInt16 ( byte array, uint offset ) : ushort
array byte The array to read from.
offset uint The index within the array where the number starts.
리턴 ushort

ReadInt32() 공개 정적인 메소드

Reads an unsigned, big-endian, 32-bit number from a stream.
public static ReadInt32 ( Stream stream ) : uint
stream Stream The stream to read from.
리턴 uint

ReadInt32() 공개 정적인 메소드

Reads an unsigned, big-endian, 32-bit number from a byte array.
public static ReadInt32 ( byte array, int offset ) : uint
array byte The array to read from.
offset int The index within the array where the number starts.
리턴 uint

ReadInt32() 공개 정적인 메소드

Reads an unsigned, big-endian, 32-bit number from a byte array.
public static ReadInt32 ( byte array, uint offset ) : uint
array byte The array to read from.
offset uint The index within the array where the number starts.
리턴 uint

WriteInt16() 공개 정적인 메소드

Writes an unsigned, big-endian, 16-bit number to a stream.
public static WriteInt16 ( Stream stream, ushort value ) : void
stream Stream The stream to write to.
value ushort The number to write.
리턴 void

WriteInt16() 공개 정적인 메소드

Writes an unsigned, big-endian, 16-bit number into a byte array.
public static WriteInt16 ( byte array, int offset, ushort value ) : void
array byte The array to write into.
offset int The index within the array where the number will start.
value ushort The number to write.
리턴 void

WriteInt16() 공개 정적인 메소드

Writes an unsigned, big-endian, 16-bit number into a byte array.
public static WriteInt16 ( byte array, uint offset, ushort value ) : void
array byte The array to write into.
offset uint The index within the array where the number will start.
value ushort The number to write.
리턴 void

WriteInt32() 공개 정적인 메소드

Writes an unsigned, big-endian, 32-bit number to a stream.
public static WriteInt32 ( Stream stream, uint value ) : void
stream Stream The stream to write to.
value uint The number to write.
리턴 void

WriteInt32() 공개 정적인 메소드

Writes an unsigned, big-endian, 32-bit number into a byte array.
public static WriteInt32 ( byte array, int offset, uint value ) : void
array byte The array to write into.
offset int The index within the array where the number will start.
value uint The number to write.
리턴 void

WriteInt32() 공개 정적인 메소드

Writes an unsigned, big-endian, 32-bit number into a byte array.
public static WriteInt32 ( byte array, uint offset, uint value ) : void
array byte The array to write into.
offset uint The index within the array where the number will start.
value uint The number to write.
리턴 void