Function immutableCopy

Make an immutable copy of a string in unmanaged memory

immutable(T)[] immutableCopy(T) (
  immutable(T)[] b
);