Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 1 addition & 5 deletions doodle-formats/src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,7 @@ mod test {
("len", base.u32be()),
(
"mask",
Format::WithRelativeOffset(
None,
Box::new(var("len")),
Box::new(Format::Byte(mask_bytes)),
),
with_relative_offset(None, var("len"), Format::Byte(mask_bytes)),
),
(
"data",
Expand Down
4 changes: 2 additions & 2 deletions doodle-formats/src/format/deflate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn bits_value_u8(name: &'static str, n: usize) -> Expr {
nodes.push(shl_u8(tuple_proj(var(name), i), cast(i)));
}
// construct a balanced binary tree of bitor operations
balanced_bitor_max16(nodes)
balanced_bitor(nodes)
}

/// Maps an `Expr::Tuple` consisting of 5 bit-values into the `u8`-typed Expr
Expand Down Expand Up @@ -75,7 +75,7 @@ fn bits_value_u16(name: &'static str, n: usize) -> Expr {
}

// construct a balanced binary tree of bitor operations
balanced_bitor_max16(nodes)
balanced_bitor(nodes)
}

/// Parse a 5-bit Fixed Huffman distance-code and map it into its corresponding distance-symbol
Expand Down
420 changes: 194 additions & 226 deletions doodle-formats/src/format/opentype.rs

Large diffs are not rendered by default.

Loading