pub fn buffer_len(program_len: usize) -> Result<usize, InstructionError> {
        Ok(serialized_size(&Self::Buffer {
            authority_address: Some(Pubkey::default()),
        })
        .map(|len| len as usize)
        .map_err(|_| InstructionError::InvalidInstructionData)?
        .saturating_add(program_len))
    }
/// Length of an buffer account's data.
Length of an buffer account's data.
Length of an buffer account ' s data .
pub fn buffer_len(program_len: usize) -> Result<usize, InstructionError> {
        Ok(serialized_size(&Self::Buffer {
            authority_address: Some(Pubkey::default()),
        })
        .map(|len| len as usize)
        .map_err(|_| InstructionError::InvalidInstructionData)?
        .saturating_add(program_len))
    }
pub fn buffer_len ( program_len : usize ) -> Result < usize , InstructionError > { Ok ( serialized_size ( & Self :: Buffer { authority_address : Some ( Pubkey :: default ( ) ) , } ) . map ( | len | len as usize ) . map_err ( | _ | InstructionError :: InvalidInstructionData ) ? . saturating_add ( program_len ) ) }
Length of an buffer account's data.
Length of an buffer account ' s data .
program_len
usize