public static void MemorySet(IntPtr dest, ushort value, uint count) { // FUTURE: Improve for (int i = 0; i < count; i = i + 2) { Intrinsic.Store16(dest, i, value); } }
public static IntPtr Box16(RuntimeTypeHandle handle, ushort value) { var memory = AllocateObject(handle, IntPtr.Size); Intrinsic.Store(memory, 0, handle.Value); Intrinsic.Store16(memory, IntPtr.Size * 2, value); return(memory); }
public void Store24(uint offset, uint value) { Intrinsic.Store16(this, offset, (ushort)(value & 0xFFFF)); Intrinsic.Store8(this, offset + 2, (byte)((value >> 16) & 0xFF)); }
public void Store16(uint offset, ushort value) { Intrinsic.Store16(this, offset, value); }
public void Store16(ushort value) { Intrinsic.Store16(this, value); }