fn as_be_bytes(&self) -> Vec<u8> {
        let mut bytes = vec![0; 64_usize];

        let mut curr_offset = 0_usize;
        let mut next_size = std::mem::size_of::<u32>();
        BigEndian::write_u32(
            &mut bytes[curr_offset..(curr_offset + next_size)],
            self.size,
        );

        curr_offset += next_size;
        next_size = std::mem::size_of::<u16>();
        BigEndian::write_u16(
            &mut bytes[curr_offset..(curr_offset + next_size)],
            self.select,
        );

        curr_offset += next_size;
        next_size = std::mem::size_of::<u16>();
        BigEndian::write_u16(
            &mut bytes[curr_offset..(curr_offset + next_size)],
            self.reserved,
        );

        curr_offset += next_size;
        bytes[curr_offset..].copy_from_slice(&self.name);

        bytes
    }
/// Convert FwCfgFile item into a big endian format data array
Convert FwCfgFile item into a big endian format data array
Convert FwCfgFile item into a big endian format data array
fn as_be_bytes(&self) -> Vec<u8> {
        let mut bytes = vec![0; 64_usize];
        let mut curr_offset = 0_usize;
        let mut next_size = std::mem::size_of::<u32>();
        BigEndian::write_u32(
            &mut bytes[curr_offset..(curr_offset + next_size)],
            self.size,
        );
        curr_offset += next_size;
        next_size = std::mem::size_of::<u16>();
        BigEndian::write_u16(
            &mut bytes[curr_offset..(curr_offset + next_size)],
            self.select,
        );
        curr_offset += next_size;
        next_size = std::mem::size_of::<u16>();
        BigEndian::write_u16(
            &mut bytes[curr_offset..(curr_offset + next_size)],
            self.reserved,
        );
        curr_offset += next_size;
        bytes[curr_offset..].copy_from_slice(&self.name);
        bytes
    }
fn as_be_bytes ( & self ) -> Vec < u8 > { let mut bytes = vec ! [ 0 64_usize ] ; let mut curr_offset = 0_usize ; let mut next_size = std :: mem :: size_of :: < u32 > ( ) ; BigEndian :: write_u32 ( & mut bytes [ curr_offset .. ( curr_offset + next_size ) ] , self . size , ) ; curr_offset += next_size ; next_size = std :: mem :: size_of :: < u16 > ( ) ; BigEndian :: write_u16 ( & mut bytes [ curr_offset .. ( curr_offset + next_size ) ] , self . select , ) ; curr_offset += next_size ; next_size = std :: mem :: size_of :: < u16 > ( ) ; BigEndian :: write_u16 ( & mut bytes [ curr_offset .. ( curr_offset + next_size ) ] , self . reserved , ) ; curr_offset += next_size ; bytes [ curr_offset .. ] . copy_from_slice ( & self . name ) ; bytes }
Convert FwCfgFile item into a big endian format data array
Convert FwCfgFile item into a big endian format data array
&self
&self