17 lines
851 B
TypeScript
17 lines
851 B
TypeScript
/// <reference types="node" />
|
|
/// <reference types="long" />
|
|
import * as Long from 'long';
|
|
export declare class Utils {
|
|
static StringToBuffer(str: string): Buffer;
|
|
static BufferToStringSimple(buf: Buffer, startPos?: number): string;
|
|
static BufferToString(buf: Buffer, startPos?: number): {
|
|
readLength: number;
|
|
result: string;
|
|
};
|
|
static RegionCoordinatesToHandle(regionX: number, regionY: number): Long;
|
|
static HTTPAssetTypeToInventoryType(HTTPAssetType: string): "" | "script" | "texture" | "sound" | "animation" | "gesture" | "landmark" | "callcard" | "wearable" | "object" | "notecard" | "category" | "mesh";
|
|
static UInt16ToFloat(val: number, lower: number, upper: number): number;
|
|
static Base64EncodeString(str: string): string;
|
|
static Base64DecodeString(str: string): string;
|
|
}
|