logoRemuria

String Utilities for VRChat

0.1.0 Public

String Utilities for VRChat

A collection of string utility functions for VRChat development, including compression and encoding methods.

LzString

This library provides methods for compressing and decompressing strings using the LZ-based compression algorithm. It supports various encoding formats such as Base64 and URI-safe encoding.

var lz = new LzString();
var str = "Your string to compress here";

// === UTF-16 ===
var a = lz.CompressToUTF16(str);
var b = lz.DecompressFromUTF16(a);

// === Uint8Array ===
var a = lz.CompressToUint8Array(str);
var b = lz.DecompressFromUint8Array(a);

// === Base64 ===
var a = lz.CompressToBase64(str);
var b = lz.DecompressFromBase64(a);

// === URI Component ===
var a = lz.CompressToEncodedURIComponent(str);
var b = lz.DecompressFromEncodedURIComponent(a);

Keywords

No keywords found.

Install via VCC

Package ID

cat.natsuneko.string-utils

Unity Version

2022.2

Unity Release

undefined

VRChat Version

2022.1.1

Author

Owner

License

MIT

Documentation URL

undefined

Changelog URL

undefined