<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "macCatalyst: 18.4.0 -",
    "macOS: 15.4.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKWebExtension/DataRecord/totalSizeInBytes",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKWebExtensionDataRecord(py)totalSizeInBytes"
  },
  "title" : "totalSizeInBytes"
}
-->

# totalSizeInBytes

The total size in bytes of all data types contained in this data record.

```
var totalSizeInBytes: Int { get }
```

## See Also

[`sizeInBytes(ofTypes:)`](/documentation/WebKit/WKWebExtension/DataRecord/sizeInBytes(ofTypes:))

Retrieves the size in bytes of the specific data types in this data record.



---

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)