pub fn parse_directory(page: &[u8]) -> Result<Vec<DirEntry>, RefsError>Expand description
Parse a Ministore directory page into its directory entries.
Only entry records (key record type 0x0030) become DirEntrys; base
(0x0010) and name (0x0020) records are skipped (they are not name→child
entries). Names decode from UTF-16LE loss-tolerantly.
§Errors
- Any error from
MinstorePage::parse(a page too short to hold the node header). A well-formed but empty directory page yields an emptyVec.