We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5757a0c commit 969d6e8Copy full SHA for 969d6e8
Sources/SmithyStreams/FileStream.swift
@@ -41,7 +41,7 @@ public final class FileStream: Stream, @unchecked Sendable {
41
/// Initializes a new `FileStream` instance.
42
public init(fileHandle: FileHandle) {
43
self.fileHandle = fileHandle
44
- self.position = fileHandle.availableData.startIndex
+ self.position = Int(fileHandle.offsetInFile)
45
}
46
47
/// Reads up to `count` bytes from the stream.
0 commit comments