Module basic module

Module base64vlq

base64vlq encoding and decoding module

Reference method:

1 2
var encoding = require('encoding'); var base64vlq = encoding.base64vlq;

or

1
var base64vlq = require('base64vlq');

Static function

encode

Encode data in base64vlq

1
static String base64vlq.encode(Integer data);

Call parameters:

  • data : Integer, the data to be encoded

Return result:

  • String , returns the encoded string

Encode data in base64vlq

1
static String base64vlq.encode(Array data);

Call parameters:

  • data : Array, the data to be encoded

Return result:

  • String , returns the encoded string

decode

Decode a string into binary data in base64vlq

1
static Array base64vlq.decode(String data);

Call parameters:

  • data : String, the string to be decoded

Return result:

  • Array , returns the decoded binary data