mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
function section
This commit is contained in:
parent
eb9705e2e9
commit
e05ef73f6c
2 changed files with 9 additions and 1 deletions
|
@ -114,6 +114,12 @@ impl Serialize for str {
|
|||
}
|
||||
}
|
||||
|
||||
impl Serialize for u32 {
|
||||
fn serialize<T: SerialBuffer>(&self, buffer: &mut T) {
|
||||
buffer.encode_u32(*self);
|
||||
}
|
||||
}
|
||||
|
||||
fn overwrite_padded_u32_help(buffer: &mut [u8], value: u32) {
|
||||
let mut x = value;
|
||||
for byte in buffer.iter_mut().take(4) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue