MCPcopy Create free account
hub / github.com/apache/tvm / recvString

Method recvString

jvm/core/src/main/java/org/apache/tvm/rpc/Utils.java:81–86  ·  view source on GitHub ↗
(InputStream in)

Source from the content-addressed store, hash-verified

79 }
80
81 public static String recvString(InputStream in) throws IOException {
82 String recvString = null;
83 int len = wrapBytes(Utils.recvAll(in, 4)).getInt();
84 recvString = decodeToStr(Utils.recvAll(in, len));
85 return recvString;
86 }
87
88 public static void sendString(OutputStream out, String string) throws IOException {
89 out.write(toBytes(string.length()));

Callers 4

runMethod · 0.95
connectToTrackerMethod · 0.95
registerMethod · 0.95
needRefreshKeyMethod · 0.95

Calls 3

wrapBytesMethod · 0.95
recvAllMethod · 0.95
decodeToStrMethod · 0.95

Tested by

no test coverage detected