我正在阅读有关 Streams 和 I/O 的 java 教程。我遇到了一个声明,上面写着..
Buffered input streams read data from a memory area known as a buffer; the native input API is called only when the buffer is empty. Similarly, buffered output streams write data to a buffer, and the native output API is called only when the buffer is full.
为什么只有在缓冲区为空时才调用 Native API?如果是这样,在空缓冲区上调用 API 的需要是什么?