From b2b821929505aea2535d38382b743ad5dd5d1fa0 Mon Sep 17 00:00:00 2001 From: jussi Date: Fri, 16 Feb 2024 17:28:09 +0200 Subject: GetBufferData extra arguments. GetBufferElementSize and GetBufferLength. --- ReiLua_API.lua | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'ReiLua_API.lua') diff --git a/ReiLua_API.lua b/ReiLua_API.lua index 1db9119..8da57ed 100644 --- a/ReiLua_API.lua +++ b/ReiLua_API.lua @@ -2430,8 +2430,10 @@ function RL.UnloadBuffer( buffer ) end ---Get buffer data as table in the format it was stored ---- Success return data{} ---@param buffer any +---@param position integer +---@param length integer ---@return any data -function RL.GetBufferData( buffer ) end +function RL.GetBufferData( buffer, position, length ) end ---Get buffer type ---- Success return int @@ -2439,12 +2441,24 @@ function RL.GetBufferData( buffer ) end ---@return any type function RL.GetBufferType( buffer ) end ----Get buffer size +---Get buffer size in bytes ---- Success return int ---@param buffer any ---@return any size function RL.GetBufferSize( buffer ) end +---Get buffer element size in bytes +---- Success return int +---@param buffer any +---@return any size +function RL.GetBufferElementSize( buffer ) end + +---Get buffer element count +---- Success return int +---@param buffer any +---@return any length +function RL.GetBufferLength( buffer ) end + ---Write buffer data to binary file ---@param buffer any ---@param path string -- cgit v1.2.3