C# Класс WWActorEdit.Source.FSHelpers

FileSystem Helpers. These help with converting from Little Endian to Big Endian.
Показать файл Открыть проект

Открытые методы

Метод Описание
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