kapacity

Returns the Kapacity of this File, calculated directly from its length on the disk.

If the file does not exist, or if it is a directory, this will return a Kapacity of 0 bytes, matching the underlying behavior of File.length.


Returns the Kapacity of this Path, calculated directly from its length on the disk.

If the file does not exist, throws an exception matching the underlying behavior of Path.fileSize.


Returns the Kapacity of this ByteBuffer, calculated directly from its length on the disk.

val Buffer.kapacity: Kapacity

Returns the Kapacity of this Buffer, calculated directly from its size.

Each byte currently held in the buffer represents exactly 1 byte of capacity.


val ByteString.kapacity: Kapacity

Returns the Kapacity of this immutable ByteString, calculated directly from its size.

Each byte in the string represents exactly 1 byte of capacity.


val ByteStringBuilder.kapacity: Kapacity

Returns the Kapacity of the data currently written to this ByteStringBuilder, calculated directly from its current size.

val NSData.kapacity: Kapacity

Returns the Kapacity of this NSData buffer, calculated directly from its length in memory.

Each byte currently held in the buffer represents exactly 1 byte of capacity.


val NSURL.kapacity: Kapacity

Returns the Kapacity of this NSURL, calculated directly from its file size on the disk.

If the file does not exist, or if the URL does not represent a local file path, this will return a Kapacity of 0 bytes.