---
title: getBytesNoCopy
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/osdata/getbytesnocopy-53puz
---

# getBytesNoCopy

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

## Declaration

```occ
const void * getBytesNoCopy(size_t start, size_t numBytes) const;
```

## Parameters

- `start`: An offset into the OSData object.
- `numBytes`: The length of data intended to be read. If (start + numBytes) exceeds the size of the OSData’s length, the call will fail.

## Return Value

Return Value A pointer to the data or NULL if the OSData does not have data for all the requested range.

## See Also

### Getting Bytes

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