Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1.82 KB

README.md

File metadata and controls

43 lines (36 loc) · 1.82 KB

Lua Memory

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.

Documentation

History

Version 2.0

  • 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 argument i.
  • C library and header are renamed to *luamem.*.
  • Functions luamem_pushresult and luamem_pushresultsize are removed.
  • Functions luamem_*string are renamed to luamem_*array to explicit that their result are not null-terminated.
  • New function luamem_resetref to reset a referenced memory without releasing its current value.

Version 1.0

  • Lua module
  • C Library