---
title: GetLength
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/iomemorymap/getlength
---

# GetLength

Returns the length of the memory block in bytes.

## Declaration

```occ
uint64_t GetLength();
```

## Return Value

Return Value The number of bytes in the memory block.

## Discussion

Discussion The length represents the number of bytes that are accessible to the current process.

## See Also

### Getting the Map Attributes

- [GetAddress](driverkit/iomemorymap/getaddress.md)
- [GetOffset](driverkit/iomemorymap/getoffset.md)
