MCPcopy
hub / github.com/libgdx/libgdx / writeString_slow

Method writeString_slow

gdx/src/com/badlogic/gdx/utils/DataOutput.java:82–96  ·  view source on GitHub ↗
(String value, int charCount, int charIndex)

Source from the content-addressed store, hash-verified

80 }
81
82 private void writeString_slow (String value, int charCount, int charIndex) throws IOException {
83 for (; charIndex < charCount; charIndex++) {
84 int c = value.charAt(charIndex);
85 if (c <= 0x007F) {
86 write((byte)c);
87 } else if (c > 0x07FF) {
88 write((byte)(0xE0 | c >> 12 & 0x0F));
89 write((byte)(0x80 | c >> 6 & 0x3F));
90 write((byte)(0x80 | c & 0x3F));
91 } else {
92 write((byte)(0xC0 | c >> 6 & 0x1F));
93 write((byte)(0x80 | c & 0x3F));
94 }
95 }
96 }
97}

Callers 1

writeStringMethod · 0.95

Calls 2

writeMethod · 0.95
charAtMethod · 0.45

Tested by

no test coverage detected