maximumFileSizeInBits
The minimum number of bits needed to represent, as a signed integer value, the maximum size of a regular file allowed in the volume.
Declaration
optional var maximumFileSizeInBits: Int { get }Discussion
The maximum file size is 2^(maximumFileSizeInBits - 1).
Maximum file size (bytes) | Maximum (in hex) | Unsigned bits | Signed bits |
|---|---|---|---|
65,535 |
| 16 | 17 |
2,147,483,647 |
| 31 | 32 |
4,294,967,295 |
| 32 | 33 |
18,446,744,073,709,551,615 |
| 64 | 65 |
Implement at least one of maximumFileSize or maximumFileSizeInBits. FSKit automatically converts from one to another if needed. If you implement both, FSKit uses only the maximumFileSizeInBits implementation.