~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
@@@ wip type definitions in manpage synopses
[mLib]
/
codec
/
base64.3
diff --git
a/codec/base64.3
b/codec/base64.3
index
ddab190
..
39de50d
100644
(file)
--- a/
codec/base64.3
+++ b/
codec/base64.3
@@
-17,6
+17,12
@@
base64, base32, hex \- obsolete binary encoding functions
.B "#include <mLib/base32.h>"
.B "#include <mLib/hex.h>"
.B "#include <mLib/base32.h>"
.B "#include <mLib/hex.h>"
+.B "typedef struct {"
+.B "\h'4n'char *indent;"
+.B "\h'4n'unsigned maxline;"
+.B "\h'4n'..."
+.B "} base64_ctx;"
+
.BI "void base64_encode(base64_ctx *" ctx ,
.BI " const void *" p ", size_t " sz ,
.BI " dstr *" d );
.BI "void base64_encode(base64_ctx *" ctx ,
.BI " const void *" p ", size_t " sz ,
.BI " dstr *" d );
@@
-25,6
+31,12
@@
base64, base32, hex \- obsolete binary encoding functions
.BI " dstr *" d );
.BI "void base64_init(base64_ctx *" ctx );
.BI " dstr *" d );
.BI "void base64_init(base64_ctx *" ctx );
+.B "typedef struct {"
+.B "\h'4n'char *indent;"
+.B "\h'4n'unsigned maxline;"
+.B "\h'4n'..."
+.B "} base32_ctx;"
+
.BI "void base32_encode(base32_ctx *" ctx ,
.BI " const void *" p ", size_t " sz ,
.BI " dstr *" d );
.BI "void base32_encode(base32_ctx *" ctx ,
.BI " const void *" p ", size_t " sz ,
.BI " dstr *" d );
@@
-33,6
+45,12
@@
base64, base32, hex \- obsolete binary encoding functions
.BI " dstr *" d );
.BI "void base32_init(base32_ctx *" ctx );
.BI " dstr *" d );
.BI "void base32_init(base32_ctx *" ctx );
+.B "typedef struct {"
+.B "\h'4n'char *indent;"
+.B "\h'4n'unsigned maxline;"
+.B "\h'4n'..."
+.B "} hex_ctx;"
+
.BI "void hex_encode(hex_ctx *" ctx ,
.BI " const void *" p ", size_t " sz ,
.BI " dstr *" d );
.BI "void hex_encode(hex_ctx *" ctx ,
.BI " const void *" p ", size_t " sz ,
.BI " dstr *" d );
@@
-44,7
+62,7
@@
base64, base32, hex \- obsolete binary encoding functions
.SH DESCRIPTION
The
.BR base64 ,
.SH DESCRIPTION
The
.BR base64 ,
-.B
base32
+.B
R base32 ,
and
.B hex
functions perform encoding and decoding of arbitrary binary strings, as
and
.B hex
functions perform encoding and decoding of arbitrary binary strings, as