Instance Methodswift-nio 2.81.0_NIOFileSystem
readChunk(fromAbsoluteOffset:length:)
FileHandle.swift:181- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
func readChunk(fromAbsoluteOffset offset: Int64, length: ByteCount) async throws -> ByteBuffer
func readChunk(fromAbsoluteOffset offset: Int64, length: ByteCount) async throws -> ByteBuffer
s14_NIOFileSystem14ReadFileHandleV9readChunk18fromAbsoluteOffset6length7NIOCore10ByteBufferVs5Int64V_AA0M5CountVtYaKF
What are these?4GHD1
import _NIOFileSystem
A file system library for Swift.
struct ReadFileHandle
Implements ReadableFileHandleProtocol
by making system calls to interact with the local file system.
@frozen struct Int64
A 64-bit signed integer value type.
struct ByteCount
Represents the number of bytes.
struct ByteBuffer
ByteBuffer
stores contiguously allocated raw bytes. It is a random and sequential accessible sequence of zero or more bytes (octets).
let fileHandle: FileHandle
func readChunks(in range: Range<Int64>, chunkLength: ByteCount) -> FileChunks
func setTimes(lastAccess: FileInfo.Timespec?, lastDataModification: FileInfo.Timespec?) async throws