fileStream(fd:automaticClose:)
Creates a stream from an open file descriptor.
Declaration
static func fileStream(fd: FileDescriptor, automaticClose: Bool = true) -> ArchiveByteStream?Parameters
- fd:
The file descriptor that you have previously opened with
open(2). - automaticClose:
A Boolean value that specifies whether to close the file descriptor when you close the stream.
Return Value
A new archive byte stream.