You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a35e666
Browse filesBrowse the repository at this point in the historyBrowse files
| Truncated/malformed input | Out-of-bounds read (no bounds check) |
277
277
| Very large array (> 2^32) | Not supported (JS limit) |
278
278
|`Date` object | Encoded as ISO string, NOT timestamp ext |
279
-
|`Symbol`, `Map`, `Set`| Not supported — will fail type check |
279
+
|`Symbol`, `Map`, `Set`| Not supported: will fail type check |
280
280
281
281
---
282
282
@@ -297,15 +297,15 @@ try {
297
297
```
298
298
299
299
For decoding untrusted data, wrap in try-catch. The decoder has no bounds
300
-
checking — malformed data may produce `RangeError` from `DataView` methods.
300
+
checking: malformed data may produce `RangeError` from `DataView` methods.
301
301
302
302
---
303
303
304
304
## Internal Buffer Details
305
305
306
306
### Growth Algorithm
307
307
308
-
The encoder uses a single module-level reusable buffer (`buf: Uint8Array`, `dv: DataView`, `pos: number`). All encode functions share these globals — thread-safe because JS is single-threaded.
308
+
The encoder uses a single module-level reusable buffer (`buf: Uint8Array`, `dv: DataView`, `pos: number`). All encode functions share these globals: thread-safe because JS is single-threaded.
309
309
310
310
```
311
311
Initial: buf = new Uint8Array(65536) // 64 KB
@@ -317,8 +317,8 @@ The buffer never shrinks. It grows geometrically (doubles) when `pos + needed >
0 commit comments