Skip to content

Commit

Permalink
Next chaanges 5 (buffer.update)
Browse files Browse the repository at this point in the history
  • Loading branch information
jguz-pubnub committed Mar 28, 2024
1 parent b886448 commit 47307b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public class CryptoInputStream: InputStream {
// Assign from the overflow buffer up to the max length
readBuffer[cryptedBufferRead...].withUnsafeBufferPointer {
guard let baseAddress = $0.baseAddress else { return }
buffer.assign(from: baseAddress, count: bytesToRead)
buffer.update(from: baseAddress, count: bytesToRead)
}

if remainingCryptedBufferLength > bytesToRead {
Expand Down

0 comments on commit 47307b5

Please sign in to comment.