From 7b8ef2cd90997382dca80f5122908eb6a8e60467 Mon Sep 17 00:00:00 2001 From: jussi Date: Sun, 5 Nov 2023 22:43:03 +0200 Subject: ExportBuffer and LoadBufferFromFile. --- ReiLua_API.lua | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'ReiLua_API.lua') diff --git a/ReiLua_API.lua b/ReiLua_API.lua index 1341931..cefb0ee 100644 --- a/ReiLua_API.lua +++ b/ReiLua_API.lua @@ -1951,15 +1951,14 @@ function RL.GetFileModTime( fileName ) end ---Compress data (DEFLATE algorithm) ---- Success return Buffer ----@param data string +---@param buffer any ---@return any compData -function RL.CompressData( data ) end +function RL.CompressData( buffer ) end ---Decompress data (DEFLATE algorithm). ----- Success return string, int +---- Success Buffer ---@param compData any ----@return any data ----@return any dataSize +---@return any decompData function RL.DecompressData( compData ) end ---Encode data to Base64 string @@ -2301,6 +2300,20 @@ function RL.GetBufferType( buffer ) end ---@return any size function RL.GetBufferSize( buffer ) end +---Write buffer data to binary file +---@param buffer any +---@param path string +---@return any RL.ExportBuffer +function RL.ExportBuffer( buffer, path ) end + +---Read buffer data from binary file +---- Failure return nil +---- Success return Buffer +---@param path string +---@param int any +---@return any buffer +function RL.LoadBufferFromFile( path, int ) end + -- Shapes - Drawing ---Set texture and rectangle to be used on shapes drawing -- cgit v1.2.3