---
title: isEqualTo
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/osdata/isequalto-79gqy
---

# isEqualTo

Compares the data with a pointer to bytes

## Declaration

```occ
bool isEqualTo(const void *bytes, size_t numBytes) const;
```

## Parameters

- `bytes`: C-pointer to untyped data.
- `numBytes`: Count of bytes to be compared.

## Return Value

Return Value True iff the length of the data are equal and all bytes are identical.

## Discussion

Discussion If the passed data has the same length and all bytes are identical, true is returned. Otherwise false is returned.

## See Also

### Comparing Data Objects

- [isEqualTo](driverkit/osdata/isequalto-2kdml.md)
- [isEqualTo](driverkit/osdata/isequalto-4xz0j.md)
- [isEqualTo](driverkit/osdata/isequalto-5ssf5.md)
