The Conroy & Conroy Subroutine Library (2021.3 edition)

Compress
What: File
Layer: 1
Platforms: C++, C#, Javascript, Pascal (OOP), PHP, Python

RLN compression stores integer data using 7 bits per byte, with the highest bit reserved as a flag indicating whether another byte is required. Thus, a number of any size can be compressed. Small values are stored most efficiently, with larger values being less efficient to a minimum efficiency of 9/8 that of a non-compressed value. These functions compress and decompress integer values to/from streams. The file includes:
RLN_Compress function
RLN_Decompress function