Skip to content

Commit 1853d8e

Browse files
authored
fixes #340 -- allow types to provide their length to reduce allocations (#547)
1 parent 3531c69 commit 1853d8e

File tree

5 files changed

+350
-83
lines changed

5 files changed

+350
-83
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ $ cargo add asn1 --no-default-features
2525

2626
### Unreleased
2727

28+
#### Added
29+
30+
- Added `Asn1Writable::encoded_length`, `SimpleAsn1Writable::data_length`, and
31+
`Asn1DefinedByWritable::encoded_length`. Implementing these functions reduces
32+
the number of re-allocations required when writing.
33+
2834
#### Changes
2935

3036
- Updated MSRV to 1.74.0.

0 commit comments

Comments
 (0)