SKFileStream

public final class SKFileStream : SKStream

A reading stream that wraps a native file. To write use SKFileWStream

  • Initialize the stream by calling sk_fopen on the specified path. This internal stream will be closed in the destructor.

    Declaration

    Swift

    public init?(path: String)
  • Returns true if the current path could be opened.

    Declaration

    Swift

    public var isValid: Bool { get }