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.getnow requires the indice argumenti.- C library and header are renamed to
*luamem.*. - Functions
luamem_pushresultandluamem_pushresultsizeare removed. - Functions
luamem_*stringare renamed toluamem_*arrayto explicit that their result are not null-terminated. - New function
luamem_resetrefto reset a referenced memory without releasing its current value.
- Lua module
- C Library