0.2.0 • Published 2 years ago

play_msgpack v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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 } }

0.2.0

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.9

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago