ExportBuffer and LoadBufferFromFile.

This commit is contained in:
jussi
2023-11-05 22:43:03 +02:00
parent d74a505d40
commit 7b8ef2cd90
7 changed files with 120 additions and 82 deletions

21
API.md
View File

@@ -4508,7 +4508,7 @@ Get file modification time (Last write time)
---
> compData = RL.CompressData( string data )
> compData = RL.CompressData( Buffer buffer )
Compress data (DEFLATE algorithm)
@@ -4516,11 +4516,11 @@ Compress data (DEFLATE algorithm)
---
> data, dataSize = RL.DecompressData( Buffer compData )
> decompData = RL.DecompressData( Buffer compData )
Decompress data (DEFLATE algorithm).
- Success return string, int
- Success Buffer
---
@@ -4920,6 +4920,21 @@ Get buffer size
---
> RL.ExportBuffer( Buffer buffer, string path )
Write buffer data to binary file
---
> buffer = RL.LoadBufferFromFile( string path, type int )
Read buffer data from binary file
- Failure return nil
- Success return Buffer
---
## Shapes - Drawing
---