Liking cljdoc? Tell your friends :D

parse_struct

Serialize/Deserialize binary data in clojure with an api similar to pointer casting in C.

Clojars Project

Installation:

Leiningen/Boot

[fctorial/parse_struct "0.10.0"]

Clojure CLI/deps.edn

fctorial/parse_struct {:mvn/version "0.10.0"}

Gradle

compile 'fctorial:parse_struct:0.10.0'

Maven

<dependency>
  <groupId>fctorial</groupId>
  <artifactId>parse_struct</artifactId>
  <version>0.8.0</version>
</dependency>

Guide

See wiki for full documentation.

See this repo for examples that parse various file formats (elf, zbi, multiboot).

TODO:

  • support cljs
  • eager deserializer and tests
  • abstracted tests

Development:

You'll have to run this command to compile java classes:

javac -cp $(cat .cpcache/$(ls .cpcache/*.cp | head -n 1)) src/clojure/lang/* -d classes

You'll need to have gcc installed to run tests.

clojure -A:test-setup
clojure -A:dump-server
# in other window
clojure -A:test

Can you improve this documentation? These fine people already did:
Sagar Tiwari & Ertuğrul Çetin
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close