Package jp.gr.java_conf.dangan.util.lha
Class HashShort
java.lang.Object
jp.gr.java_conf.dangan.util.lha.HashShort
- All Implemented Interfaces:
HashMethod
?f?[?^?p?^????????2?o?C?g????
0 ?` 4095 ???n?b?V???l?????????n?b?V???????B
-- revision history -- $Log: HashShort.java,v $ Revision 1.0 2002/08/05 00:00:00 dangan add to version control [change] HashMethod ???C???^?t?F?C?X???X???????????C???e?t?F?C?X???X?B [maintanance] ?\?[?X???? ?^?u?p?~ ???C?Z???X????C??
- Version:
- $Revision: 1.0 $
- Author:
- $Author: dangan $
-
Constructor Summary
ConstructorsConstructorDescriptionHashShort
(byte[] TextBuffer) ?f?[?^?p?^????????2?o?C?g???? 0x000 ?` 0xFFF ???????l???????? ?n?b?V?????????\?z?????B -
Method Summary
Modifier and TypeMethodDescriptionint
hash
(int position) ?n?b?V???????B ?R???X?g???N?^???n?????? TextBuffer ?? position ?????? ?f?[?^?p?^???? hash?l?????????Bint
?n?b?V?????????n?b?V???l???????????????g?p?????o?C?g?????????B
?}???n?b?V?????????f?[?^?p?^???????? 2 ?o?C?g???f?[?^???? ?n?b?V???l?????????????A?}?????\?b?h?????? 2 ???????Bint
?n?b?V???e?[?u?????T?C?Y???????B
?}???n?b?V???????? 0x000 ?` 0xFFF ???????n?b?V???l???????????? ?}?????\?b?h?????? 0x1000(4096) ???????B
-
Constructor Details
-
HashShort
public HashShort(byte[] TextBuffer) ?f?[?^?p?^????????2?o?C?g???? 0x000 ?` 0xFFF ???????l???????? ?n?b?V?????????\?z?????B- Parameters:
TextBuffer
- LZSS???k?p???o?b?t?@?B Hash?l?????????????????p???g?p?????B
-
-
Method Details
-
hash
public int hash(int position) ?n?b?V???????B ?R???X?g???N?^???n?????? TextBuffer ?? position ?????? ?f?[?^?p?^???? hash?l?????????B- Specified by:
hash
in interfaceHashMethod
- Parameters:
position
- ?f?[?^?p?^?????J?n???u- Returns:
- ?n?b?V???l
-
hashRequires
public int hashRequires()?n?b?V?????????n?b?V???l???????????????g?p?????o?C?g?????????B
?}???n?b?V?????????f?[?^?p?^???????? 2 ?o?C?g???f?[?^???? ?n?b?V???l?????????????A?}?????\?b?h?????? 2 ???????B- Specified by:
hashRequires
in interfaceHashMethod
- Returns:
- ???? 2
-
tableSize
public int tableSize()?n?b?V???e?[?u?????T?C?Y???????B
?}???n?b?V???????? 0x000 ?` 0xFFF ???????n?b?V???l???????????? ?}?????\?b?h?????? 0x1000(4096) ???????B- Specified by:
tableSize
in interfaceHashMethod
- Returns:
- ???? 0x1000(4096)
-