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

Method write

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

Source from the content-addressed store, hash-verified

110 }
111
112 @Override
113 public void write(OutputStream out, BHeader header, LString string) throws IOException {
114 int len = string.value.length() + 1;
115 if(len < 0xFF) {
116 out.write((byte)len);
117 } else {
118 out.write(0xFF);
119 header.sizeT.write(out, header, header.sizeT.create(len));
120 }
121 for(int i = 0; i < string.value.length(); i++) {
122 out.write(string.value.charAt(i));
123 }
124 }
125}
126
127class LStringType54 extends LStringType {

Callers

nothing calls this directly

Calls 3

lengthMethod · 0.80
writeMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected