encoding/cbor: clean

This commit is contained in:
Laytan Laats
2024-03-04 17:26:19 +01:00
parent 154e0d41c6
commit 72d5b87b52
2 changed files with 9 additions and 19 deletions
+2 -3
View File
@@ -316,9 +316,8 @@ _encode_progress_end :: proc(e: ^Encoder, is_begin: bool, tmp: runtime.Arena_Tem
}
_decode_header :: proc(r: io.Reader) -> (hdr: Header, err: io.Error) {
buf: [1]byte = ---
io.read_full(r, buf[:]) or_return
return Header(buf[0]), nil
hdr = Header(_decode_u8(r) or_return)
return
}
_header_split :: proc(hdr: Header) -> (Major, Add) {