Skip to content

Commit

Permalink
Fix asm build
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog committed Dec 27, 2024
1 parent c2a5ee9 commit ae5f004
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions asm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,17 @@ pub mod musli {

const ENCODING: Encoding<OPTIONS, Packed> = Encoding::new().with_options().with_mode();

pub fn encode_model<'buf>(
buffer: &'buf mut Vec<u8>,
value: &Model,
) -> Result<&'buf [u8], Error> {
encode::<Model>(buffer, value)
}

pub fn decode_model<'buf>(buf: &'buf [u8]) -> Result<Model, Error> {
decode::<Model>(buf)
}

#[inline(always)]
pub fn encode<'buf, T>(buf: &'buf mut [u8], value: &T) -> Result<&'buf [u8], Error>
where
Expand Down

0 comments on commit ae5f004

Please sign in to comment.