public static void WriteInt16(IntPtr ptr, int ofs, char val) => Marshal.WriteInt16(ptr, ofs, (short)val);
public static void WriteInt16(object ptr, int ofs, short val) { WriteValueSlow(ptr, ofs, val, (IntPtr nativeHome, int offset, short value) => Marshal.WriteInt16(nativeHome, offset, value)); }
public static void WriteInt16(IntPtr ptr, int ofs, short val) => Marshal.WriteInt16(ptr + ofs, val);