Buffer.len
From GiderosMobile
Revision as of 03:18, 6 February 2025 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2025.1<br/> '''Class:''' buffer_luau<br/> === Description === Returns the size of the buffer in bytes. <syntaxhighlight lang="lua...")
Available since: Gideros 2025.1
Class: buffer_luau
Description
Returns the size of the buffer in bytes.
(number) = buffer.len(b)
Parameters
b: (buffer) the buffer
Return values
Returns (number) the size of the buffer in bytes
Example
local b: buffer = buffer.create(16)
print(buffer.len(b))