I have a security requirement to zero out certain segments of memory and one of those are Strings under certain circumstances.
Grabbing the UnsafeMutablePointer<Void> of a String struct, one could invoke memset. The issue then becomes, once you 0 out the value you have random crashes due to the header being zero'd out.
Larger issues are due to the fact String is completely overengineered. Grabbing the root _StringCore could have lended itself to doing this - but alas it's memory addresses are "0x0"
Are there means to do this?