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