The setInt16()
method of DataView
instances takes a number and stores it as a 16-bit signed 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.