Home - JoeVirtual/KonFoo GitHub Wiki
KonFoo Wiki
KonFoo is a Python library for de-serializing byte streams. KonFoo helps you to deserialize a byte stream retrievable through a byte stream provider
to any kind of data source into a meaningful representation by just declaring how the different parts of a byte stream should be represented, respectively mapped to fields
.
You can store the representation as an .ini
file to analyse the byte stream data.
The built-in deserialize hook deserialize(buffer, index, ...)
available for all Container
and Field
classes allows you to adapt even expand or declare the representation during the de-serialization process on the fly.
The built-in deserializer provided by the Pointer
class (called through the read_from(provider, ...)
method) is able to follow even nested absolute or relative pointers to retrieve the byte stream from the byte stream provider
necessary for its referenced data object and to de-serialize (map) it.
After de-serializing the byte stream provided by the byte stream provider
the built-in serializer provided also by the pointer
class (called through the write_to(provider, member, ...)
method) is able to transfer the manipulated values of any container
or field
in the representation back to the byte stream provider
to write it into its data source.