-
Notifications
You must be signed in to change notification settings - Fork 24
feat: add function to decode an entire slice #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
38f26bb
75501ce
22fc808
b86364e
25d2650
d1987bf
3f77b98
95587be
5ddd442
9a21052
051ebf7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,8 @@ pub enum Error { | |
| LeadingZero, | ||
| /// Overran input while decoding. | ||
| InputTooShort, | ||
| /// Additional trailing bytes found after decoding. | ||
| TrailingBytes, | ||
|
||
| /// Expected single byte, but got invalid value. | ||
| NonCanonicalSingleByte, | ||
| /// Expected size, but got invalid value. | ||
|
|
@@ -42,6 +44,7 @@ impl fmt::Display for Error { | |
| Self::Overflow => f.write_str("overflow"), | ||
| Self::LeadingZero => f.write_str("leading zero"), | ||
| Self::InputTooShort => f.write_str("input too short"), | ||
| Self::TrailingBytes => f.write_str("trailing bytes"), | ||
| Self::NonCanonicalSingleByte => f.write_str("non-canonical single byte"), | ||
| Self::NonCanonicalSize => f.write_str("non-canonical size"), | ||
| Self::UnexpectedLength => f.write_str("unexpected length"), | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.