variable-length integer encoding
typed buffer