---
title: finalizeBuffer
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/osserialization/finalizebuffer
---

# finalizeBuffer

Obtain the result of the serialization performed by createFromObject().

## Declaration

```occ
const void * finalizeBuffer(size_t *length);
```

## Parameters

- `length`: The length of the serialization data.

## Return Value

Return Value NULL on failure, otherwise a pointer to the serialization data. It is valid only while the OSSerialization object is retained.

## Discussion

Discussion Obtain the result of the serialization performed by createFromObject().

## See Also

### Getting the Serialized Content

- [copyObject](driverkit/osserialization/copyobject.md)
- [OSCreateObjectFromSerialization](driverkit/oscreateobjectfromserialization.md)
- [OSSerializationGetBytes](driverkit/osserializationgetbytes.md)
