kessler / node-regedit

Read, Write, List and do all sorts of funky stuff to the windows registry using node.js and windows script host
MIT License
281 stars 45 forks source link

Add buffersize support #91

Open 6ixfalls opened 2 years ago

6ixfalls commented 2 years ago

Assuming that you'd want a parameter passed into every function, optional, stating the buffer size. Fixes #72.

kessler commented 2 years ago

@6ixfalls thank you for your contribution.

we're having an internal debate here, if passing this parameter to every function is the correct way to implement... to me it feels like it's an environment thing.

Did you consider it and decided against it or?

6ixfalls commented 2 years ago

After I finished, I kinda thought over and realized that too, though since I had it done already I just made a PR. I could make it a global variable that you set either through a function or variable, which I think would be optimal?

kessler commented 2 years ago

since I made the mistake many years ago not to export an instance of regedit, but rather have all the functions exported directly we are foced to use a "static" variable, in much the same way we implemented setExternalVBSLocation. @M1cr0M1nd will take care of it, I'll leave this PR open until then