MCPcopy Create free account
hub / github.com/HelloBush/Java_MHXYdemo / IntToData

Method IntToData

src/pkgDm/Dm2Java.java:1049–1051  ·  view source on GitHub ↗

把整数转换成二进制形式 @param value 需要转化的整型数 @param type 取值如下:0: 4字节整形数 (一般都选这个);1: 2字节整形数;2: 1字节整形数 @return 字符串形式表达的二进制数据. 可以用于WriteData FindData FindDataEx等接口.

(int value,int type)

Source from the content-addressed store, hash-verified

1047 * @return 字符串形式表达的二进制数据. 可以用于WriteData FindData FindDataEx等接口.
1048 */
1049 public String IntToData(int value,int type){
1050 return Dispatch.call(dm, "IntToData",value,type).getString();
1051 }
1052
1053 /**
1054 * 读取指定地址的二进制数据

Callers

nothing calls this directly

Calls 2

callMethod · 0.95
getStringMethod · 0.45

Tested by

no test coverage detected