[swift-corelibs-dev] NSURL.fileSystemRepresentation implementation

Eugene Gubin hemet.mail at gmail.com
Mon Jan 4 02:34:04 CST 2016


As far as I understand NSURL is responsible for deallocating memory to
which UnsafePointer returned from NSURL.fileSystemRepresentation points to.
Could one use private buffer to store result
for NSURL.fileSystemRepresentation or layout of this class should be the
same as CFURL?
Also NSFileManager has similar method fileSystemRepresentationWithPath, but
I'm not sure about it  because it allocates memory that is not freed in
case of success.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20160104/c24868d3/attachment.html>


More information about the swift-corelibs-dev mailing list