telos-csb
v1.0.0
Published
A Simple Text Format for Encoding Raw Binary Data.
Readme
CSB
1 - Abstract
Character Separated Binary, or CSB for short, is a simple text format for encoding raw binary data.
In CSB, bytes may be written in binary format and may be separated by any non-binary characters. Said bytes may omit leading zeroes.
2 - Contents
2.1 - Examples
2.1.1 - Assembly
If a file called "data.csb" contained the following code:
1000001
1000010
1000011then running the following command:
npx telos-csb assemble data.csb data.outwould produce a binary file called "data.out", which if opened in a text editor would display:
ABC2.1.2 - Disassembly
If the data.out file from the previous example is present in the current directory, and if this command were to be run:
npx telos-csb disassemble data.out data2.csbthen a file called "data2.csb" would be generated containing the same content as the data.csb from the previous example.
