simple stack-based, binary protocol library with c and java bindings