Convert integers to a Base64-encoded VLQ string
Samandar Ravshanov
Posted on July 28, 2019
More: https://en.wikipedia.org/wiki/Variable-length_quantity
from functorflow import ff
r = ff('vlq').encode(123)
print(r) # '2H'
r = ff('vlq').encode([ 123, 456, 789 ])
print(r) # '2HwcqxB'
r = ff('vlq').decode( '2HwcqxB' )
print(r) # [ 123, 456, 789 ]
💖 💪 🙅 🚩
Samandar Ravshanov
Posted on July 28, 2019
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
replit 📦 Transform a camelized/dasherized/underscored/etc string into a readable string
August 1, 2019