public void add ( int pos , Name name ) { if ( pos > MAX_POINTER ) return ; int row = ( name . hashCode ( ) & 0x7FFFFFFF ) % TABLE_SIZE ; Entry entry = new Entry ( ) ; entry . name = name ; entry . pos = pos ; entry . next = table [ row ] ; table [ row ] = entry ; if ( verbose ) System . err . println ( "Adding " + name + " at " + pos ) ; }
Adds a compression entry mapping a name to a position in a message .