Text$ = PeekS(*MemoryBuffer)
With varARGs available it would be nice
when this command could have an (optional)
additonal Parameter "Length":
Code: Select all
Text$ = PeekS(*MemoryBuffer, Length)
in memory -> it takes "Length" bytes only.
Very useful for conversion with other languages
and WinAPI.
If you have an ARRAY of BYTES or a fixed length
string (char), so you can convert it easily to
a String:
Code: Select all
myChars.b[10]
[...some API function here...]
Text$ = PeekS(@myChar,10)
we can fill ARRAYs of BYTE easily:
Code: Select all
myChars.b[10]
myText.s = "123456789123456789"
PokeS(@myChar, myText, 10)
...Danilo
(registered PureBasic user)