import struct


def pack_u64(i):
    """ Serializes a 64-bit integer into little-endian form.

    Args:
        i (int): integer to be serialized.

    Returns:
        b (bytes): 8 bytes containing the little-endian serialization of i.
    """
    return struct.pack('<Q', i)