---
title: length
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4bufferrange/length
---

# length

## Declaration

```swift
var length: UInt64
```

## Discussion

Discussion Length of the region which begins at the given address. If the length is not known, a value of (uint64_t)-1 represents the range from the given address to the end of the buffer.
