CFB code generator
Project description
CFB Encoding
CFB (Canonical FlatBuffers) is a restricted variant of FlatBuffers for producing unequivocal transfer syntax.
Usage
Install the code geneartor as commane line utility:
pip install cfbc
First generate bfbs file from fbs:
flatc -b --schema example.fbs
Then generate rust files from bfbs:
cfbc example.bfbs
Use Verifier with flatbuffers rust
Add the generated <name>_generated_verifier.rs
to the project. This file
depends on the crate flatbuffers
.
The file defines a function get_root
, which is intended to replace the
function with the same name in flatbuffers
. This function will verify the
buffer, and returns a Result
to indicate whether the buffer is valid.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cfbc-0.1.6.tar.gz
(14.2 kB
view hashes)
Built Distribution
cfbc-0.1.6-py3-none-any.whl
(23.5 kB
view hashes)