- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.data.jimage.ImageStringsReader
-
- 所有已实现的接口:
ImageStrings
public class ImageStringsReader extends Object implements ImageStrings
-
-
字段概要
字段 修饰符和类型 字段 说明 static int
HASH_MULTIPLIER
static int
POSITIVE_MASK
-
方法概要
修饰符和类型 方法 说明 int
add(String string)
String
get(int offset)
static int
hashCode(String s)
static int
hashCode(String s, int seed)
static int
hashCode(String module, String name)
static int
hashCode(String module, String name, int seed)
static byte[]
mutf8FromString(String string)
static String
stringFromByteBuffer(ByteBuffer buffer)
static String
stringFromMUTF8(byte[] bytes)
static String
stringFromMUTF8(byte[] bytes, int offset, int count)
static int
unmaskedHashCode(String s, int seed)
-
-
-
方法详细资料
-
get
public String get(int offset)
- 指定者:
get
在接口中ImageStrings
-
add
public int add(String string)
- 指定者:
add
在接口中ImageStrings
-
hashCode
public static int hashCode(String s)
-
hashCode
public static int hashCode(String s, int seed)
-
unmaskedHashCode
public static int unmaskedHashCode(String s, int seed)
-
stringFromMUTF8
public static String stringFromMUTF8(byte[] bytes, int offset, int count)
-
stringFromMUTF8
public static String stringFromMUTF8(byte[] bytes)
-
stringFromByteBuffer
public static String stringFromByteBuffer(ByteBuffer buffer)
-
mutf8FromString
public static byte[] mutf8FromString(String string)
-
-