pub fn write(
    buffer_address: &Pubkey,
    authority_address: &Pubkey,
    offset: u32,
    bytes: Vec<u8>,
) -> Instruction {
    Instruction::new_with_bincode(
        id(),
        &UpgradeableLoaderInstruction::Write { offset, bytes },
        vec![
            AccountMeta::new(*buffer_address, false),
            AccountMeta::new_readonly(*authority_address, true),
        ],
    )
}
/// Returns the instructions required to write a chunk of program data to a
/// buffer account.
Returns the instructions required to write a chunk of program data to a
buffer account.
Returns the instructions required to write a chunk of program data to a buffer account .
pub fn write(
    buffer_address: &Pubkey,
    authority_address: &Pubkey,
    offset: u32,
    bytes: Vec<u8>,
) -> Instruction {
    Instruction::new_with_bincode(
        id(),
        &UpgradeableLoaderInstruction::Write { offset, bytes },
        vec![
            AccountMeta::new(*buffer_address, false),
            AccountMeta::new_readonly(*authority_address, true),
        ],
    )
}
pub fn write ( buffer_address : & Pubkey , authority_address : & Pubkey , offset : u32 , bytes : Vec < u8 > , ) -> Instruction { Instruction :: new_with_bincode ( id ( ) , & UpgradeableLoaderInstruction :: Write { offset , bytes } , vec ! [ AccountMeta new ( buffer_address false ) AccountMeta new_readonly ( authority_address true ) ] , ) }
Returns the instructions required to write a chunk of program data to a
buffer account.
Returns the instructions required to write a chunk of program data to a buffer account .
buffer_address
&Pubkey
authority_address
&Pubkey
offset
u32
bytes
Vec<u8>