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

Method StringToData

src/pkgDm/Dm2Java.java:1148–1150  ·  view source on GitHub ↗

把字符串转换成二进制形式 @param value 需要转化的字符串 @param type 0: 返回Ascii表达的字符串;1: 返回Unicode表达的字符串 @return 字符串形式表达的二进制数据. 可以用于WriteData FindData FindDataEx等接口

(String value,int type)

Source from the content-addressed store, hash-verified

1146 * @return 字符串形式表达的二进制数据. 可以用于WriteData FindData FindDataEx等接口
1147 */
1148 public String StringToData(String value,int type){
1149 return Dispatch.call(dm, "StringToData",value,type).getString();
1150 }
1151
1152 /**
1153 * 对指定地址写入二进制数据

Callers

nothing calls this directly

Calls 2

callMethod · 0.95
getStringMethod · 0.45

Tested by

no test coverage detected