Udostępnij za pośrednictwem


FileLock.Size Method

Definition

Returns the size of the locked region in bytes.

[Android.Runtime.Register("size", "()J", "")]
public long Size ();
[<Android.Runtime.Register("size", "()J", "")>]
member this.Size : unit -> int64

Returns

The size of the locked region

Attributes

Remarks

Returns the size of the locked region in bytes.

A locked region need not be contained within, or even overlap, the actual underlying file, so the value returned by this method may exceed the file's current size.

Java documentation for java.nio.channels.FileLock.size().

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