ByteBuffer#toBuffer() for node.js