Buffer.tostring

From GiderosMobile
Revision as of 03:13, 6 February 2025 by MoKaLux (talk | contribs) (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"> (...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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))