diff options
| author | jussi | 2023-11-05 22:43:03 +0200 |
|---|---|---|
| committer | jussi | 2023-11-05 22:43:03 +0200 |
| commit | 7b8ef2cd90997382dca80f5122908eb6a8e60467 (patch) | |
| tree | 42d2ca89a91f0ddb17054fcbb1243fee33399ee1 /ReiLua_API.lua | |
| parent | d74a505d406faf276a265beaf8925d6e8ff9cec0 (diff) | |
| download | reilua-enhanced-7b8ef2cd90997382dca80f5122908eb6a8e60467.tar.gz reilua-enhanced-7b8ef2cd90997382dca80f5122908eb6a8e60467.tar.bz2 reilua-enhanced-7b8ef2cd90997382dca80f5122908eb6a8e60467.zip | |
ExportBuffer and LoadBufferFromFile.
Diffstat (limited to 'ReiLua_API.lua')
| -rw-r--r-- | ReiLua_API.lua | 23 |
1 files changed, 18 insertions, 5 deletions
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 |
