This method retrieves the size of the allocated memory block.
Returns the size of the allocated memory block, in bytes.
--Create a buffer
local buffer = CreateBuffer(10)
--Resize the buffer
buffer:Resize(20)
--Get the buffer size
Print(buffer:GetSize())