Udostępnij za pośrednictwem


FileLock.Overlaps(Int64, Int64) Method

Definition

Tells whether or not this lock overlaps the given lock range.

[Android.Runtime.Register("overlaps", "(JJ)Z", "")]
public bool Overlaps (long position, long size);
[<Android.Runtime.Register("overlaps", "(JJ)Z", "")>]
member this.Overlaps : int64 * int64 -> bool

Parameters

position
Int64

The starting position of the lock range

size
Int64

The size of the lock range

Returns

true if, and only if, this lock and the given lock range overlap by at least one byte

Attributes

Remarks

Tells whether or not this lock overlaps the given lock range.

Java documentation for java.nio.channels.FileLock.overlaps(long, long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to