Skip to content

feat(types): add experimental is_inline to Int, UInt, Coefficient, Decimal - #1068

Merged
popematt merged 1 commit into
amazon-ion:mainfrom
popematt:main
Oct 8, 2026
Merged

popematt merged 1 commit into
amazon-ion:mainfrom
popematt:main

Conversation

@popematt

@popematt popematt commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Issue #, if available:

None

Description of changes:

Reports whether the value's magnitude is stored without a heap allocation. Gated on the experimental feature. Tested at the 2^126 inline/heap boundary for each type.

This is so that users can check whether the value can e.g. can be moved to an arena without worrying about it leaking memory.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…ent`, `Decimal`

Reports whether the value's magnitude is stored without a heap
allocation. Gated on the `experimental` feature. Tested at the
2^126 inline/heap boundary for each type.
@popematt
popematt merged commit 21a4300 into amazon-ion:main Oct 8, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants