---
title: appendBytes
framework: kernel
role: symbol
role_heading: Instance Method
path: kernel/iobuffermemorydescriptor/1574849-appendbytes
---

# appendBytes

Adds the specified data to the end of the memory buffer.

## Declaration

```occ
virtual bool appendBytes(const void *bytes, vm_size_t withLength);
```

## Parameters

- `bytes`: A pointer to the bytes to add.
- `withLength`: The number of bytes in the bytes parameter.

## Return Value

Return Value true if the bytes were appended successfully, or false if an error occurred.
