Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3842

Show
Ignore:
Timestamp:
08/03/08 15:22:35 (4 months ago)
Author:
kris
Message:

fixes #1187 :: Digest.update() return Digest instead of void

Thanks, and kudos to kylefurlong

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/io/digest/Crc32.d

    r3836 r3842  
    7878 
    7979        /** */ 
    80         override void update (void[] input) 
     80        override Crc32 update (void[] input) 
    8181        { 
    8282                uint r = result; // DMD optimization 
     
    9898                } 
    9999                result = r; 
     100                return this; 
    100101        } 
    101102 
  • trunk/tango/io/digest/Digest.d

    r2878 r3842  
    6464        *********************************************************************/ 
    6565     
    66         abstract void update(void[] data); 
     66        abstract Digest update (void[] data); 
    6767     
    6868        /******************************************************************** 
  • trunk/tango/io/digest/MerkleDamgard.d

    r2809 r3842  
    215215        ***********************************************************************/ 
    216216 
    217         void update (void[] input) 
     217        MerkleDamgard update (void[] input) 
    218218        { 
    219219                auto block = blockSize(); 
     
    235235                   buffer[0..data.length-i] = data[i..data.length]; 
    236236                   } 
     237                return this; 
    237238        } 
    238239