<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.5.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecureDownloadGetDownloadSize",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@F@SecureDownloadGetDownloadSize"
  },
  "title" : "SecureDownloadGetDownloadSize"
}
-->

# SecureDownloadGetDownloadSize

Returns the size of the expected download.

```
OSStatus SecureDownloadGetDownloadSize(SecureDownloadRef downloadRef, SInt64 *downloadSize);
```

## Parameters

`downloadRef`

The secure download object to query.

`downloadSize`

A pointer that the function fills with the the download size.

## Return Value

A result code. See [Secure Download Result Codes](/documentation/Security/secure-download-result-codes).

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)