---
title: "raw(url:blockCount:)"
framework: diskimagekit
role: symbol
role_heading: Type Method
path: "diskimagekit/diskimage/creationconfiguration/raw(url:blockcount:)"
---

# raw(url:blockCount:)

Returns a RAW configuration for standalone or base images.

## Declaration

```swift
static func raw(url: URL, blockCount: Int) -> Self
```

## Parameters

- `url`: The doc://com.apple.documentation/documentation/Foundation/URL for the disk image file.
- `blockCount`: Size of the disk image in blocks.

## Return Value

Return Value A RAWCreationConfiguration instance.

## Discussion

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))
