Functions
RGBA
- RGBA(r: number, g: number, b: number): number
-
Parameters
-
r: number
-
g: number
-
b: number
Returns number
arrayCompare
- arrayCompare(a: any[], b: any[]): boolean
-
Parameters
Returns boolean
byte2signed
- byte2signed(b: number): number
-
Parameters
Returns number
byteArrayToString
- byteArrayToString(data: number[] | Uint8Array): string
-
Parameters
-
data: number[] | Uint8Array
Returns string
byteArrayToUTF8
- byteArrayToUTF8(data: number[] | Uint8Array): string
-
Parameters
-
data: number[] | Uint8Array
Returns string
byteToASCII
- byteToASCII(b: number): string
-
Parameters
Returns string
clamp
- clamp(minv: number, maxv: number, v: number): number
-
Parameters
-
minv: number
-
maxv: number
-
v: number
Returns number
compressLZG
- compressLZG(em_module: any, inBuffer: number[], levelArg?: boolean): Uint8Array
-
Parameters
-
em_module: any
-
inBuffer: number[]
-
Optional levelArg: boolean
Returns Uint8Array
convertDataToString
- convertDataToString(data: string | Uint8Array): string
-
Parameters
-
data: string | Uint8Array
Returns string
convertDataToUint8Array
- convertDataToUint8Array(data: string | Uint8Array): Uint8Array
-
Parameters
-
data: string | Uint8Array
Returns Uint8Array
decodeQueryString
- decodeQueryString(qs: string): {}
-
Parameters
Returns {}
getBasePlatform
- getBasePlatform(platform: string): string
-
Parameters
Returns string
getFilenameForPath
- getFilenameForPath(s: string): string
-
Parameters
Returns string
getFilenamePrefix
- getFilenamePrefix(s: string): string
-
Parameters
Returns string
getFolderForPath
- getFolderForPath(s: string): string
-
Parameters
Returns string
getRootBasePlatform
- getRootBasePlatform(platform: string): string
-
Parameters
Returns string
getRootPlatform
- getRootPlatform(platform: string): string
-
Parameters
Returns string
getWithBinary
- getWithBinary(url: string, success: (text: string | Uint8Array) => void, datatype: "text" | "arraybuffer"): void
-
Parameters
-
url: string
-
success: (text: string | Uint8Array) => void
-
- (text: string | Uint8Array): void
-
Parameters
-
text: string | Uint8Array
Returns void
-
datatype: "text" | "arraybuffer"
Returns void
hex
- hex(v: number, nd?: number): any
-
Parameters
-
v: number
-
Optional nd: number
Returns any
highlightDifferences
- highlightDifferences(s1: string, s2: string): string
-
Parameters
Returns string
invertMap
-
Parameters
Returns {}
isProbablyBinary
- isProbablyBinary(path: string, data?: number[] | Uint8Array): boolean
-
Parameters
-
path: string
-
Optional data: number[] | Uint8Array
Returns boolean
loadScript
- loadScript(scriptfn: string): Promise<Event>
-
Parameters
Returns Promise<Event>
lpad
- lpad(s: string, n: number): string
-
Parameters
Returns string
lzgmini
-
Returns void
parseBool
- parseBool(s: string): boolean
-
Parameters
Returns boolean
printFlags
- printFlags(val: number, names: string[], r2l: boolean): string
-
Parameters
-
val: number
-
names: string[]
-
r2l: boolean
Returns string
removeBOM
- removeBOM(s: string): string
-
Parameters
Returns string
rgb2bgr
-
Parameters
Returns number
rle_unpack
- rle_unpack(src: Uint8Array): Uint8Array
-
Parameters
Returns Uint8Array
rpad
- rpad(s: string, n: number): string
-
Parameters
Returns string
safe_extend
- safe_extend(deep: any, dest: any, src: any): any
-
Parameters
-
deep: any
-
dest: any
-
src: any
Returns any
safeident
- safeident(s: string): string
-
Parameters
Returns string
stringToByteArray
- stringToByteArray(s: string): Uint8Array
-
Parameters
Returns Uint8Array
tobin
- tobin(v: number, nd?: number): string
-
Parameters
-
v: number
-
Optional nd: number
Returns string
toradix
- toradix(v: number, nd: number, radix: number): string
-
Parameters
-
v: number
-
nd: number
-
radix: number
Returns string