<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreHID",
  "identifier" : "/documentation/CoreHID/HIDElement/Value/bytes",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core HID"
    ],
    "preciseIdentifier" : "s:7CoreHID10HIDElementV5ValueV5bytes10Foundation4DataVvp"
  },
  "title" : "bytes"
}
-->

# bytes

The data as an array of bytes.

```
var bytes: Data
```

## Discussion

The size of the data must be the [`element`](/documentation/CoreHID/HIDElement/Value/element)s [`reportSize`](/documentation/CoreHID/HIDElement/reportSize), rounded up to the next byte.

---

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)