Instance Propertyswift-png 4.4.5PNG
count
The size of the file, in bytes, or nil
if the file is not a regular file or a link to a file.
var count: Int? { get }
This property queries the file size using stat
.
Other members in extension
Type members
static func open<R>(path: String, (inout `Self`) throws -> R
) rethrows -> R? Calls a closure with an interface for reading from the specified file.
Instance members
func read(count: Int
) -> [UInt8]? Reads the specified number of bytes from this file interface.