2017-12-13 15:23:50 +00:00
|
|
|
/// <reference types="node" />
|
|
|
|
|
import * as Long from 'long';
|
2018-10-12 14:34:43 +01:00
|
|
|
import { GlobalPosition } from '..';
|
2017-12-13 15:23:50 +00:00
|
|
|
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;
|
|
|
|
|
};
|
2018-10-12 14:34:43 +01:00
|
|
|
static RegionCoordinatesToHandle(regionX: number, regionY: number): GlobalPosition;
|
2018-10-10 10:12:20 +01:00
|
|
|
static HTTPAssetTypeToInventoryType(HTTPAssetType: string): "" | "script" | "object" | "texture" | "sound" | "animation" | "gesture" | "landmark" | "callcard" | "wearable" | "notecard" | "category" | "mesh";
|
2018-10-16 16:46:58 +01:00
|
|
|
static ByteToFloat(byte: number, lower: number, upper: number): number;
|
2017-12-13 15:23:50 +00:00
|
|
|
static UInt16ToFloat(val: number, lower: number, upper: number): number;
|
|
|
|
|
static Base64EncodeString(str: string): string;
|
|
|
|
|
static Base64DecodeString(str: string): string;
|
2017-12-15 21:28:45 +00:00
|
|
|
static HexToLong(hex: string): Long;
|
2018-10-16 16:46:58 +01:00
|
|
|
static ReadRotationFloat(buf: Buffer, pos: number): number;
|
|
|
|
|
static ReadGlowFloat(buf: Buffer, pos: number): number;
|
|
|
|
|
static ReadOffsetFloat(buf: Buffer, pos: number): number;
|
2017-12-13 15:23:50 +00:00
|
|
|
}
|