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

Method write

classpath/java/io/BufferedWriter.java:34–42  ·  view source on GitHub ↗
(char[] b, int offset, int length)

Source from the content-addressed store, hash-verified

32 }
33
34 public void write(char[] b, int offset, int length) throws IOException {
35 if (length > buffer.length - position) {
36 drain();
37 out.write(b, offset, length);
38 } else {
39 System.arraycopy(b, offset, buffer, position, length);
40 position += length;
41 }
42 }
43
44 public void flush() throws IOException {
45 drain();

Callers 1

mainMethod · 0.95

Calls 3

drainMethod · 0.95
arraycopyMethod · 0.95
writeMethod · 0.65

Tested by 1

mainMethod · 0.76