The purpose of this project is to support manipulation of memory areas in Lua. These memory areas are much like Lua strings, but their contents can be modified in place and have an identity (selfness) independent from their contents. The library provides the following components:
- Module to manipulate memory areas in Lua.
- C API for manipulation memory areas in similar fashion to the Lua C API.
- Updated to Lua 5.4.
- Referenced (and resizable) memories are closeable.
- Memories now support concat operator (
..
) to produce strings. memory.get
now requires the indice argumenti
.- C library and header are renamed to
*luamem.*
. - Functions
luamem_pushresult
andluamem_pushresultsize
are removed. - Functions
luamem_*string
are renamed toluamem_*array
to explicit that their result are not null-terminated. - New function
luamem_resetref
to reset a referenced memory without releasing its current value.
- Lua module
- C Library