C# Class WWActorEdit.Source.FSHelpers

FileSystem Helpers. These help with converting from Little Endian to Big Endian.
ファイルを表示 Open project: pho/WindViewer

Public Methods

Method Description
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

Method Details

ToBytes() public static method

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.
return byte[]

Write16() public static method

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

Write32() public static method

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

Write8() public static method

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

WriteArray() public static method

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

WriteFloat() public static method

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

WriteString() public static method

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