MCPcopy Create free account
hub / github.com/ReadyTalk/avian / string

Method string

classpath/java/io/ObjectOutputStream.java:167–173  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

165 private int classHandle;
166
167 private void string(String s) throws IOException {
168 int length = s.length();
169 rawShort(length);
170 for (byte b : s.getBytes()) {
171 rawByte(b);
172 }
173 }
174
175 private static char primitiveTypeChar(Class type) {
176 if (type == Byte.TYPE) {

Callers 1

classDescMethod · 0.95

Calls 4

rawShortMethod · 0.95
rawByteMethod · 0.95
getBytesMethod · 0.80
lengthMethod · 0.65

Tested by

no test coverage detected