The setUint16()
method of DataView
instances takes a number and stores it as a 16-bit unsigned integer in the 2 bytes starting at the specified byte offset of this DataView
. There is no alignment constraint; multi-byte values may be stored at any offset within bounds.