pub(crate) fn parse(data: &[u8]) -> Result<Self, VMError> {
        SliceReader::parse(data, |r| {
            let mut program = Self::new();
            while r.len() > 0 {
                program.0.push(Instruction::parse(r)?);
            }
            Ok(program)
        })
    }
/// Creates a program from parsing the opaque data slice of encoded instructions.
Creates a program from parsing the opaque data slice of encoded instructions.
Creates a program from parsing the opaque data slice of encoded instructions .
pub(crate) fn parse(data: &[u8]) -> Result<Self, VMError> {
        SliceReader::parse(data, |r| {
            let mut program = Self::new();
            while r.len() > 0 {
                program.0.push(Instruction::parse(r)?);
            }
            Ok(program)
        })
    }
pub ( crate ) fn parse ( data : & [ u8 ] ) -> Result < Self , VMError > { SliceReader :: parse ( data , | r | { let mut program = Self :: new ( ) ; while r . len ( ) > 0 { program . 0 . push ( Instruction :: parse ( r ) ? ) ; } Ok ( program ) } ) }
Creates a program from parsing the opaque data slice of encoded instructions.
Creates a program from parsing the opaque data slice of encoded instructions .
data
&[u8]
data
&[u8]