as I wanted to reuse it in DatagramChannel but DatagramChannel has no write(Buffer) method.