import struct


def ulonglong_bytearray(l):
    """
    Converts a numeric value representing an unsigned 64-bit integer into a bytestring in big-endian byte order.
    :param l: Number to encode
    :return: Packed bytestring in big-endian byte order
    """
    return struct.pack('>Q', l)