@classmethod
def multipleBlocks(cls, p, reply, ciphering):
    """
        Check is all_ data fit to one data block.

        @param p
        LN parameters.
        @param reply
        Generated reply.
        """
    len_ = 0
    if p.data:
        len_ = len(p.data) - p.data.position
    if p.attributeDescriptor:
        len_ += p.attributeDescriptor.size
    if ciphering:
        len_ += cls.__CIPHERING_HEADER_SIZE
    if not p.multipleBlocks:
        p.multipleBlocks = 2 + len(reply) + len_ > p.settings.maxPduSize
    if p.multipleBlocks:
        p.lastBlock = not 8 + len(reply) + len_ > p.settings.maxPduSize
    if p.lastBlock:
        p.lastBlock = not 8 + len(reply) + len_ > p.settings.maxPduSize
