Difference between revisions of "Lua:Class:MemoryStream"

From Cheat Engine
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[Category:Lua]]
 
[[Category:Lua]]
MemoryStream '''class''': ('''Inheritance''': ''[[Stream]]''->''[[Object]]'')
+
MemoryStream '''class''': ('''Inheritance''': ''[[Lua:Class:Stream|Stream]]''->''[[Lua:Class:Object|Object]]'')
  
 
class for memory stream objects.
 
class for memory stream objects.
  
 
== Creation ==
 
== Creation ==
; [[createMemoryStream]]() : MemoryStream
+
; [[Lua:createMemoryStream|createMemoryStream]]() : MemoryStream
 
: Returns a newly created memory steam
 
: Returns a newly created memory steam
  
Line 19: Line 19:
 
: Writes the contents of the memory stream to the specified file
 
: Writes the contents of the memory stream to the specified file
  
== See also ==
+
{{LuaSeeAlso}}
* [[Lua]]
 
* [[Help_File:Script engine|Script engine]]
 
  
 
=== Related Functions ===
 
=== Related Functions ===
* [[createMemoryStream]]
+
* [[Lua:createMemoryStream|createMemoryStream]]
* [[createFileStream]]
+
* [[Lua:createFileStream|createFileStream]]
* [[createStringStream]]
+
* [[Lua:createStringStream|createStringStream]]
  
 
=== Related Classes ===
 
=== Related Classes ===
* [[FileStream]]
+
* [[Lua:Class:FileStream|FileStream]]
* [[StringStream]]
+
* [[Lua:Class:StringStream|StringStream]]
* [[Stream]]
+
* [[Lua:Class:Stream|Stream]]

Latest revision as of 02:06, 25 January 2018

MemoryStream class: (Inheritance: Stream->Object)

class for memory stream objects.

Creation[edit]

createMemoryStream() : MemoryStream
Returns a newly created memory steam

Properties[edit]

Memory : integer : Readonly
The address in Cheat Engine's memory this stream is loaded (READONLY, tends to change)

Methods[edit]

loadFromFile(fileName)
Replaces the contents in the memory stream with the contents of a file on disk
saveToFile(fileName)
Writes the contents of the memory stream to the specified file

See also[edit]

Related Functions[edit]

Related Classes[edit]