Required Instance Methodswift-nio 2.72.0_NIOFileSystem
resize(to:)
Resizes a file to the given size.
FileHandleProtocol.swift:466- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
func resize(to size: ByteCount) async throws
Parameters
Other requirements
Instance members
func close(makeChangesVisible: Bool
) async throws Closes the file handle.
func write(contentsOf: some (Sequence<UInt8> & Sendable), toAbsoluteOffset: Int64
) async throws -> Int64 Write the given bytes to the open file.