binary stream parser for node