---
title: appendBytes
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/osdata/appendbytes-38hs5
---

# appendBytes

Appends a buffer of bytes to the OSData object’s internal data buffer.

## Declaration

```occ
bool appendBytes(const OSData *aDataObj);
```

## Parameters

- `aDataObj`: An OSData object to copy all bytes from.

## Return Value

Return Value True on success or false on failure, due to allocation failure.

## See Also

### Appending Data to the Object

- [appendBytes](driverkit/osdata/appendbytes-lbqa.md)
- [appendBytes](driverkit/osdata/appendbytes-lbqa.md)
- [OSDataAppendBytes](driverkit/osdataappendbytes.md)
