<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFDataAppendBytes(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@F@CFDataAppendBytes"
  },
  "title" : "CFDataAppendBytes(_:_:_:)"
}
-->

# CFDataAppendBytes(_:_:_:)

Appends the bytes from a byte buffer to the contents of a CFData object.

```
func CFDataAppendBytes(_ theData: CFMutableData!, _ bytes: UnsafePointer<UInt8>!, _ length: CFIndex)
```

## Parameters

`theData`

A CFMutableData object. If you pass an immutable CFData object, the behavior is not defined.

`bytes`

A pointer to the buffer of bytes to be added to `theData`.

`length`

The number of bytes in the byte buffer `bytes`.

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