helpers for binary-parser