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

# GetOffset

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

## Declaration

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

## 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)
