function createShort(buf, bufPos, value) {
	        buf[bufPos + 0] = 0xff & ((value >> 8) & 0xff);
	        buf[bufPos + 1] = 0xff & (value & 0xff);
	    }
Write big endian short (2-bytes) in the header.

@param buf
           header to write the integer into
@param bufPos
           offset into the header
@param value
           integer value to write