lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, May 1, 2019 at 4:20 PM Srinivas Murthy
<the.srinivas.murthy@gmail.com> wrote:
> How do I make copy of a buffer in lua?
> I have an event buffer and I need to save a part of it.

If your "buffer" is a table, maybe table.move() would work?

https://www.lua.org/manual/5.3/manual.html#pdf-table.move