pub fn next_bytes(&mut self, count: u64) -> Result<&[u8], ScriptError> { 
        if self.script1.len() < self.ip + count  as usize + 1 {
            return Err(ScriptError::UnexpectedEndOfScript);
        }

        let old_ip = self.ip;
        self.ip += count as usize;
        Ok(&self.script1[old_ip + 1 .. self.ip + 1])
        
    }
/// Returns the bytes of the script pointed to by the current
/// ip (instruction pointer), and increases the ip to the last
/// byte returned
///
/// Can return a UnexpectedEndOfScript if not enough bytes are available  
Returns the bytes of the script pointed to by the current
ip (instruction pointer), and increases the ip to the last
byte returned

Can return a UnexpectedEndOfScript if not enough bytes are available
Returns the bytes of the script pointed to by the current ip ( instruction pointer ) and increases the ip to the last byte returned Can return a UnexpectedEndOfScript if not enough bytes are available
pub fn next_bytes(&mut self, count: u64) -> Result<&[u8], ScriptError> { 
        if self.script1.len() < self.ip + count  as usize + 1 {
            return Err(ScriptError::UnexpectedEndOfScript);
        }
        let old_ip = self.ip;
        self.ip += count as usize;
        Ok(&self.script1[old_ip + 1 .. self.ip + 1])
    }
pub fn next_bytes ( & mut self , count : u64 ) -> Result < & [ u8 ] , ScriptError > { if self . script1 . len ( ) < self . ip + count as usize + 1 { return Err ( ScriptError :: UnexpectedEndOfScript ) ; } let old_ip = self . ip ; self . ip += count as usize ; Ok ( & self . script1 [ old_ip + 1 .. self . ip + 1 ] ) }
Returns the bytes of the script pointed to by the current
ip (instruction pointer), and increases the ip to the last
byte returned
Returns the bytes of the script pointed to by the current ip ( instruction pointer ) and increases the ip to the last byte returned
&mut self
count
u64
&mut self
count
u64