MCPcopy Create free account
hub / github.com/Hiro420/NikkeTools / write

Method write

UnLuac/src/unluac/parse/LStringType.java:63–75  ·  view source on GitHub ↗
(OutputStream out, BHeader header, LString string)

Source from the content-addressed store, hash-verified

61 }
62
63 @Override
64 public void write(OutputStream out, BHeader header, LString string) throws IOException {
65 int len = string.value.length();
66 if(string == LString.NULL) {
67 header.sizeT.write(out, header, header.sizeT.create(0));
68 } else {
69 header.sizeT.write(out, header, header.sizeT.create(len + 1));
70 for(int i = 0; i < len; i++) {
71 out.write(string.value.charAt(i));
72 }
73 out.write(0);
74 }
75 }
76}
77
78class LStringType53 extends LStringType {

Callers 2

writeMethod · 0.45
writeMethod · 0.45

Calls 2

lengthMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected