Difference between revisions of "Lua:Class:StringStream"
Jump to navigation
Jump to search
m (moved StringStream to Lua:Class:StringStream) |
(→Related Functions) |
||
Line 28: | Line 28: | ||
=== Related Functions === | === Related Functions === | ||
− | * [[createStringStream]] | + | * [[Lua:createStringStream|createStringStream]] |
− | * [[createMemoryStream]] | + | * [[Lua:createMemoryStream|createMemoryStream]] |
− | * [[createFileStream]] | + | * [[Lua:createFileStream|createFileStream]] |
=== Related Classes === | === Related Classes === |
Revision as of 01:36, 25 January 2018
StringStream class: (Inheritance: Stream->Object)
Class for using Stream objects as a Strings based object.
Creation
- createStringStream() : StringStream
- Returns a newly created string steam.
Properties
- DataString : string
- The internal string
Examples
local fileStr = nil local tableFile = findTableFile('PlayerBaseHook.CEA') if tableFile ~= nil then local stringStream = createStringStream() stringStream.Position = 0 -- if not set before using 'copyFrom' the 'StringStream' object will be inconsistent. stringStream.copyFrom(tableFile.Stream, tableFile.Stream.Size) fileStr = stringStream.DataString stringStream.destroy() end