Writes bytes to a buffer

@TabDigital/api