---
title: InsertData
framework: DriverKit
role: symbol
role_heading: Instance Method
path: driverkit/ioextensiblepaniclog/insertdata
---

# InsertData

## Declaration

```occ
virtual kern_return_t InsertData(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 offset 0 and continues until ‘len’
