-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional tooling access methods, trait impls, and a bug fix (#780)
* Additional tooling access methods, trait impls, and a bug fix * Renames the `RawReaderType` enum to `IonEncoding` because it is generally useful in other contexts too. * Adds the ability for system and raw readers using `AnyEncoding` to report the encoding they're currently using. * Adds `value_span` and `annotations_span` methods to `LazyValue` in addition to `span`, which includes both the annotations and the value. * The binary 1.0 and 1.1 writers will now write `f64`s as `f32`s to save space when it can be done losslessly. * Adds `WriteAsIon` implementations for `LazyList`, `LazySExp`, and `LazyStruct`. * Adds `IntoIterator` impls for `LazyList`, `LazySExp` and `LazyStruct`. Previously, they only existed for borrowed (`&`) references to those types. * Fixes a bug in the `StreamingRawReader` that could cause a value's annotations span to be overwritten if reading that value consumed all of the data remaining in the buffer. * Renames the feature-gated `LazyValue::lower` method (which returns a `LazyExpandedValue`) to `LazyValue::expanded()` so I could add a `raw()` method alongside it that returns the underlying `LazyRawValue` when applicable. * Adds SmallestFloatRepr trait for f64, f32 * `unsafe` explanations --------- Co-authored-by: Zack Slayton <[email protected]>
- Loading branch information
Showing
18 changed files
with
417 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.