public string ReleaseAndGetString()
{
if (disposed)
throw new ObjectDisposedException("FileStorage");
var buf = new StringBuilder(1 << 16);
NativeMethods.core_FileStorage_releaseAndGetString(ptr, buf, buf.Capacity);
ptr = IntPtr.Zero;
Dispose();
return buf.ToString();
}