---
title: getBytesNoCopy
framework: Kernel
role: symbol
role_heading: Instance Method
platforms: [driverkit 19.0+, macOS 10.15+]
path: kernel/osdata/3180879-getbytesnocopy
---

# getBytesNoCopy

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

## Declaration

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

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

## Return Value

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

## See Also

### Getting Bytes

- [getBytesNoCopy](kernel/osdata/3433842-getbytesnocopy.md)
