encoding/cbor: add general docs and example

This commit is contained in:
Laytan Laats
2024-03-04 17:26:19 +01:00
parent 317931a3c5
commit c1cf6c1a95
5 changed files with 149 additions and 11 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ marshal_into_writer :: proc(w: io.Writer, v: any, flags := ENCODE_SMALL) -> Mars
marshal_into_encoder :: proc(e: Encoder, v: any) -> (err: Marshal_Error) {
e := e
err_conv(ENCODE_PROGRESS_GUARD(&e)) or_return
err_conv(_ENCODE_PROGRESS_GUARD(&e)) or_return
if v == nil {
return _encode_nil(e.writer)