예제 #1
0
 private Blake3ChunkState()
 {
     _n            = Blake3Node.DefaultBlake3Node();
     _block        = new byte[BlockSizeInBytes];
     _blockLen     = 0;
     BytesConsumed = 0;
 }
예제 #2
0
            } // end function Read

            public static Blake3OutputReader DefaultBlake3OutputReader()
            {
                Blake3OutputReader result = new Blake3OutputReader();

                result.Block  = new byte[BlockSizeInBytes];
                result.N      = Blake3Node.DefaultBlake3Node();
                result.Offset = 0;

                return(result);
            } // end function Blake3OutputReader
예제 #3
0
            } // end function Update

            public static Blake3ChunkState DefaultBlake3ChunkState()
            {
                Blake3ChunkState result = new Blake3ChunkState();

                result.N             = Blake3Node.DefaultBlake3Node();
                result.Block         = new byte[BlockSizeInBytes];
                result.BlockLen      = 0;
                result.BytesConsumed = 0;

                return(result);
            } // end function DefaultBlake3ChunkState
예제 #4
0
 private Blake3OutputReader()
 {
     N      = Blake3Node.DefaultBlake3Node();
     _block = new byte[BlockSizeInBytes];
     Offset = 0;
 }