Writes value at the specified offset with specified endian format. Returns offset plus the number of bytes written.
offset
external int writeInt16BE(num value, int offset, [bool noAssert]);