chao faf16d266e update | 3 달 전 | |
---|---|---|
.. | ||
src | 3 달 전 | |
.npmignore | 3 달 전 | |
CHANGELOG.json | 3 달 전 | |
CHANGELOG.md | 3 달 전 | |
LICENSE | 3 달 전 | |
README.md | 3 달 전 | |
package.json | 3 달 전 | |
tsconfig.json | 3 달 전 |
Polyfill for DataView#getBigInt64
, DataView#getBigUint64
, DataView#setBigInt64
and DataView#setBigUint64
.
Requires native BigInt
support.
It ships with 3 flavors:
import { getBigInt64, getBigUint64, setBigInt64, setBigUint64 } from '@yume-chan/dataview-bigint-polyfill';
getBigInt64(dataView, byteOffset, littleEndian);
getBigUint64(dataView, byteOffset, littleEndian);
setBigInt64(dataView, byteOffset, value, littleEndian);
setBigUint64(dataView, byteOffset, value, littleEndian);
import { getBigInt64, getBigUint64, setBigInt64, setBigUint64 } from '@yume-chan/dataview-bigint-polyfill/esm/fallback';
getBigInt64(dataView, byteOffset, littleEndian);
getBigUint64(dataView, byteOffset, littleEndian);
setBigInt64(dataView, byteOffset, value, littleEndian);
setBigUint64(dataView, byteOffset, value, littleEndian);
DataView.prototype
when native support is not available.import '@yume-chan/dataview-bigint-polyfill/esm/polyfill.js';
dataView.getBigInt64(byteOffset, littleEndian);
dataView.getBigUint64(byteOffset, littleEndian);
dataView.setBigInt64(byteOffset, value, littleEndian);
dataView.setBigUint64(byteOffset, value, littleEndian);