---
title: getBytesNoCopy
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/osdata/getbytesnocopy-91vcg
---

# getBytesNoCopy

Returns a pointer to the OSData object’s internal data buffer.

## Declaration

```occ
const void * getBytesNoCopy() const;
```

## Return Value

Return Value A pointer to the data or NULL if the OSData has zero length.

## See Also

### Getting Bytes

- [getBytesNoCopy](driverkit/osdata/getbytesnocopy-53puz.md)
- [OSDataGetBytes](driverkit/osdatagetbytes.md)
- [OSDataGetBytesPtr](driverkit/osdatagetbytesptr.md)
