position_from_running_time


Description:

[ Version ( since = "1.8" ) ]
public uint64 position_from_running_time (Format format, uint64 running_time)

Convert running_time into a position in the segment so that to_running_time with that position returns running_time.

Parameters:

this

a Segment structure.

format

the format of the segment.

running_time

the running_time in the segment

Returns:

the position in the segment for running_time. This function returns -1 when running_time is -1 or when it is not inside this.




2022 vala-language.org