Skip to content

renatomaia/lua-memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Library for manipulation of memory areas in Lua.

Resources

License

Stars

Watchers

Forks

Packages

No packages published