Fossil SCM

Fix the description of base-64 encoding in the delta_format.wiki document.

drh 2020-12-26 21:33 trunk
Commit 5de02e093e15c7db9bbc59a559dd76f68357eb043f523ad194ce2d03fce0c2f8
1 file changed +14 -2
--- www/delta_format.wiki
+++ www/delta_format.wiki
@@ -191,12 +191,24 @@
191191
written base-64 encoded, MSB first, and without leading
192192
"0"-characters, except if they are significant (i.e. 0 => "0").
193193
</p>
194194
195195
<p>
196
-The base-64 coding is described in
197
-<a href="http://www.ietf.org/rfc/rfc3548.txt">RFC 3548</a>.
196
+The base-64 encoding uses one character for each 6 bytes of
197
+the integer to be encoded. The encoding characters are:
198
+</p>
199
+
200
+<blockquote><pre>
201
+0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~
202
+</pre></blockquote>
203
+
204
+<p>The least signficant 6 bits of the integer are encoded by
205
+the first character, followed by
206
+the next 6 bits, and so on until all non-zero bits of the integer
207
+are encoded. The minimum number of encoding characters is used.
208
+Note that for integers less than 10, the base-64 coding is a
209
+ASCII decimal rendering of the number itself.
198210
</p>
199211
200212
<a name="examples"></a><h1>4.0 Examples</h1>
201213
202214
<a name="examplesint"></a><h2>4.1 Integer encoding</h2>
203215
--- www/delta_format.wiki
+++ www/delta_format.wiki
@@ -191,12 +191,24 @@
191 written base-64 encoded, MSB first, and without leading
192 "0"-characters, except if they are significant (i.e. 0 => "0").
193 </p>
194
195 <p>
196 The base-64 coding is described in
197 <a href="http://www.ietf.org/rfc/rfc3548.txt">RFC 3548</a>.
 
 
 
 
 
 
 
 
 
 
 
 
198 </p>
199
200 <a name="examples"></a><h1>4.0 Examples</h1>
201
202 <a name="examplesint"></a><h2>4.1 Integer encoding</h2>
203
--- www/delta_format.wiki
+++ www/delta_format.wiki
@@ -191,12 +191,24 @@
191 written base-64 encoded, MSB first, and without leading
192 "0"-characters, except if they are significant (i.e. 0 => "0").
193 </p>
194
195 <p>
196 The base-64 encoding uses one character for each 6 bytes of
197 the integer to be encoded. The encoding characters are:
198 </p>
199
200 <blockquote><pre>
201 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~
202 </pre></blockquote>
203
204 <p>The least signficant 6 bits of the integer are encoded by
205 the first character, followed by
206 the next 6 bits, and so on until all non-zero bits of the integer
207 are encoded. The minimum number of encoding characters is used.
208 Note that for integers less than 10, the base-64 coding is a
209 ASCII decimal rendering of the number itself.
210 </p>
211
212 <a name="examples"></a><h1>4.0 Examples</h1>
213
214 <a name="examplesint"></a><h2>4.1 Integer encoding</h2>
215

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button