LuaSTG-x Core API
|
Public Member Functions | |
function | Close () |
关闭上行流 More... | |
function | GetStream () |
获取流 More... | |
function | init (local stream) |
function | WriteByte (local b) |
写入一个字节 More... | |
function | WriteChar (local c) |
写入一个字符 More... | |
function | WriteFloat (local f) |
以小端序写入一个32位浮点数 More... | |
function | WriteInt (local i) |
以小端序写入一个32位带符号整数 More... | |
function | WriteShort (local s) |
以小端序写入一个16位带符号整数 More... | |
function | WriteString (local s, local nullTerminate) |
写入一个字符串 More... | |
function | WriteUInt (local i) |
以小端序写入一个32位无符号整数 More... | |
function | WriteUShort (local s) |
以小端序写入一个16位无符号整数 More... | |
function Close | ( | ) |
关闭上行流
function GetStream | ( | ) |
获取流
写入一个字符串
s | string 字符串 |
nullTerminate | boolean 是否以\0结尾 |