# EqualsUTF8Bytes(byte*, int, byte*, int)

> Returns true if two UTF-8 buffers have the same length and content.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public static bool EqualsUTF8Bytes(byte* aBytes, int aLength, byte* bBytes, int bLength)
```

### Parameters

**** (\[byte\*]\(https\://learn.microsoft.com/dotnet/api/system.byte)): The first buffer of UTF-8 text.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The length in bytes of the first buffer.**** (\[byte\*]\(https\://learn.microsoft.com/dotnet/api/system.byte)): The second buffer of UTF-8 text.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The length in bytes of the second buffer.

### Returns

| Type                                                          | Description                                       |
| ------------------------------------------------------------- | ------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the content of both strings is identical. |
