'Sets word at ``((uint16_t*)addr)[ndx]`` to `val` in the cache.
Examples:
>>> l = MemLeak(lambda x: \'\')
>>> l.cache == {}
True
>>> l.setw(33, 0x41)
>>> l.cache == {33: \'A\', 34: \'\x00\'}
True'

def setw(self, addr, val, ndx=0):

    return self._set(addr, val, ndx, 2)
