Loads fixed size integer from the buffer
    :param buffer:
    :return:

def load_uint_b(buffer, width):
    """
    Loads fixed size integer from the buffer
    :param buffer:
    :return:
    """
    result = 0
    for idx in range(width):
        result += buffer[idx] << (8 * idx)
    return result