public void Init()
        {
             hw = new Kdb4HeaderWriter();
             randomStream = new MemoryStream();

             dataWriter = new BinaryWriter(randomStream);
             

        }
示例#2
0
 public Kdb4Writer(Kdb4HeaderWriter headerWriter,
     IEncryptionEngine databaseEncryptor,
     IKeyTransformer keyTransformer,
     ICanSHA256Hash hasher,
     IGZipStreamFactory gZipFactory)
 {
     this._gZipFactory = gZipFactory;
     this._hasher = hasher;
     this._keyTransformer = keyTransformer;
     this._databaseEncryptor = databaseEncryptor;
     _headerWriter = headerWriter;
 }