s/buffer.size/buffer.length/