Passing a buffer to sendBuffer