Skip to content

rystidia/KaitaiStruct.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kaitai Struct: runtime library for Julia

This library implements Kaitai Struct API for Julia.

Build status (Github Actions)

Kaitai Struct is a declarative language used for describe various binary data structures, laid out in files or in memory: i.e. binary file formats, network stream packet formats, etc. This library is not meant to be used by a user as a standalone project. It is designed to be a part of Kaitai Struct project. For example, the following specification defines a string preceded by an integer that designates its length:

seq:
  - id: my_len
    type: u4
  - id: my_str
    type: str
    size: my_len
    encoding: UTF-8

With this library, the described data can be parsed in the following way:

my_len = KaitaiStruct.readU4(io)
my_str = decode(KaitaiStruct.read_bytes(io, my_len), "UTF-8")

Further reading:

About

Kaitai Struct: runtime for Julia

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages