January 19th 2020
Read a range of text out of a buffer
the standard custom layer context pointer
the id of the buffer to be read
byte range in the buffer that will be read - the range is left inclusive right exclusive, for example the range [10,20) reads ten bytes, with the first byte read being the one with index 10.
the buffer that will get the copy of the new text which should have at least range.max - range.min available bytes
non-zero on success, when the buffer exists and the range is completely contained within the buffer's contents, otherwise zero