pub fn write_from_slice_with_null(
        &self,
        ctx: &VmContext,
        len: Size,
        src: &[u8],
    ) -> WasmResult<()> {
        let slice = self.slice(ctx, len)?;
        for (dst, src) in slice.iter().zip(src.iter().chain(iter::once(&0))) {
            dst.set(*src);
        }
        Ok(())
    }
/// Write from source slice and add a null byte.
Write from source slice and add a null byte.
Write from source slice and add a null byte .
pub fn write_from_slice_with_null(
        &self,
        ctx: &VmContext,
        len: Size,
        src: &[u8],
    ) -> WasmResult<()> {
        let slice = self.slice(ctx, len)?;
        for (dst, src) in slice.iter().zip(src.iter().chain(iter::once(&0))) {
            dst.set(*src);
        }
        Ok(())
    }
pub fn write_from_slice_with_null ( & self , ctx : & VmContext , len : Size , src : & [ u8 ] , ) -> WasmResult < ( ) > { let slice = self . slice ( ctx , len ) ? ; for ( dst , src ) in slice . iter ( ) . zip ( src . iter ( ) . chain ( iter :: once ( & 0 ) ) ) { dst . set ( * src ) ; } Ok ( ( ) ) }
Write from source slice and add a null byte.
Write from source slice and add a null byte .
&self
ctx
&VmContext
len
Size
src
&[u8]
&self
ctx
&VmContext
len
Size
src
&[u8]