Make opaque::Encoder append-only and make it infallible
This commit is contained in:
parent
971f7d34d4
commit
14d3c6e8f4
12 changed files with 80 additions and 118 deletions
|
|
@ -230,8 +230,7 @@ impl WasmEncoder {
|
|||
}
|
||||
|
||||
fn u32(&mut self, val: u32) {
|
||||
let at = self.data.len();
|
||||
leb128::write_u32_leb128(&mut self.data, at, val);
|
||||
leb128::write_u32_leb128(&mut self.data, val);
|
||||
}
|
||||
|
||||
fn byte(&mut self, val: u8) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue