Buffer:set

From GiderosMobile
Revision as of 14:26, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "</source>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2020.2
Class: Buffer

Description

Sets data in a Buffer object, extending it if necessary.

(number) = Buffer:set(data,offset)

Parameters

data: (string) data to set in the buffer
offset: (number) offset to write the data at optional

Return values

Returns (number) new buffer size