@jtgrassie pointed out that the example I provided was colored incorrectly. He also made the good point that the image wasn't easy to review/correct. I reworked the example so that it's text-only. It's easier to review and edit, and reveals the structure better in my opinion. Also this is easier for people who can't distinguish colors as easily.
Make sure to double-check this work because there's a decent chance I screwed up the comments. The actual byte data was generated and should be solid.
@ -158,7 +158,7 @@ that most will be familiar with):
```json
```json
{
{
"short_quote": "Give me liberty or give me death!",
"short_quote": "Give me liberty or give me death",
"long_quote": "Monero is more than just a technology. It's also what the technology stands for.",
"long_quote": "Monero is more than just a technology. It's also what the technology stands for.",
"signed_32bit_int": 20140418,
"signed_32bit_int": 20140418,
"array_of_bools": [true, false, true, true],
"array_of_bools": [true, false, true, true],
@ -169,9 +169,51 @@ that most will be familiar with):
}
}
```
```
This would translate to:
This object would translate into the following bytes when serialized into epee portable storage format. The bytes are represented in hex, with comments and whitespace added for readability.
![Epee binary storage format example](/docs/images/storage_binary_example.png)