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

Method write

classpath/java/io/BufferedOutputStream.java:34–40  ·  view source on GitHub ↗
(int c)

Source from the content-addressed store, hash-verified

32 }
33
34 public void write(int c) throws IOException {
35 if (position >= buffer.length) {
36 drain();
37 }
38
39 buffer[position++] = (byte) (c & 0xFF);
40 }
41
42 public void write(byte[] b, int offset, int length) throws IOException {
43 if (length > buffer.length - position) {

Callers

nothing calls this directly

Calls 3

drainMethod · 0.95
arraycopyMethod · 0.95
writeMethod · 0.65

Tested by

no test coverage detected