C# 클래스 WWActorEdit.Source.FSHelpers

FileSystem Helpers. These help with converting from Little Endian to Big Endian.
파일 보기 프로젝트 열기: pho/WindViewer

공개 메소드들

메소드 설명
ToBytes ( uint value, int length ) : byte[]

Used to easily convert "0xFFFFFF" into 3 bytes, each with the value of FF.

Write16 ( BinaryWriter bWriter, ushort value ) : void
Write32 ( BinaryWriter bWriter, int value ) : void
Write8 ( BinaryWriter bWriter, byte value ) : void
WriteArray ( BinaryWriter binaryWriter, byte value ) : void
WriteFloat ( BinaryWriter binaryWriter, float value ) : void
WriteString ( BinaryWriter bWriter, string str, int length ) : void

메소드 상세

ToBytes() 공개 정적인 메소드

Used to easily convert "0xFFFFFF" into 3 bytes, each with the value of FF.
public static ToBytes ( uint value, int length ) : byte[]
value uint Value of bytes in Hexadecimal format, ie: 0xFF or 0xFF00FF
length int Number of bytes in length, ie: 1 or 3.
리턴 byte[]

Write16() 공개 정적인 메소드

public static Write16 ( BinaryWriter bWriter, ushort value ) : void
bWriter System.IO.BinaryWriter
value ushort
리턴 void

Write32() 공개 정적인 메소드

public static Write32 ( BinaryWriter bWriter, int value ) : void
bWriter System.IO.BinaryWriter
value int
리턴 void

Write8() 공개 정적인 메소드

public static Write8 ( BinaryWriter bWriter, byte value ) : void
bWriter System.IO.BinaryWriter
value byte
리턴 void

WriteArray() 공개 정적인 메소드

public static WriteArray ( BinaryWriter binaryWriter, byte value ) : void
binaryWriter System.IO.BinaryWriter
value byte
리턴 void

WriteFloat() 공개 정적인 메소드

public static WriteFloat ( BinaryWriter binaryWriter, float value ) : void
binaryWriter System.IO.BinaryWriter
value float
리턴 void

WriteString() 공개 정적인 메소드

public static WriteString ( BinaryWriter bWriter, string str, int length ) : void
bWriter System.IO.BinaryWriter
str string
length int
리턴 void