@Override public void write(int b) { checkSizeAndGrow(Bytes.SIZEOF_BYTE); buf[this.pos] = (byte) b; this.pos++; }
@Override public void write(byte[] b, int off, int len) { checkSizeAndGrow(len); System.arraycopy(b, off, this.buf, this.pos, len); this.pos += len; }
@Override public void writeInt(int i) { checkSizeAndGrow(Bytes.SIZEOF_INT); Bytes.putInt(this.buf, this.pos, i); this.pos += Bytes.SIZEOF_INT; }
@Override public void write(ByteBuffer b, int off, int len) { checkSizeAndGrow(len); ByteBufferUtils.copyFromBufferToArray(this.buf, b, off, this.pos, len); this.pos += len; }
@Override public void write(int b) { checkSizeAndGrow(Bytes.SIZEOF_BYTE); buf[this.pos] = (byte) b; this.pos++; }
@Override public void write(int b) { checkSizeAndGrow(Bytes.SIZEOF_BYTE); buf[this.pos] = (byte) b; this.pos++; }
@Override public void write(byte[] b, int off, int len) { checkSizeAndGrow(len); System.arraycopy(b, off, this.buf, this.pos, len); this.pos += len; }
@Override public void write(byte[] b, int off, int len) { checkSizeAndGrow(len); System.arraycopy(b, off, this.buf, this.pos, len); this.pos += len; }
@Override public void write(ByteBuffer b, int off, int len) { checkSizeAndGrow(len); ByteBufferUtils.copyFromBufferToArray(this.buf, b, off, this.pos, len); this.pos += len; }
@Override public void writeInt(int i) { checkSizeAndGrow(Bytes.SIZEOF_INT); Bytes.putInt(this.buf, this.pos, i); this.pos += Bytes.SIZEOF_INT; }
@Override public void writeInt(int i) { checkSizeAndGrow(Bytes.SIZEOF_INT); Bytes.putInt(this.buf, this.pos, i); this.pos += Bytes.SIZEOF_INT; }
@Override public void write(ByteBuffer b, int off, int len) { checkSizeAndGrow(len); ByteBufferUtils.copyFromBufferToArray(this.buf, b, off, this.pos, len); this.pos += len; }