Fixes #32: Add support for buffer append offset and length.