Skip to content

Releases: Lunaji/xanlib

v0.2.0

09 Nov 18:18
Compare
Choose a tag to compare

The serialisation/deserialisation core of the library has been overhauled to work with bytes-like, rather than file-like, objects.

  • All of the classes can be cast to bytes
  • Most of the classes now feature a frombuffer method. This opens up new possibilities of reading these structures from memory, such as files uncompressed on the fly, memory-mapped files, bytes copied over from a hex editor, and more.
  • Vertex and Face now expose a C-style struct as a class attribute. Its methods can be used to pack or unpack data directly into/from other libraries' classes, such as numpy arrays and so on.

v0.1.1

05 Nov 15:51
Compare
Choose a tag to compare

The classes and their individual reader/writers have been greatly cleaned up, re-organised and annotated with type hints.