Add support to append and set bytes on a Buffer with an offset and lengt...

...h.

See BZ 425958