Difference between revisions of "Buffer.tostring"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2025.1<br/> '''Class:''' buffer_luau<br/> === Description === Returns the buffer data as a string. <syntaxhighlight lang="lua"> (...") |
(No difference)
|
Latest revision as of 03:13, 6 February 2025
Available since: Gideros 2025.1
Class: buffer_luau
Description
Returns the buffer data as a string.
(string) = buffer.tostring(b)
Parameters
b: (buffer) the buffer
Return values
Returns (string) the buffer as a string
Example
local str = "Hello Gideros!"
local b = buffer.fromstring(str)
print(buffer.tostring(b))