C# Class WWActorEdit.Source.FSHelpers

FileSystem Helpers. These help with converting from Little Endian to Big Endian.
Afficher le fichier Open project: pho/WindViewer

Méthodes publiques

Méthode 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 méthode

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.
Résultat byte[]

Write16() public static méthode

public static Write16 ( BinaryWriter bWriter, ushort value ) : void
bWriter System.IO.BinaryWriter
value ushort
Résultat void

Write32() public static méthode

public static Write32 ( BinaryWriter bWriter, int value ) : void
bWriter System.IO.BinaryWriter
value int
Résultat void

Write8() public static méthode

public static Write8 ( BinaryWriter bWriter, byte value ) : void
bWriter System.IO.BinaryWriter
value byte
Résultat void

WriteArray() public static méthode

public static WriteArray ( BinaryWriter binaryWriter, byte value ) : void
binaryWriter System.IO.BinaryWriter
value byte
Résultat void

WriteFloat() public static méthode

public static WriteFloat ( BinaryWriter binaryWriter, float value ) : void
binaryWriter System.IO.BinaryWriter
value float
Résultat void

WriteString() public static méthode

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