pub unsafe extern "C" fn aeron_archive_segment_file_base_position(
    start_position: i64,
    position: i64,
    term_buffer_length: i32,
    segment_file_length: i32,
) -> i64
Expand description

Position of the recorded stream at the base of a segment file.

If a recording starts within a term then the base position can be before the recording started.

@param start_position start position of the stream @param position position in the stream to calculate the segment base position from. @param term_buffer_length term buffer length of the stream @param segment_file_length segment file length, which is a multiple of term buffer length @return the position of the recorded stream at the beginning of a segment file