diff --git a/docs/api/cbor.html b/docs/api/cbor.html index 35e6f39b2..f4debde10 100644 --- a/docs/api/cbor.html +++ b/docs/api/cbor.html @@ -23,8 +23,12 @@
CBOR_FLOAT = 7
+ struct CborDecodeOptions
+ What parse_with accepts. default_decode_options() is what parse uses: safe for input from an untrusted peer. The element and pair defaults are fxamacker/cbor's.
+default_decode_options() -> CborDecodeOptions
+ parse(cbor_data) -> ptr!
cbor_data: string
-Parse one CBOR data item that is the whole of `cbor_data`. Returns (value_ptr, "") on success, (null, error) on failure. Caller owns the returned value and must free with cbor.free. Bytes left after the item are an error (#2470): `0102` used to parse as 1.
+parse_with under default_decode_options(): duplicate map keys refused, 131072 elements or pairs per container, nesting to 256.
+parse_with(cbor_data, opts) -> ptr!
+ cbor_data: string, opts: CborDecodeOptions
+Parse one CBOR data item that is the whole of `cbor_data`, under `opts`. Returns (value_ptr, "") on success, (null, error) on failure. Caller owns the returned value and must free with cbor.free. Bytes left after the item are an error (#2470): `0102` used to parse as 1.
value: ptr
Serialize a CBOR value tree to a binary string. Returns (encoded_bytes, "") on success, ("", error) on failure.
encode_deterministic(value) -> string!
+ value: ptr
+Deterministic CBOR encoding (RFC 8949 §4.2 Core Deterministic Encoding).
+type(value) -> int
diff --git a/docs/api/index.html b/docs/api/index.html
index 464189b98..806197b1b 100644
--- a/docs/api/index.html
+++ b/docs/api/index.html
@@ -176,7 +176,7 @@ MIT License (https://opensource.org/licenses/MIT) Portions copyright (c) 2019-present Faye Amacker (https://github.com/fxamacker/cbor) Portions copyright (c) 2026 Aether Developers.
- 46 exports + 50 exports