Fossil SCM
Fix the description of base-64 encoding in the delta_format.wiki document.
Commit
5de02e093e15c7db9bbc59a559dd76f68357eb043f523ad194ce2d03fce0c2f8
Parent
92d74f8fb6621e6…
1 file changed
+14
-2
+14
-2
| --- www/delta_format.wiki | ||
| +++ www/delta_format.wiki | ||
| @@ -191,12 +191,24 @@ | ||
| 191 | 191 | written base-64 encoded, MSB first, and without leading |
| 192 | 192 | "0"-characters, except if they are significant (i.e. 0 => "0"). |
| 193 | 193 | </p> |
| 194 | 194 | |
| 195 | 195 | <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. | |
| 198 | 210 | </p> |
| 199 | 211 | |
| 200 | 212 | <a name="examples"></a><h1>4.0 Examples</h1> |
| 201 | 213 | |
| 202 | 214 | <a name="examplesint"></a><h2>4.1 Integer encoding</h2> |
| 203 | 215 |
| --- 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 |