More DataSpec tweaks

This commit is contained in:
str4d
2013-06-12 02:12:44 +00:00
parent 6d206a117f
commit faf12aadbe
2 changed files with 9 additions and 7 deletions

View File

@@ -234,20 +234,20 @@ A 2-byte size Integer followed by a series of String=String; pairs
{% endtrans %}</p>
{% highlight lang='dataspec' %}
+----+----+----+----+----+----+----+----+
| size |key string (len + data) | = |
| size |key_string (len + data) | = |
+----+----+----+----+----+----+----+----+
| val string (len + data) | ; | ...
| val_string (len + data) | ; | ...
+----+----+----+----+----+----+----+
size :: Integer
length -> 2 bytes
Total number of bytes that follow
key string :: String
key_string :: String
A string (one byte length followed by UTF-8 encoded characters)
= :: A single byte containing '='
val string :: String
val_string :: String
A string (one byte length followed by UTF-8 encoded characters)
; :: A single byte containing ';'
@@ -329,7 +329,7 @@ signing_key :: SigningPublicKey
certificate :: Certificate
length -> >= 3 bytes
Total length: 387+ bytes
total length: 387+ bytes
{% endhighlight %}
<h4>{% trans %}Notes{% endtrans %}</h4>
@@ -378,7 +378,7 @@ signing_public_key :: SigningPublicKey
certificate :: Certificate
length -> >= 3 bytes
Total length: 387+ bytes
total length: 387+ bytes
{% endhighlight %}
<h4><a href="http://docs.i2p-projekt.de/javadoc/net/i2p/data/Destination.html">Javadoc</a></h4>