mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Extensions - updated comment
This commit is contained in:
parent
2f2a6907de
commit
4f1a1899aa
@ -9,9 +9,9 @@ public static class Extensions
|
|||||||
public static string ToHexString(this ArraySegment<byte> segment) =>
|
public static string ToHexString(this ArraySegment<byte> segment) =>
|
||||||
BitConverter.ToString(segment.Array, segment.Offset, segment.Count);
|
BitConverter.ToString(segment.Array, segment.Offset, segment.Count);
|
||||||
|
|
||||||
// string.GetHashCode is not guaranteed to be the same on all machines, but
|
// string.GetHashCode is not guaranteed to be the same on all
|
||||||
// we need one that is the same on all machines. simple and stupid:
|
// machines, but we need one that is the same on all machines.
|
||||||
// NOTE: Do not call this from hot path because it's slow for long method names.
|
// NOTE: Do not call this from hot path because it's slow O(N) for long method names.
|
||||||
// - As of 2012-02-16 There are 2 design-time callers (weaver) and 1 runtime caller that caches.
|
// - As of 2012-02-16 There are 2 design-time callers (weaver) and 1 runtime caller that caches.
|
||||||
public static int GetStableHashCode(this string text)
|
public static int GetStableHashCode(this string text)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user