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

Method write

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

Source from the content-addressed store, hash-verified

38 }
39
40 public void write(int c) {
41 if (buffer == null) {
42 buffer = new byte[BufferSize];
43 } else if (position >= buffer.length) {
44 flushBuffer();
45 buffer = new byte[BufferSize];
46 }
47
48 buffer[position++] = (byte) (c & 0xFF);
49 ++ length;
50 }
51
52 private byte[] copy(byte[] b, int offset, int length) {
53 byte[] array = new byte[length];

Callers 3

encodeMethod · 0.95
encodeMethod · 0.95
findClassMethod · 0.95

Calls 4

flushBufferMethod · 0.95
arraycopyMethod · 0.95
chainCellMethod · 0.95
copyMethod · 0.95

Tested by

no test coverage detected