---
title: anchored
framework: corefoundation
role: symbol
role_heading: Type Property
path: corefoundation/cfdatasearchflags/anchored
---

# anchored

## Declaration

```swift
static var anchored: CFDataSearchFlags { get }
```

## Discussion

Discussion Performs searching only on bytes at the beginning or, if kCFDataSearchBackwards is also specified, at the end of the search range. No match at the beginning or end means nothing is found, even if a matching sequence of bytes occurs elsewhere in the data object.

## See Also

### Constants

- [backwards](corefoundation/cfdatasearchflags/backwards.md)
