Drains the entire contents of the input buffer and places them into buf
$buf
Drains the entire contents of the input buffer and places them into buf .
buf
Target buffer
成功した場合に true を、失敗した場合に false を返します。
true
false