Buffer.tostring

From GiderosMobile

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