Class: Buffer
Lua
C++
Edit

Buffer:GetSize

This method retrieves the size of the allocated memory block.

Syntax

Returns

Returns the size of the allocated memory block, in bytes.

Example

--Create a buffer
local buffer = CreateBuffer(10)

--Resize the buffer
buffer:Resize(20)

--Get the buffer size
Print(buffer:GetSize())
Copyright © 2025 Ultra Software.
All rights reserved.