java icon indicating copy to clipboard operation
java copied to clipboard

17mon IP库解析代码

Results 15 java issues
Sort by recently updated
recently updated
newest added

Exception in thread "main" java.nio.BufferUnderflowException at java.base/java.nio.HeapByteBuffer.get(HeapByteBuffer.java:191) at com.ip.IPExt.load(IPExt.java:107) at com.ip.IPExt.load(IPExt.java:34) at com.ip.IPExt.main(IPExt.java:15)

Added maven folder structure and tests

for (start = start * 9 + 262144; start < max_comp_len; start += 9) { tmpInt = int2long(indexBuffer.getInt(start)); if (tmpInt >= ip2long_value) { index_offset = bytesToLong(b, indexBuffer.get(start + 6), indexBuffer.get(start...

Please review and accept the pull request if the changes are to your liking. Thank you.

https://github.com/17mon/java/blob/3dc7a5e91f1f0f3e408a73a781fe74f467fe8964/IPExt.java#L67 以下代码前面一半少了一个括号: (0xFF & indexBuffer.get(start + 7)

在spark中使用,在执行端会报序列化的问题?

GitHub changed the way Markdown headings are parsed, so this change fixes it. See [bryant1410/readmesfix](https://github.com/bryant1410/readmesfix) for more information. Tackles bryant1410/readmesfix#1

用IPCounty解析区县版datx格式地址库报错,ip data not found

I just downloaded the source code and data file. The IP.java runs very well, but the IPExt.java met some errors. Do you have any idea? ``` public static void main(String[]...