Laytan
9893a0eaea
encoding/cbor: fix epoch tag with small values
2025-11-03 20:33:17 +01:00
Jeroen van Rijn
236111864e
Link doc lines to source specifications.
2025-10-10 18:29:52 +02:00
Jeroen van Rijn
ece213afca
Render examples.
2025-10-10 12:24:28 +02:00
Jeroen van Rijn
7a9ea3ee6d
Further overhaul of package line comments.
2025-10-09 23:05:29 +02:00
Jeroen van Rijn
288b45f50c
package lines for encoding
2025-10-09 16:34:18 +02:00
Jeroen van Rijn
248b0fe9e1
More package lines
2025-10-09 16:11:33 +02:00
gingerBill
7642e0a0e0
Require @(init) and @(fini) to be proc "contextless" ()
2025-08-08 12:10:01 +01:00
gingerBill
af3184adc9
Change is_utf16 field to encoding and use an enum
2025-08-05 15:12:54 +01:00
gingerBill
ae02d3d02d
Begin supporting string16 across the core library
2025-08-02 11:55:16 +01:00
Feoramund
b7de15caa3
Clarify strconv.append_* to strconv.write_*
2025-06-05 16:56:00 -04:00
Laytan Laats
9eefa2006e
encoding/cbor: support simd vectors
2025-06-04 22:00:02 +02:00
Laytan Laats
85224b21e6
encoding/cbor: support the matrix type
2025-06-04 21:51:12 +02:00
Barinzaya
3f5e09a0df
Fixed an overflow when decoding a large CBOR slice.
...
The initial allocation for the slice is limited to prevent untrusted
data from forcing a huge allocation, but then the dynamic array was
created with a capacity of the unlimited length, rather than the actual
capacity of the allocation. This was causing a buffer overrun.
2025-04-29 08:19:43 -04:00
Jeroen van Rijn
4f00224dd2
Add cbor.unmarshal_from_bytes taking a []byte
2025-04-29 01:10:15 +02:00
Alexis Caraballo
31d5bc48a7
fix cbor.to_json always returning array of tuples for objects
...
to_json uses a small proc to check if all keys of an object are strings.
It was always returning false for any input.
2024-10-29 01:50:38 -03:00
Laytan Laats
4608d26e6e
encoding/cbor: fix skipping of ignored/missing fields in struct unmarshal
2024-10-26 22:39:46 +02:00
Laytan Laats
793ef6012b
encoding/cbor: handle binary having more fields than the struct by discarding
2024-10-25 20:37:55 +02:00
Tom Solberg
90a0c834bb
cbor: fix capacity and ptr calculation for dynarray unmarshal
2024-10-20 21:27:16 +02:00
Laytan Laats
788e4b2b6a
core/encoding/cbor: allow unmarshalling non-string map keys
2024-09-11 15:57:56 +02:00
Laytan Laats
912f99abc8
encoding/cbor: various fixes
...
- "null" is the proper way to represent the nil value in the diagnostic
format
- hex encoding in diagnostic format was wrong
- struct keys weren't sorted the right deterministic way
2024-08-09 21:56:54 +02:00
Laytan Laats
28fac62a02
fix some bugs with -disable-assert
2024-07-16 18:44:18 +02:00
gingerBill
399c3ab067
Reduce the size of runtime.Type_Info
2024-07-14 21:37:35 +01:00
Laytan Laats
6ab559437a
encoding/cbor: add a custom tag to the example
2024-07-08 01:01:11 +02:00
Laytan Laats
db3b4ceb4a
encoding/cbor: improve perf of marshalling array-like types
2024-07-08 00:37:40 +02:00
Laytan Laats
39e9b65c59
encoding/cbor: fix umarshal of big fixed arrays
2024-07-08 00:35:19 +02:00
Laytan Laats
604551eb2d
wasi: make the demo run on wasi and run it in CI
2024-06-29 23:15:31 +02:00
gingerBill
e296d6fb90
Fix loads of indentation issues with mixing spaces and tabs
2024-06-29 19:50:51 +01:00
gingerBill
5413a8b744
Even more style fixes
2024-06-29 19:11:36 +01:00
Jeroen van Rijn
a27b167218
Update tests\core\encoding\cbor to use new test runner.
...
It was leaky and required a substantial number of `loc := #caller_location` additions to parts of the core library to make it easier to track down how and where it leaked.
The tests now run fine multi-threaded.
2024-06-02 14:47:07 -04:00
gingerBill
334e08c750
Update numerous package declaration names
2024-04-18 12:17:39 +01:00
gingerBill
38c1fd5824
Keep -vet happy
2024-04-15 14:35:51 +01:00
Laytan Laats
04bd3cc525
encoding/cbor: rename diagnose to to_diagnostic_format to be clearer
2024-03-04 17:26:19 +01:00
Laytan
2a39c60fe4
encoding/cbor: respect default to panic allocator
2024-03-04 17:26:19 +01:00
Laytan
b11d839fb6
encoding/cbor: make temp allocations more explicit
2024-03-04 17:26:19 +01:00
Laytan
0076c07076
encoding/cbor: core -> base
2024-03-04 17:26:19 +01:00
Laytan
a664d9804f
encoding/cbor: remove usage of incl_elem and excl_elem
2024-03-04 17:26:19 +01:00
Laytan Laats
c4e45d509a
encoding/cbor: adhere to new quaternion rules of master
2024-03-04 17:26:19 +01:00
Laytan Laats
c1cf6c1a95
encoding/cbor: add general docs and example
2024-03-04 17:26:19 +01:00
Laytan Laats
317931a3c5
encoding/cbor: deterministically store bit sets as big endian
2024-03-04 17:26:19 +01:00
Laytan Laats
759d095548
encoding/cbor: ignore struct fields with cbor:"-"
2024-03-04 17:26:19 +01:00
Laytan Laats
72d5b87b52
encoding/cbor: clean
2024-03-04 17:26:19 +01:00
Laytan Laats
154e0d41c6
encoding/cbor: fix wrong allocator bug
2024-03-04 17:26:19 +01:00
Laytan Laats
3fccc77829
encoding/cbor: clean and fixup some allocations
2024-03-04 17:26:19 +01:00
Laytan Laats
85f1a60cf3
encoding/cbor: cleanup comments about tags
2024-03-04 17:26:19 +01:00
Laytan Laats
cb8bb8bfd8
encoding/cbor: cleanup default temp allocator
2024-03-04 17:26:19 +01:00
Laytan Laats
46b58ad48d
encoding/cbor: don't zero bytes we are going to write/read to/from anyway
2024-03-04 17:26:19 +01:00
Laytan Laats
7283b5e75c
encoding/cbor: minor things
2024-03-04 17:26:19 +01:00
Laytan Laats
21e6e28a3a
encoding/cbor: add decoder flags and protect from malicious untrusted input
2024-03-04 17:26:19 +01:00
Laytan Laats
d77ae9abab
encoding/cbor: fully support marshal/unmarshal of unions
2024-03-04 17:26:19 +01:00
Laytan Laats
363769d4d3
encoding/cbor: cleanup base64 tag
2024-03-04 17:26:19 +01:00