---
title: GetOffset
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/iomemorymap/getoffset
---

# GetOffset

Returns the offset from the original start of the memory block.

## Declaration

```occ
uint64_t GetOffset();
```

## Return Value

Return Value The number of bytes from the start of the original block of memory to the first byte of this memory map object.

## Discussion

Discussion When creating a memory map object, you can map to a location in the middle of the underlying buffer. You might do this to access a specific structure inside that buffer. This method returns the offset from the original start of the buffer to the first byte of your mapping.

## See Also

### Getting the Map Attributes

- [GetAddress](driverkit/iomemorymap/getaddress.md)
- [GetLength](driverkit/iomemorymap/getlength.md)
