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
@@ -53,7 +53,7 @@ unmarshal_from_string :: proc(s: string, ptr: ^$T, flags := Decoder_Flags{}, all
unmarshal_from_decoder :: proc(d: Decoder, ptr: ^$T, allocator := context.allocator) -> (err: Unmarshal_Error) {
d := d
DECODE_PROGRESS_GUARD(&d)
_DECODE_PROGRESS_GUARD(&d)
err = _unmarshal_any_ptr(d, ptr, allocator=allocator)