internal Hasher(IIonHasherProvider hasherProvider) { this.hasherProvider = hasherProvider; this.currentHasher = new Serializer(hasherProvider.NewHasher(), 0); this.hasherStack = new Stack <Serializer>(); this.hasherStack.Push(this.currentHasher); }
internal StructSerializer(IIonHasher hashFunction, int depth, IIonHasherProvider hashFunctionProvider) : base(hashFunction, depth) { this.scalarSerializer = new Serializer(hashFunctionProvider.NewHasher(), depth + 1); this.fieldHashes = new List <byte[]>(); }