Class std.strbuf

String buffers.

Metamethods

std.strbuf:__concat (buffer, str) Support concatenation of StrBuf objects.
std.strbuf:__tostring (buffer) Support fast conversion to Lua string.

Methods

std.strbuf:concat (s) Add a string to a buffer.
std.strbuf:tostring (self) Convert a buffer to a string.


Metamethods

std.strbuf:__concat (buffer, str)

Support concatenation of StrBuf objects.

 buffer = buffer .. str

Parameters:

Returns:

    std.strbuf modified buffer

See also:

std.strbuf:__tostring (buffer)

Support fast conversion to Lua string.

 str = tostring (buffer)

Parameters:

Returns:

    string concatenation of buffer contents

See also:

Methods

std.strbuf:concat (s)
Add a string to a buffer.

Parameters:

Returns:

    std.strbuf modified buffer
std.strbuf:tostring (self)
Convert a buffer to a string.

Parameters:

  • self

Returns:

    string stringified self
generated by LDoc 1.4.0