Comments (3)
@falcon027 congrats, you found a bug!
I have a fix:
diff --git a/lib/disruptor.js b/lib/disruptor.js
index 92c497c..7bc4418 100644
--- a/lib/disruptor.js
+++ b/lib/disruptor.js
@@ -267,7 +267,7 @@ class DisruptorWriteStream extends Writable {
}
let i = 0;
for (const buf of bufs) {
- chunk.copy(buf, 0, i, buf.length);
+ chunk.copy(buf, 0, i, i + buf.length);
i += buf.length;
}
if (i === 0) {
I'll publish it soon but I want to get your example into the tests first.
from shared-memory-disruptor.
@falcon027 fixed in version 4.1.4
from shared-memory-disruptor.
I appreciate the quick fix, it works now, have a good day.
from shared-memory-disruptor.
Related Issues (6)
- Question: Termination-safety HOT 6
- Addon is not context aware HOT 4
- Add promise methods HOT 1
- Tests fail due to double free bug in node-addon-api HOT 2
- support mac os HOT 26
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shared-memory-disruptor.