The Length of the string is automatically set to the right value after assigning buf to the string.
如果我们指定完全缓存或者行缓存,buf和size可选的指定一个buffer和它的大小。
If we specify fully buffered or line buffered, buf and size can optionally specify a buffer and its size.