src/SourceMap/Base64VLQ.php
public static function encode($value)
    {
        $encoded = '';
        $vlq = self::toVLQSigned($value);

        do {
            $digit = $vlq & self::VLQ_BASE_MASK;
            $vlq >>= self::VLQ_BASE_SHIFT;

            if ($vlq > 0) {
                $digit |= self::VLQ_CONTINUATION_BIT;
            }

            $encoded .= Base64::encode($digit);
        } while ($vlq > 0);

        return $encoded;
    }
public static function encode($value)
    {
        $encoded = '';
        $vlq = self::toVLQSigned($value);

        do {
            $digit = $vlq & self::VLQ_BASE_MASK;
            $vlq >>= self::VLQ_BASE_SHIFT;

            if ($vlq > 0) {
                $digit |= self::VLQ_CONTINUATION_BIT;
            }

            $encoded .= Base64::encode($digit);
        } while ($vlq > 0);

        return $encoded;
    }
public static function encode ( $ value ) { $ encoded = '' ; $ vlq = self :: toVLQSigned ( $ value ) ; do { $ digit = $ vlq & self :: VLQ_BASE_MASK ; $ vlq >>= self :: VLQ_BASE_SHIFT ; if ( $ vlq > 0 ) { $ digit |= self :: VLQ_CONTINUATION_BIT ; } $ encoded .= Base64 :: encode ( $ digit ) ; } while ( $ vlq > 0 ) ; return $ encoded ; }
Returns the VLQ encoded value.

@param integer $value

@return string
Returns the VLQ encoded value .