35 references to StripeLengthBytes
Microsoft.CodeAnalysis.CodeStyle (35)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (35)
34public const int NumStripesPerBlock = (SecretLengthBytes - StripeLengthBytes) / SecretConsumeRateBytes; 35public const int AccumulatorCount = StripeLengthBytes / sizeof(ulong); 37public const int InternalBufferStripes = InternalBufferLengthBytes / StripeLengthBytes; 125Debug.Assert(InternalBufferLengthBytes % StripeLengthBytes == 0); 215const int StripesPerBlock = (SecretLengthBytes - StripeLengthBytes) / SecretConsumeRateBytes; 216const int BlockLen = StripeLengthBytes * StripesPerBlock; 222int stripesNumber = (int)((length - 1 - offset) / StripeLengthBytes); 224Accumulate512(accumulators, source + length - StripeLengthBytes, secret + (SecretLengthBytes - StripeLengthBytes - SecretLastAccStartBytes)); 238ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); 239Accumulate(accumulators, source + ((int)stripesToEndOfBlock * StripeLengthBytes), secret, (int)stripesAfterBlock); 284if (source.Length - sourceIndex > NumStripesPerBlock * StripeLengthBytes) 286ulong stripes = (ulong)(source.Length - sourceIndex - 1) / StripeLengthBytes; 293ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); 295sourceIndex += (int)stripesToEnd * StripeLengthBytes; 302ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); 303sourceIndex += NumStripesPerBlock * StripeLengthBytes; 309sourceIndex += (int)stripes * StripeLengthBytes; 314source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 327source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 376if (state.BufferedCount >= StripeLengthBytes) 378uint stripes = (state.BufferedCount - 1) / StripeLengthBytes; 383accumulateData = buffer + state.BufferedCount - StripeLengthBytes; 387byte* lastStripe = stackalloc byte[StripeLengthBytes]; 388int catchupSize = StripeLengthBytes - (int)state.BufferedCount; 390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 395Accumulate512(accumulators, accumulateData, secret + (SecretLengthBytes - StripeLengthBytes - SecretLastAccStartBytes)); 525byte* secretForScramble = secret + (SecretLengthBytes - StripeLengthBytes); 612source += StripeLengthBytes;