Skip to content
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

Encoding relations API #51

Merged
merged 19 commits into from
Oct 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into encoding-relations
  • Loading branch information
sgwilym authored Sep 11, 2024
commit 146f321ad4e163f31e8c2fb2ccd68fa41b83767c
4 changes: 2 additions & 2 deletions encoding/src/compact_width.rs
Original file line number Diff line number Diff line change
@@ -148,7 +148,7 @@ pub mod encoding {
Ok(())
}

/// Decode the bytes representing a [`CompactWidth`]-bytes integer into a `usize` as encoding relation.
/// Decodes the bytes representing a [`CompactWidth`]-bytes integer into a `usize` as encoding relation.
pub async fn decode_relation_compact_width_be<Producer: BulkProducer<Item = u8>>(
compact_width: CompactWidth,
producer: &mut Producer,
@@ -163,7 +163,7 @@ pub mod encoding {
Ok(decoded)
}

/// Decode the bytes representing a [`CompactWidth`]-bytes integer into a `usize`.
/// Decodes the bytes representing a [`CompactWidth`]-bytes integer into a `usize`.
/// Will fail if the decoded value could have been encoded with a smaller [`CompactWidth`].
pub async fn decode_compact_width_be<Producer: BulkProducer<Item = u8>>(
compact_width: CompactWidth,
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.