def _readBE(data, nbytes, padding=False, offset=0):
        """

        :param data:
        :param nbytes:
        :param padding: If True, treat data as padded at the beginning to multiple of 32
        :param offset:
        :return:
        """
        start = offset
        size = nbytes

        if padding:
            start += 32 - nbytes

        pos = start

        values = []
        while pos < start + size:
            if pos >= len(data):
                values.append(0)
            else:
                values.append(data[pos])
            pos += 1
        return Operators.CONCAT(nbytes * 8, *values)
def _readBE ( data , nbytes , padding = False , offset = 0 ) : start = offset size = nbytes if padding : start += 32 - nbytes pos = start values = [ ] while pos < start + size : if pos >= len ( data ) : values . append ( 0 ) else : values . append ( data [ pos ] ) pos += 1 return Operators . CONCAT ( nbytes * 8 , * values )
:param data:
        :param nbytes:
        :param padding: If True, treat data as padded at the beginning to multiple of 32
        :param offset:
        :return: