fn op_pushdata_next_bytes(ctx: &mut Context,  count: u64) -> Result<(), ScriptError> {
    if count > MAX_SCRIPT_ELEMENT_SIZE {
        return Err(ScriptError::PushdataTooLarge);
    }

    // grab next bytes and box them
    // this means copying as we need ownership on the stack
    let bytes = try!(ctx.next_bytes(count))
        .to_vec()
        .into_boxed_slice();
    
    // and push them on the stack
    ctx.stack.push(bytes)
}
/// Helper to push the next `count` bytes to the stack
///
/// Can return an error if `count` is too large
Helper to push the next `count` bytes to the stack
Can return an error if `count` is too large
Helper to push the next ` count ` bytes to the stack Can return an error if ` count ` is too large
fn op_pushdata_next_bytes(ctx: &mut Context,  count: u64) -> Result<(), ScriptError> {
    if count > MAX_SCRIPT_ELEMENT_SIZE {
        return Err(ScriptError::PushdataTooLarge);
    }
    // grab next bytes and box them
    // this means copying as we need ownership on the stack
    let bytes = try!(ctx.next_bytes(count))
        .to_vec()
        .into_boxed_slice();
    // and push them on the stack
    ctx.stack.push(bytes)
}
fn op_pushdata_next_bytes ( ctx : & mut Context , count : u64 ) -> Result < ( ) , ScriptError > { if count > MAX_SCRIPT_ELEMENT_SIZE { return Err ( ScriptError :: PushdataTooLarge ) ; } // grab next bytes and box them // this means copying as we need ownership on the stack let bytes = try ! ( ctx next_bytes ( count ) ) . to_vec ( ) . into_boxed_slice ( ) ; // and push them on the stack ctx . stack . push ( bytes ) }
Helper to push the next `count` bytes to the stack
Can return an error if `count` is too large
Helper to push the next ` count ` bytes to the stack Can return an error if ` count ` is too large
ctx
&mut Context
count
u64
ctx
&mut Context
count
u64