Class ByteExtensions
System.Byte Based Extension Methods
Inheritance
System.Object
ByteExtensions
Namespace: GDX
Syntax
[VisualScriptingCompatible((short)2)]
public static class ByteExtensions
Methods
| Improve this Doc View SourceGetStableHashCode(Byte[])
Get the stable hash code of targetBytes, an array of System.Byte.
Declaration
public static int GetStableHashCode(this byte[] targetBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | targetBytes | The target array of System.Byte. |
Returns
| Type | Description |
|---|---|
| System.Int32 | A System.Int32 value. |
Remarks
Does NOT get the object's hashcode.
IsSame(Byte[], Byte[])
Are the two provided System.Byte arrays the same.
Declaration
public static bool IsSame(this byte[] sourceBytes, byte[] targetBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | sourceBytes | The left hand side System.Byte array to compare. |
| System.Byte[] | targetBytes | The right hand side System.Byte array to compare. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if they are identical, will also return true if both are null. |