Skip to content

Make Tag::encoded_length public and prepare for releasing 0.24.0#596

Open
facutuesca wants to merge 1 commit intoalex:mainfrom
trail-of-forks:ft/public-tag-method
Open

Make Tag::encoded_length public and prepare for releasing 0.24.0#596
facutuesca wants to merge 1 commit intoalex:mainfrom
trail-of-forks:ft/public-tag-method

Conversation

@facutuesca
Copy link
Contributor

Given that making Tag::write_to public was not useful, since it also requires making WriteBuffer's methods public, this PR reverts that change and instead makes Tag::encoded_length public instead.

With this, users who want to get the tag bytes from a Tlv can use Tlv::full_data() and Tag::encoded_length() in order to do so.

* Revert `Tag::write_to` back to pub(crate)
* Make `Tag::encoded_length` public
* Add tests for `Tag::encoded_length`
* Release version 0.24.0

Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com>
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.

1 participant