Module utils.ltn12.source

LTN12 source utils.

LNT12 stands for Lua Technical Note #12. It deals with sources, sinks, filters, etc.

You can read the official technical note at Filters Sources And Sinks article page.

LTN12 official module is shipped with LuaSocket. Official LTN12 API documentation can be found at LTN12 Official module page.

This module provides extra LTN12 sources.

Type utils.ltn12.source

utils.ltn12.source.table(t, empty)

Returns a LTN12 source on table.

utils.ltn12.source.toString(src)

Transforms a LTN12 source into a string.

Type utils.ltn12.source

Field(s)

utils.ltn12.source.table(t, empty)

Returns a LTN12 source on table.

Parameters

  • t : the table, must be a list (indexed by integer).

  • empty : optional boolean, true to remove the table's values.

Return value

LTN12 source function on the table.

utils.ltn12.source.toString(src)

Transforms a LTN12 source into a string.

Parameter

  • src : LTN12 source.

Return value

string.