mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
Example:
```
var parser = byteDelimiter([0,0]);
parser(emit, new Buffer('\0hello\0world\0\0');
```
Expected: `emit` should be called once, upon `\0\0` with whole string.
What happens: `emit` is called twice, with `\0hello\0` and `world\0\0`.
|
||
|---|---|---|
| .. | ||
| arduinoTest | ||
| mocks | ||
| bindings.js | ||
| integration-lite.js | ||
| list-linux.js | ||
| parsers.js | ||
| serialport.js | ||