Repository navigation
v0.14.0
New Features
Object Deletion Support (Issue #51, PR #57)
Full object deletion following the HDF5 C reference implementation. Delete datasets, groups, and attributes from existing files with proper cascade delete and space reclamation.
fw, _ := hdf5.OpenForWrite("data.h5", hdf5.OpenReadWrite)
fw.Delete("/old_dataset")
group.DeleteAttribute("deprecated_attr")
fw.Close()- Unlinks object from parent group (SNOD entry removal, B-tree update)
- Reference counting: cascade delete when nlink reaches 0
- Frees contiguous data blocks, walks chunked index to free each chunk
- Allocator tracks freed space for reuse (best-fit, coalescing, EOF shrink)
Requested by @vrv-bit.
Dense Link Storage Enumeration (PR #55, #56)
Groups using fractal-heap + v2 B-tree dense link storage (HDF5 1.8+) are now fully readable. Previously, such groups showed zero children. This is the layout every NetCDF-4 producer emits for groups with more than ~8 entries.
Also fixes three bugs: ChecksumDirBlocks header size, managed-area origin convention, and HADDR_UNDEF sentinel handling.
Contributed by @rhaist.
See CHANGELOG.md for full details.