Hash a single file block at a specific stream position.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | u | |||
| integer(kind=int64), | intent(in) | :: | pos | |||
| integer, | intent(in) | :: | n | |||
| integer(kind=int64), | intent(inout) | :: | h |
subroutine hash_block(u, pos, n, h) integer, intent(in) :: u integer(int64), intent(in) :: pos integer, intent(in) :: n integer(int64), intent(inout) :: h integer :: ios, i if (n <= 0) return read(u, pos=pos, iostat=ios) io_buf(1:n) if (ios == 0) then do i = 1, n call fnv1a_mix_i64(h, int(iachar(io_buf(i)), int64)) end do end if end subroutine hash_block