jakutis / rserve-client

A stateful client for Rserve, the TCP/IP server for R framework.
https://www.npmjs.org/package/rserve-client
MIT License
10 stars 10 forks source link

Decoding of boolean array doesn't allow for padding #8

Open gid-elect opened 5 years ago

gid-elect commented 5 years ago

When encoding boolean arrays, Rserve applies padding so that the next entry falls on a 32-bit boundary. This padding is not allowed for in rserve.js and data can be lost as a result.

gid-elect commented 5 years ago

I've forked and added a fix which works for me.