Libraries anvil lang buffer

class buffer
extends anvil.lang.sequence
Buffer is a mutable variable length sequence of characters.

Constructor
buffer()
buffer(int capacity)
buffer(string text)
buffer(binary text)
buffer(buffer text)
Creates new string buffer.
Parameters text -  Initial value of buffer
capacity -  Initial capasity of buffer


Methods

buffer ensureCapacity(int capacity)
Ensures that the capacity of the buffer is at least equal to the specified minimum.

string substring(int start)
string substring(int start, int end)
Returns a substring from the given region of this buffer.
Parameters start -  Starting index, included
end -  Ending index, excluded