3 writes to _cachedBuffer
System.Data.Entity (3)
System\Data\Mapping\MetadataMappingHasherVisitor.HashSourceBuilder.cs (3)
113
_cachedBuffer
= new byte[startingBufferSize];
146
_cachedBuffer
= new byte[byteCount];
155
_cachedBuffer
= new byte[bufferSize];
6 references to _cachedBuffer
System.Data.Entity (6)
System\Data\Mapping\MetadataMappingHasherVisitor.HashSourceBuilder.cs (6)
142
if(
_cachedBuffer
== null)
148
else if (
_cachedBuffer
.Length < byteCount)
154
int bufferSize = Math.Max(
_cachedBuffer
.Length + (
_cachedBuffer
.Length / 2), byteCount);
161
start += Encoding.Unicode.GetBytes(s, 0, s.Length,
_cachedBuffer
, start);
165
byte[] hash = _hashAlgorithm.ComputeHash(
_cachedBuffer
, 0, byteCount);