Next: buffer_len

Prev: buffer_append

buffer_from_strings

buffer_from_strings(list-of-strings, [terminator])
This function returns a buffer constructed by appending the strings in list-of-strings together, treating the strings as sequences of ASCII values, with each string followed by terminator, a buffer. If terminator is not specified, then buffer_from_strings() uses the buffer %[13, 10], a two-byte buffer containing the ASCII codes for a carriage return and a newline.

Examples:

buffer_from_strings(["foo", "bar"])
     => %[102, 111, 111, 13, 10, 98, 97, 4, 13, 10]
buffer_from_strings(["foo", "bar"], %[10])
     => %[102, 111, 111, 10, 98, 97, 4, 10]