FileStream.Read 的 offset 参数是否从零开始?
FileStream.Read 方法的第二个参数称为 offset,但它是像索引一样从零开始还是从 1 开始?
The second parameter of the FileStream.Read method is called offset but is it zero-based like an index or does it start from one?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它从零开始,表示流的开始。引用自文档:
It starts from zero indicating the beginning of the stream. Quote from the documentation: