Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
ScssPhp\ScssPhp\SourceMap\Base64VLQ Class Reference

Base 64 VLQ. More...

Static Public Member Functions

static decode ($str, &$index)
 Decodes VLQValue.
 
static encode ($value)
 Returns the VLQ encoded value.
 

Public Attributes

const VLQ_BASE_MASK = 31
 
const VLQ_BASE_SHIFT = 5
 
const VLQ_CONTINUATION_BIT = 32
 

Detailed Description

Base 64 VLQ.

Based on the Base 64 VLQ implementation in Closure Compiler: https://github.com/google/closure-compiler/blob/master/src/com/google/debugging/sourcemap/Base64VLQ.java

Copyright 2011 The Closure Compiler Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author
John Lenz johnl.nosp@m.enz@.nosp@m.googl.nosp@m.e.co.nosp@m.m
Anthon Pang antho.nosp@m.n.pa.nosp@m.ng@gm.nosp@m.ail..nosp@m.com

Member Function Documentation

◆ decode()

static ScssPhp\ScssPhp\SourceMap\Base64VLQ::decode ( $str,
& $index )
static

Decodes VLQValue.

Parameters
string$str
int$index
Return values
int

◆ encode()

static ScssPhp\ScssPhp\SourceMap\Base64VLQ::encode ( $value)
static

Returns the VLQ encoded value.

Parameters
int$value
Return values
string

The documentation for this class was generated from the following file: