( array: $ReadOnlyArray<string>, dbModule: EmscriptenModule, )
| 29 | } |
| 30 | |
| 31 | function arrayToStringVector( |
| 32 | array: $ReadOnlyArray<string>, |
| 33 | dbModule: EmscriptenModule, |
| 34 | ): EmscriptenVector<string> { |
| 35 | if (!dbModule || !dbModule.StringVector) { |
| 36 | throw new Error('Database module or StringVector not available'); |
| 37 | } |
| 38 | |
| 39 | const vector = new dbModule.StringVector(); |
| 40 | for (const item of array) { |
| 41 | vector.push_back(item); |
| 42 | } |
| 43 | return vector; |
| 44 | } |
| 45 | |
| 46 | function arrayToIntegrityThreadHashVector( |
| 47 | array: $ReadOnlyArray<ClientDBIntegrityThreadHash>, |
no outgoing calls
no test coverage detected