public override int GetHashCode(ArraySegment <byte> key) { if (key.Array == null || key.Count == 0) { return(0); } return(ByteArrayComparer.GetHashCode(key.Array, key.Offset, key.Count)); }
public override int GetHashCode(byte[] key) { if (key == null || key.Length == 0) { return(0); } return(ByteArrayComparer.GetHashCode(key)); }