Skip to content

renatomaia/lua-memory

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
doc
 
 
etc
 
 
src
 
 
 
 
 
 
 
 
 
 

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