Created the Buffer.Write() method