raw(url:blockCount:)
Returns a RAW configuration for standalone or base images.
Declaration
static func raw(url: URL, blockCount: Int) -> SelfParameters
- url:
The Url for the disk image file.
- blockCount:
Size of the disk image in blocks.
Return Value
A RAWCreationConfiguration instance.
Discussion
The framework only supports the 512-byte block size for RAW images.
The following example demonstrates how to create a RAW disk image.
_ = try DiskImage(creating: .raw(url: imageURL, blockCount: blockCount))