mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
base: add optional_u63 type
This commit is contained in:
1 parent
e517ca4bee
commit
82ea1985b4
32 files changed
+470
-295
No files matched your search
@@ -111,14 +111,16 @@ DecodeCbor(DecodeCborCallbacks& callbacks,
|
||||
"wuffs_aux::DecodeCbor: internal error: io_buf is closed";
|
||||
goto done;
|
||||
}
|
||||
io_buf->compact_retaining(dec->history_retain_length());
|
||||
io_buf->compact_retaining(
|
||||
dec->history_retain_length().value_or(UINT64_MAX));
|
||||
if (io_buf->meta.wi >= io_buf->data.len) {
|
||||
ret_error_message =
|
||||
"wuffs_aux::DecodeCbor: internal error: io_buf is full";
|
||||
goto done;
|
||||
}
|
||||
cursor_index = io_buf->meta.ri;
|
||||
io_error_message = input.CopyIn(io_buf, dec->history_retain_length());
|
||||
io_error_message = input.CopyIn(
|
||||
io_buf, dec->history_retain_length().value_or(UINT64_MAX));
|
||||
} else {
|
||||
ret_error_message = tok_status.message();
|
||||
goto done;
|
||||
|
||||
Reference in new issue
Block a user