play_msgpack v0.2.0
packJs/unpackJs : js_native_local_ext
pack/unpack : default
js:number(float/double) -> msgpack_double
js:number(int) -> msgpack_int(auto)
js:bigint -> msgpack_int(auto)
js:Uint8Array -> msgpack_raw
js:TypedArray -> msgpack_array
js:Set -> msgpack_array
js:Map -> msgpack_map
msgpack_map -> js:Object(kv)
msgpack_array -> js:array
msgpack_int -> js:number/bigint
for extends msg
if you use "jsbi" for bigint
if you in ie11??
if (!Uint8Array.prototype.slice) { Uint8Array.prototype.slice = function () { return new Uint8Array(this).subarray(this.arguments); } } if (!Number.isInteger) { function ToInteger (n) { var t = Number(n); return isNaN(t) ? 0 : 1 / t === Infinity || 1 / t == -Infinity || t === Infinity || t === -Infinity ? t : (t < 0 ? -1 : 1) * Math.floor(Math.abs(t)) } Number.isInteger = function (n) { return "number" === typeof (n) && (!isNaN(n) && n !== Infinity && n !== -Infinity && ToInteger(n) === n); } Number.isSafeInteger = function e (r) { if ("number" !== typeof (r)) return !1; if (isNaN(r) || r === Infinity || r === -Infinity) return !1; var t = ToInteger(r); return t === r && Math.abs(t) <= Math.pow(2, 53) - 1 } }
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago