Skip to content

在第一章1.3节关于FileSet和File的描述的疑问 #36

@tanqiangyes

Description

@tanqiangyes

原文为

在每个File内部可以通过offset定位下标索引,通过offset+File.base可以将File内部的offset转换为Pos位置。因为Pos是FileSet的全局偏移量,反之也可以通过Pos查询对应的File,以及对应File内部的offset。

图画为:
image

是不是应该为:

在每个File内部可以通过offset定位下标索引,通过File.offset+FileSet.base可以将File内部的offset转换为Pos位置。因为Pos是FileSet的全局偏移量,反之也可以通过Pos查询对应的File,以及对应File内部的offset。

如果是我理解错误,请大佬指正。

求大佬解惑!
@chai2010

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions