C# Класс WF.Compiler.GWC

Наследование: IOutput
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Create ( Cartridge cartridge, string username, long userId, string completionCode ) : MemoryStream
WriteToMediaTable ( BinaryWriter output, short position ) : void

Save actual position to media table.

Приватные методы

Метод Описание
GetAscii ( string value ) : byte[]

Get string value as byte array with a zero as end.

GetDouble ( double value ) : byte[]

Get value as byte array in little endian order.

GetInt ( Int32 value ) : byte[]

Get value as byte array in little endian order.

GetLong ( System.Int64 value ) : byte[]

Get value as byte array in little endian order.

GetShort ( Int16 value ) : byte[]

Get value as byte array in little endian order.

saveLuaCode ( string text ) : void

Описание методов

Create() публичный Метод

public Create ( Cartridge cartridge, string username, long userId, string completionCode ) : MemoryStream
cartridge Cartridge
username string
userId long
completionCode string
Результат System.IO.MemoryStream

WriteToMediaTable() публичный Метод

Save actual position to media table.
public WriteToMediaTable ( BinaryWriter output, short position ) : void
output System.IO.BinaryWriter BinaryWrite to write to.
position short Position of the media, which should be updated (Lua binary is ever 0).
Результат void