---
title: AppendData
framework: DriverKit
role: symbol
role_heading: Instance Method
path: driverkit/ioextensiblepaniclog/appenddata
---

# AppendData

## Declaration

```occ
virtual kern_return_t AppendData(OSData *data);
```

## Parameters

- `data`: Data to be inserted

## Return Value

Return Value 0 in case of success. Negative in case of an error.

## Discussion

Discussion This function is called to insert data into the buffer. This function overwrites the data in the buffer. The write starts from last written byte and continues until ‘len’
