---
title: copyObject
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/osserialization/copyobject
---

# copyObject

Obtain the result of the deserialization performed by createFromBytes().

## Declaration

```occ
OSObjectPtr copyObject();
```

## Return Value

Return Value NULL on failure, otherwise the allocated OSObject with reference count 1 to be released by the caller.

## Discussion

Discussion Obtain the result of the deserialization performed by createFromBytes().

## See Also

### Getting the Serialized Content

- [OSCreateObjectFromSerialization](driverkit/oscreateobjectfromserialization.md)
- [OSSerializationGetBytes](driverkit/osserializationgetbytes.md)
- [finalizeBuffer](driverkit/osserialization/finalizebuffer.md)
