Skip to content

v0.4.0

Latest

Choose a tag to compare

@cwfitzgerald cwfitzgerald released this 24 Mar 16:56
· 4 commits to trunk since this release
v0.4.0
8e81fa1

Released 2025-03-24

  • Added a key_value_data function to the reader that returns an iterator over key-value pairs (by @expenses).
  • Reader::levels now returns an iterator over Level structs, which contain the bytes of the level as well as the uncompressed length (by @expenses).
  • Added Header::from_bytes, Header::as_bytes, LevelIndex::from_bytes and LevelIndex::as_bytes (by @expenses).
  • Made the following fields public (by @expenses):
    • Header::LENGTH
    • Header::index
    • LevelIndex::LENGTH
    • LevelIndex::byte_offset
    • LevelIndex::byte_length
    • LevelIndex::uncompressed_byte_length
    • Level::data
    • Level::uncompressed_byte_length
  • Moved header data in BasicDataFormatDescriptor into BasicDataFormatDescriptorHeader.
  • Add ASTC_n_SFLOAT_BLOCK variants to Format.
  • Rename Data Format Descriptor types to all start with Dfd (by @cwfitzgerald):
    • Reader::data_format_descriptors -> Reader::dfd_blocks
    • DataFormatDescriptor -> DfdBlock
    • DataFormatDescriptorHeader -> DfdBlockHeader
    • BasicDataFormatDescriptor -> DfdBlockBasic
    • BasicDataFormatDescriptorHeader -> DfdBlockHeaderBasic