---
title: GetDataOffset
framework: networkingdriverkit
role: symbol
role_heading: Instance Method
path: networkingdriverkit/iousernetworkpacket/getdataoffset-4tw7y
---

# GetDataOffset

Gets the offset to the beginning of the packet’s data.

## Declaration

```occ
virtual kern_return_t GetDataOffset(uint16_t *offset) const;
```

## Parameters

- `offset`: On return, the offset value.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurred.

## See Also

### Getting the Packet Information

- [GetHeadroom](networkingdriverkit/iousernetworkpacket/getheadroom.md)
- [GetLinkHeaderLength](networkingdriverkit/iousernetworkpacket/getlinkheaderlength-8dlhu.md)
- [GetDataLength](networkingdriverkit/iousernetworkpacket/getdatalength-8km3n.md)
- [GetMemorySegmentOffset](networkingdriverkit/iousernetworkpacket/getmemorysegmentoffset-39e4c.md)
