summaryrefslogtreecommitdiff
path: root/ReiLua_API.lua
diff options
context:
space:
mode:
authorjussi2024-02-16 17:28:09 +0200
committerjussi2024-02-16 17:28:09 +0200
commitb2b821929505aea2535d38382b743ad5dd5d1fa0 (patch)
tree83c79a9afef9e566325f0d987f167a6d97bb2039 /ReiLua_API.lua
parent48adbe20dc022d286875408d215ef323c853e6f4 (diff)
downloadreilua-enhanced-b2b821929505aea2535d38382b743ad5dd5d1fa0.tar.gz
reilua-enhanced-b2b821929505aea2535d38382b743ad5dd5d1fa0.tar.bz2
reilua-enhanced-b2b821929505aea2535d38382b743ad5dd5d1fa0.zip
GetBufferData extra arguments. GetBufferElementSize and GetBufferLength.
Diffstat (limited to 'ReiLua_API.lua')
-rw-r--r--ReiLua_API.lua18
1 files changed, 16 insertions, 2 deletions
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