Quark #

Modules #

Quark v1.2.0 Documentation


quark/buffer #

Encoding #

All encoding algorithms of string

  • @type Encoding = "binary"|"ascii"|"base64"|"hex"|"utf-8"|"utf8"|"utf-16"|"utf16"|"ucs4"

fromString(str,targetEn?) #

Specify the algorithm to encode the string and return the encoded data

toString(src,encoding?,start?,end?) #

Decode data into a string using the specified algorithm