aboutsummaryrefslogtreecommitdiff
path: root/core/encoding
Commit message (Collapse)AuthorAgeFilesLines
* Fix `omitempty` in `json.marshal`Feoramund2024-04-272-2/+2
|
* Return partial readsgingerBill2024-04-191-4/+15
|
* Only override the comma value on `*_init` if it is "invalid"gingerBill2024-04-192-2/+8
|
* Update numerous package declaration namesgingerBill2024-04-1825-25/+25
|
* Keep -vet happygingerBill2024-04-154-18/+17
|
* Merge pull request #3045 from laytan/cborgingerBill2024-04-157-47/+3713
|\ | | | | encoding/cbor
| * encoding/cbor: rename `diagnose` to `to_diagnostic_format` to be clearerLaytan Laats2024-03-042-14/+14
| |
| * encoding/cbor: respect default to panic allocatorLaytan2024-03-041-1/+1
| |
| * encoding/cbor: make temp allocations more explicitLaytan2024-03-044-114/+62
| |
| * encoding/cbor: core -> baseLaytan2024-03-045-8/+13
| |
| * encoding/cbor: remove usage of incl_elem and excl_elemLaytan2024-03-041-4/+4
| |
| * encoding/cbor: adhere to new quaternion rules of masterLaytan Laats2024-03-041-3/+3
| |
| * encoding/cbor: add general docs and exampleLaytan Laats2024-03-045-11/+149
| |
| * encoding/cbor: deterministically store bit sets as big endianLaytan Laats2024-03-043-26/+8
| |
| * encoding/cbor: ignore struct fields with `cbor:"-"`Laytan Laats2024-03-042-10/+31
| |
| * encoding/cbor: cleanLaytan Laats2024-03-041-3/+2
| |
| * encoding/cbor: fix wrong allocator bugLaytan Laats2024-03-041-3/+2
| |
| * encoding/cbor: clean and fixup some allocationsLaytan Laats2024-03-043-32/+25
| |
| * encoding/cbor: cleanup comments about tagsLaytan Laats2024-03-041-12/+13
| |
| * encoding/cbor: cleanup default temp allocatorLaytan Laats2024-03-044-35/+77
| |
| * encoding/cbor: don't zero bytes we are going to write/read to/from anywayLaytan Laats2024-03-041-16/+16
| |
| * encoding/cbor: minor thingsLaytan Laats2024-03-043-4/+6
| |
| * encoding/cbor: add decoder flags and protect from malicious untrusted inputLaytan Laats2024-03-044-226/+335
| |
| * encoding/cbor: fully support marshal/unmarshal of unionsLaytan Laats2024-03-043-6/+105
| |
| * encoding/cbor: cleanup base64 tagLaytan Laats2024-03-041-50/+62
| |
| * encoding/base64: add decode_into, add testsLaytan Laats2024-03-041-43/+90
| |
| * encoding/cbor: initial package implementationLaytan Laats2024-03-046-47/+3316
| |
* | Add `json:"name,omitempty"`gingerBill2024-04-102-10/+60
| |
* | Allow for comma-separate json names `json:"name,flag"`gingerBill2024-04-102-1/+11
| |
* | correct newly found vetsLaytan Laats2024-04-033-14/+13
| |
* | Json: improved unmarshalling of `using _: T` fields.Franz Höltermann2024-03-271-9/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `using _: T` fields will now have their members unmarshalled to their parent types reflecting the new behaviour of json.marshall. Example: ```go A :: struct { using _: B, } B :: struct { field: string, } data := `{"field": "Hello World"}` a: A json.unmarshal_string(data, &a) ```
* | Json: fields on structs like 'using _: T' will now have T's fieldsFranz Höltermann2024-03-261-14/+27
| | | | | | | | | | | | marshalled directly into the parent type without an '"_":{ ... }'. This seems like desirable behavior to me, since you can't access the fields with 'Parent_Type._.field' either.
* | Merge pull request #3215 from blob1807/json-better-enum-supportgingerBill2024-03-061-1/+15
|\ \ | | | | | | core:encoding/json Add support for writing enum value names
| * | Apply suggestions from code review blob18072024-03-041-2/+2
| | | | | | | | | | | | | | | Fixing spelling mistakes pointed out & fixed by layton. Co-authored-by: Laytan <laytanlaats@hotmail.com>
| * | convert spaces to tabsblob18072024-03-041-1/+1
| | |
| * | Return underlining value instead of panicingblob18072024-03-041-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | when no name it found. Renamed use_enum_value_names to use_enum_names it get the same point across & inline with the reflect procs
| * | changed to use reflect.enum_name_from_value_anyblob18072024-03-011-34/+2
| | |
| * | Merge branch 'odin-lang:master' into json-better-enum-supportblob18072024-03-011-0/+3
| |\|
| * | add all inter types to switchblob18072024-02-211-3/+27
| | |
| * | replace spaces with tabsblob18072024-02-211-19/+19
| | |
| * | add missing commablob18072024-02-211-1/+1
| | |
| * | Add better support for Enums in jsonblob18072024-02-211-1/+21
| | | | | | | | | | | | Can now output enum value's name instead of its underlineing value
| * | Revert json union fixblob18072024-02-211-9/+0
| | |
| * | Merge branch 'master' of https://github.com/blob1807/Odinblob18072024-02-211-1/+0
| |\ \
| * | | Fix bug https://github.com/odin-lang/Odin/issues/3173blob18072024-02-211-0/+9
| | | |
* | | | Fix #3173gingerBill2024-03-061-0/+5
| | | |
* | | | Zero `intrinsics.alloca`gingerBill2024-03-061-2/+5
| | | |
* | | | Use `intrinsics.alloca` rather than `context.temp_allocator` in ↵gingerBill2024-03-061-5/+8
| | | | | | | | | | | | | | | | `json.unmarshal_object`
* | | | Fix #3250gingerBill2024-03-063-7/+15
| |_|/ |/| |
* | | Begin work adding `bit_field`gingerBill2024-02-221-0/+3
| |/ |/|