Skip to content

This demo C++ app will uses Kaitai lib to parse a binary file

Notifications You must be signed in to change notification settings

ruvi-d/kaitai-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test app using Kaitai

This demo C++ app will uses Kaitai lib to parse a binary file. The schema is defined in a Kairai specific format and is saved to as a text file with the *.ksy extension.

Setting up Kaitai

Generate a Ballerina IR (BIR) sample file

Building

  • Generate the binary file parser source code

      cd src
      kaitai-struct-compiler --target cpp_stl --cpp-namespace ballerina bir.ksy
    
  • Build test app

      cd build
      cmake ../  -DCMAKE_BUILD_TYPE="Debug"
      make -j
    
  • Run app

      export LD_LIBRARY_PATH=/usr/local/lib/
      ./kaitai_test
    

About

This demo C++ app will uses Kaitai lib to parse a binary file

Resources

Stars

Watchers

Forks