( items: unknown[], context: LargeArrayManifestWriteOptions )
| 82 | } |
| 83 | |
| 84 | async function storeArrayChunk( |
| 85 | items: unknown[], |
| 86 | context: LargeArrayManifestWriteOptions |
| 87 | ): Promise<LargeArrayManifestChunk> { |
| 88 | const measured = measureJson(items) |
| 89 | const ref = await storeLargeValue(items, measured.json, measured.size, { |
| 90 | ...context, |
| 91 | requireDurable: true, |
| 92 | }) |
| 93 | return { ref, count: items.length, byteSize: measured.size } |
| 94 | } |
| 95 | |
| 96 | function chunkArrayItems(items: unknown[], targetBytes: number): unknown[][] { |
| 97 | const chunks: unknown[][] = [] |
no test coverage detected