first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

27
node_modules/expo/ios/Fetch/ResponseSink.swift generated vendored Normal file
View File

@@ -0,0 +1,27 @@
// Copyright 2015-present 650 Industries. All rights reserved.
/**
A data structure to store response body chunks
*/
internal final class ResponseSink {
private var bodyQueue: [Data] = []
private var isFinalized = false
private(set) var bodyUsed = false
func appendBufferBody(data: Data) {
bodyUsed = true
bodyQueue.append(data)
}
func finalize() -> Data {
let size = bodyQueue.reduce(0) { $0 + $1.count }
var result = Data(capacity: size)
while !bodyQueue.isEmpty {
let data = bodyQueue.removeFirst()
result.append(data)
}
bodyUsed = true
isFinalized = true
return result
}
}