跳到主要内容

Vfp 目录读取 API

asset.section_tags() -> tuple[str, ...]
asset.entries(tag: str) -> tuple[BlockEntry, ...]
asset.read_section(tag: str, *, chunk_id: int = -1) -> bytes

section_tags() 不读 Payload;entries() 返回目录项;read_section() 返回一个已 CRC 校验的存储态 Payload。tag 必须是四字符 ASCII;缺失或重复的 tag/chunk 组合抛出 VfpError。VOX0 的 RLE Payload 不会自动展开,完整权威缓冲请用 voxels()。

for entry in asset.entries("VOX0"):
stored = asset.read_section("VOX0", chunk_id=entry.chunk_id)