pub fn absorb(&mut self, trits: Trits64) {
        assert_eq!(trits.lo.len(), trits.hi.len());

        let mut length = trits.lo.len();
        let mut offset = 0;

        loop {
            let chunk_length = {
                if length < self.hash_length {
                    length
                } else {
                    self.hash_length
                }
            };

            self.state.lo[0..chunk_length]
                .copy_from_slice(&trits.lo[offset..offset + chunk_length]);

            self.state.hi[0..chunk_length]
                .copy_from_slice(&trits.hi[offset..offset + chunk_length]);

            self.transform();

            offset += chunk_length;

            if length > chunk_length {
                length -= chunk_length;
            } else {
                break;
            }
        }
    }
//
// * Determines number of inputted trits
// * loops through the input trits in chunks of '243', copies a chunk into the state
//   and transforms it.
Determines number of inputted trits
loops through the input trits in chunks of '243', copies a chunk into the state
and transforms it.
Determines number of inputted trits loops through the input trits in chunks of ' 243 ' copies a chunk into the state and transforms it .
pub fn absorb(&mut self, trits: Trits64) {
        assert_eq!(trits.lo.len(), trits.hi.len());
        let mut length = trits.lo.len();
        let mut offset = 0;
        loop {
            let chunk_length = {
                if length < self.hash_length {
                    length
                } else {
                    self.hash_length
                }
            };
            self.state.lo[0..chunk_length]
                .copy_from_slice(&trits.lo[offset..offset + chunk_length]);
            self.state.hi[0..chunk_length]
                .copy_from_slice(&trits.hi[offset..offset + chunk_length]);
            self.transform();
            offset += chunk_length;
            if length > chunk_length {
                length -= chunk_length;
            } else {
                break;
            }
        }
    }
pub fn absorb ( & mut self , trits : Trits64 ) { assert_eq ! ( trits lo len ( ) trits hi len ( ) ) ; let mut length = trits . lo . len ( ) ; let mut offset = 0 ; loop { let chunk_length = { if length < self . hash_length { length } else { self . hash_length } } ; self . state . lo [ 0 .. chunk_length ] . copy_from_slice ( & trits . lo [ offset .. offset + chunk_length ] ) ; self . state . hi [ 0 .. chunk_length ] . copy_from_slice ( & trits . hi [ offset .. offset + chunk_length ] ) ; self . transform ( ) ; offset += chunk_length ; if length > chunk_length { length -= chunk_length ; } else { break ; } } }
Determines number of inputted trits
 loops through the input trits in chunks of '243', copies a chunk into the state
and transforms it.
Determines number of inputted trits loops through the input trits in chunks of ' 243 ' copies a chunk into the state and transforms it .
&mut self
trits
Trits64
&mut self
trits
Trits64