Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

FixedStringMethods.Equals

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static bool Equals(ref T fs, byte* bytes, int bytesLen);

Parameters

Parameter Description
fs A string to compare for equality.
bytes A sequence of bytes to compare for equality.
bytesLen The number of bytes in the byte sequence.

Returns

bool True if this string and the byte sequence have the same length and if this string's character bytes match the byte sequence.

Description

Returns true if this string and a byte sequence are equal (meaning they have the same length and content).


Declaration

public static bool Equals(ref T fs, ref T2 other);

Parameters

Parameter Description
fs A string to compare for equality.
other Another string to compare for equality.

Returns

bool true if the two strings have the same length and matching content.

Description

Returns true if this string is equal to another.