---
title: "newZone(_:)"
framework: modelio
role: symbol
role_heading: Instance Method
path: "modelio/mdlmeshbufferallocator/newzone(_:)"
---

# newZone(_:)

Creates a zone for related memory allocations.

## Declaration

```swift
func newZone(_ capacity: Int) -> any MDLMeshBufferZone
```

## Parameters

- `capacity`: The capacity of the zone to be created.

## Return Value

Return Value A new memory zone.

## Discussion

Discussion Objects implementing the MDLMeshBufferZone protocol describe a logical pool of memory for allocation of related buffers. The actual class of buffer zone objects vended by an allocator may be private.

## See Also

### Allocating Mesh Buffers

- [newZoneForBuffers(withSize:andType:)](modelio/mdlmeshbufferallocator/newzoneforbuffers(withsize:andtype:).md)
- [newBuffer(_:type:)](modelio/mdlmeshbufferallocator/newbuffer(_:type:).md)
- [newBuffer(from:length:type:)](modelio/mdlmeshbufferallocator/newbuffer(from:length:type:).md)
- [newBuffer(with:type:)](modelio/mdlmeshbufferallocator/newbuffer(with:type:).md)
- [newBuffer(from:data:type:)](modelio/mdlmeshbufferallocator/newbuffer(from:data:type:).md)
