is_frame_len_valid Function

public pure function is_frame_len_valid(n) result(ok)

A decoded frame length is acceptable iff it is non-negative and within the =MAX_FRAME_BYTES= cap. (Non-negativity is structurally guaranteed by =be_u32_to_i64=, but kept explicit so the predicate is correct for any int64 caller.)

Arguments

Type IntentOptional Attributes Name
integer(kind=int64), intent(in) :: n

Return Value logical