NidiumDebug

Debugging helper functions.

It is not possible to create an instance of this class. 'global.Debug' is already available.

var d = {a:1, b: "a"};
var s = Debug.serialize(d);
var u = Debug.unserialize(s)
console.log(JSON.stringify(u));

serialize(obj) (static)

Dump the content of an object.

Arguments:
obj (Object)

object to dump

data (String)

content

Returns: Any[]

list with dumped data

unserialize(arraybuf[, offset=0]) (static)

Dump the content of an object.

Arguments:
arraybuf (ArrayBuffer)

Object to dump into an arraybuffer

offset

(Unsigned long): offset to start on

Returns: Any

Dumped data


Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!