LibMISB/Examples/Library basic usage: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 13: Line 13:
g++ -o misb-converter misb-converter.cpp $(FLAGS)
g++ -o misb-converter misb-converter.cpp $(FLAGS)
</syntaxhighlight>
</syntaxhighlight>


To perform the encoding, the following command is executed. Where the '''--encode''' flag indicates that encoding is to be performed. The '''-i''' flag indicates the input file, where the metadata must be raw without encoding. On the other hand, the '''-o''' flag indicates the output file, which contains the encoded bytes in a binary file. The '''--verbose''' flag shows the KLV bytes encoded on the terminal.  
To perform the encoding, the following command is executed. Where the '''--encode''' flag indicates that encoding is to be performed. The '''-i''' flag indicates the input file, where the metadata must be raw without encoding. On the other hand, the '''-o''' flag indicates the output file, which contains the encoded bytes in a binary file. The '''--verbose''' flag shows the KLV bytes encoded on the terminal.