-
Type: Improvement
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
Summary
When using the raw flag the Uint8Arrays returned are backed by nodejs' pooled buffer, if the buffer's lifetime is beyond that of passing it along to some sort of serialization this could have unexpected consequences. It should be documented at least, or possible changed by the raw configuration.
Ref: https://nodejs.org/dist/latest-v16.x/docs/api/buffer.html#static-method-bufferallocunsafeslowsize
AC
- We should document this behavior on the raw flag
- related to
-
NODE-4732 When using the raw option buffers should be backed by a dedicated allocation
- Backlog