Difference between revisions of "Buffer.readstring"
From GiderosMobile
(wip) |
(No difference)
|
Revision as of 05:37, 6 February 2025
Available since: Gideros 2025.1
Class: buffer_luau
Description
Reads a string of length count from the buffer at the specified offset.
(string) = buffer.readstring(b,offset,count)
Parameters
b: (buffer) the buffer
offset: (number) offset from the beginning of the buffer memory, starting from 0
count: (number) length to read
Return values
Returns (string) the string from the buffer
Example
-- used to read a string of length ‘count’ from the buffer at specified offset
local offset3 = 6
local count = buffer.len(b)-offset3
print(buffer.readstring(b, offset3, count))