Differences Between: [Versions 310 and 311] [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403] [Versions 39 and 311]
SCSSPHP
Copyright: | 2012-2020 Leaf Corcoran |
License: | http://opensource.org/licenses/MIT MIT |
File Size: | 149 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Base64VLQ:: (4 methods):
encode()
decode()
toVLQSigned()
fromVLQSigned()
encode($value) X-Ref |
Returns the VLQ encoded value. param: integer $value return: string |
decode($str, &$index) X-Ref |
Decodes VLQValue. param: string $str param: integer $index return: integer |
toVLQSigned($value) X-Ref |
Converts from a two-complement value to a value where the sign bit is is placed in the least significant bit. For example, as decimals: 1 becomes 2 (10 binary), -1 becomes 3 (11 binary) 2 becomes 4 (100 binary), -2 becomes 5 (101 binary) param: integer $value return: integer |
fromVLQSigned($value) X-Ref |
Converts to a two-complement value from a value where the sign bit is is placed in the least significant bit. For example, as decimals: 2 (10 binary) becomes 1, 3 (11 binary) becomes -1 4 (100 binary) becomes 2, 5 (101 binary) becomes -2 param: integer $value return: integer |