FSVolumeAttributes
Volume attributes.
struct FSVolumeAttributes
Volume attributes.
struct FSVolumeAttributes
import BSDCore
The core module for interacting with the BSD kernel.
struct BSD
The BSD kernel.
struct FSCommonAttributes
Common attribute.
struct FSDirectoryAttributes
Directory attributes.
struct FSFileAttributes
File attributes.
struct FSCommonExtendedAttributes
Extended common attributes.
static var activeCSRConfig: CSRConfigOptions { get throws }
The active configuration for Configurable Security Restrictions (CSR).
static func csrCheck(_ options: CSRConfigOptions) throws
Checks if the system is configured with the specified CSR options.
static func syscall(_ syscall: @autoclosure () -> Int32) throws
Executes a system call and throw an error if it fails.
static func sysctl<DataType>(_ mibName: String, asArrayOf type: DataType.Type = UInt8.self) throws -> [DataType]
Gets kernel state.
static func sysctl<DataType>(_ mibNameArray: consuming [Int32], asArrayOf type: DataType.Type = UInt8.self) throws -> [DataType]
Gets kernel state.
static func sysctl<DataType>(_ mibName: String, setTo value: consuming [DataType]) throws
Sets kernel state.
static func sysctl<DataType>(_ mibNameArray: consuming [Int32], setTo value: consuming [DataType]) throws
Sets kernel state.
struct CSRConfigOptions
Configuration options for Configurable Security Restrictions (CSR).
struct FSAttributeBuffer
A buffer of attributes.
struct FSFinderDirectoryInfo
Finder Info about a directory.
struct FSFinderFileInfo
Finder Info about a file.
struct FSOptions
Options for file system operations.
struct FSParsedAttributes
Parsed attributes from an attribute buffer.
protocol CaseIterable
A type that provides a collection of all of its values.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol ExpressibleByArrayLiteral
A type that can be initialized using an array literal.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol OptionSet : RawRepresentable, SetAlgebra
A type that presents a mathematical set interface to a bit set.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
protocol SetAlgebra<Element> : Equatable, ExpressibleByArrayLiteral
A type that provides mathematical set operations.
init(name: String?, rawValue: UInt32)
Represents volume attributes with an optional name.
static let allCases: [`Self`]
All known volume attributes.
static let allocationClumpSize: BSD.FSVolumeAttributes
static let attributes: BSD.FSVolumeAttributes
static let availableSpace: BSD.FSVolumeAttributes
static let capabilities: BSD.FSVolumeAttributes
static let directoryCount: BSD.FSVolumeAttributes
static let encodingsUsed: BSD.FSVolumeAttributes
static let fileCount: BSD.FSVolumeAttributes
static let fileSystemSubtype: BSD.FSVolumeAttributes
static let fileSystemType: BSD.FSVolumeAttributes
static let fileSystemTypeName: BSD.FSVolumeAttributes
static let freeSpace: BSD.FSVolumeAttributes
static let ioBlockSize: BSD.FSVolumeAttributes
static let maximumObjectCount: BSD.FSVolumeAttributes
static let maximumSize: BSD.FSVolumeAttributes
static let minimumAllocationSize: BSD.FSVolumeAttributes
static let minimumSize: BSD.FSVolumeAttributes
static let mountFlags: BSD.FSVolumeAttributes
static let mountPoint: BSD.FSVolumeAttributes
static let mountedDevice: BSD.FSVolumeAttributes
static let name: BSD.FSVolumeAttributes
static let objectCount: BSD.FSVolumeAttributes
static let signature: BSD.FSVolumeAttributes
static let size: BSD.FSVolumeAttributes
static let usedSpace: BSD.FSVolumeAttributes
static let uuid: BSD.FSVolumeAttributes
var attributes: [`Self`] { get }
The individual volume attributes in the collection.
let name: String?
The name of the volume attributes, if it can be determined.
let rawValue: UInt32
The raw value of the volume attributes.
func parse(from pointer: inout UnsafeRawPointer) -> Any
init()
Creates an empty option set.
init<S>(_ sequence: S) where S : Sequence, Self.Element == S.Element
Creates a new set from a finite sequence of items.
init(arrayLiteral: Self.Element...)
Creates a set containing the elements of the given array literal.
var hashValue: Int { get }
var isEmpty: Bool { get }
A Boolean value that indicates whether the set has no elements.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func contains(_ member: Self) -> Bool
Returns a Boolean value that indicates whether a given element is a member of the option set.
mutating func formIntersection(_ other: Self)
Removes all elements of this option set that are not also present in the given set.
mutating func formSymmetricDifference(_ other: Self)
Replaces this set with a new set containing all elements contained in either this set or the given set, but not in both.
mutating func formUnion(_ other: Self)
Inserts the elements of another set into this option set.
func hash(into hasher: inout Hasher)
@discardableResult mutating func insert(_ newMember: Self.Element) -> (inserted: Bool, memberAfterInsert: Self.Element)
Adds the given element to the option set if it is not already a member.
func intersection(_ other: Self) -> Self
Returns a new option set with only the elements contained in both this set and the given set.
func isDisjoint(with other: Self) -> Bool
Returns a Boolean value that indicates whether the set has no members in common with the given set.
func isStrictSubset(of other: Self) -> Bool
Returns a Boolean value that indicates whether this set is a strict subset of the given set.
func isStrictSuperset(of other: Self) -> Bool
Returns a Boolean value that indicates whether this set is a strict superset of the given set.
func isSubset(of other: Self) -> Bool
Returns a Boolean value that indicates whether the set is a subset of another set.
func isSuperset(of other: Self) -> Bool
Returns a Boolean value that indicates whether the set is a superset of the given set.
@discardableResult mutating func remove(_ member: Self.Element) -> Self.Element?
Removes the given element and all elements subsumed by it.
mutating func subtract(_ other: Self)
Removes the elements of the given set from this set.
func subtracting(_ other: Self) -> Self
Returns a new set containing the elements of this set that do not occur in the given set.
func symmetricDifference(_ other: Self) -> Self
Returns a new option set with the elements contained in this set or in the given set, but not in both.
func union(_ other: Self) -> Self
Returns a new option set of the elements contained in this set, in the given set, or in both.
@discardableResult mutating func update(with newMember: Self.Element) -> Self.Element?
Inserts the given element into the set.