This fits your description: https://en.wikipedia.org/wiki/Variable-length_quantity