public static unsafe void Write(char* array, uint v) { *(uint*)array = v; } public static unsafe void Write(char* array, ushort v)