Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: setInternalBufferSize #94

Open
wants to merge 1 commit into
base: 4.0
Choose a base branch
from
Open

feat: setInternalBufferSize #94

wants to merge 1 commit into from

Conversation

vird
Copy link

@vird vird commented Mar 5, 2023

Description

Support setInternalBufferSize (same as mongodb/js-bson)

What changed?

  • New function SetInternalBufferSize
  • Do not use global constant MAX_BSON_SIZE where possible
  • DataStream now can accept maxBSONSize
  • BSONSerializer added bson->maxBSONSize
  • New tests

Note there is bug with overflow when you try serialize javascript object larger than your internal buffer. See https://github.com/vird/bson-ext/tree/4.0_overflow_bug_testcase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant