Skip to content

Commit 5be6550

Browse files
authored
Fix ByteBuffer End of Stream Bug (#334)
1 parent 35688e3 commit 5be6550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/AwsCommonRuntimeKit/crt/ByteBuffer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@ extension ByteBuffer: IStreamable {
7171
}
7272

7373
public func isEndOfStream() -> Bool {
74-
return self.currentIndex >= self.data.count
74+
return self.currentIndex >= self.data.endIndex
7575
}
7676
}

0 commit comments

Comments
 (0)