gpt4 book ai didi

c# - BinaryReader 的 FillBuffer 方法有什么作用?

转载 作者:行者123 更新时间:2023-11-30 18:43:44 24 4
gpt4 key购买 nike

根据documentation :

Fills the internal buffer with the specified number of bytes read from the stream.

这是什么意思(什么是内部缓冲区?)?

最佳答案

BinaryReader 有一个内部缓冲区,因此它不需要对底层流执行尽可能多的小读取,尤其是在读取可能需要一些前瞻性的字符数据时。您不需要手动调用它。

关于c# - BinaryReader 的 FillBuffer 方法有什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3955042/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com