---
title: CopyMemoryDescriptor
framework: networkingdriverkit
role: symbol
role_heading: Instance Method
path: networkingdriverkit/iousernetworkpacketbufferpool/copymemorydescriptor
---

# CopyMemoryDescriptor

Returns a memory descriptor for the buffer pool’s contents.

## Declaration

```occ
virtual kern_return_t CopyMemoryDescriptor(IOMemoryDescriptor **memory);
```

## Parameters

- `memory`: On output, a pointer to a memory descriptor object. It is a programmer error to specify NULL or an invalid pointer for this parameter.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurred.
