const littleEndian = (() => { const buffer = new ArrayBuffer(2); new DataView(buffer).setInt16(0, 256, true /* リトルエンディアン */); // Int16Array はプラットフォームのエンディアンを使用する return new Int16Array(buffer)[0] === 256; })(); console.log(littleEndian); // true または false コンストラクター DataView() 新しい DataView オブジェクトを作成します。 インスタンスプロパティ これらのプロパティは DataView.prototype 上に定義られており、すべての DataView インスタンスで共有されます。 DataView.prototyp

