Commit 4997fd4
committed
Refactor extract_vector method to support multiple buffer types
- Added a private helper method `buffer_to_uint8_array` to convert various buffer types (Uint8Array, ArrayBuffer, string) to Uint8Array.
- Updated the `extract_vector` method to accept a wider range of input types and handle null values.
- Adjusted calls to `extract_vector` throughout the DatabaseManager class to remove type assertions for Uint8Array.1 parent 2fa75d8 commit 4997fd4
3 files changed
+584
-666
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments