/** {@inheritDoc} */ public void writeByte(int value) { int writeAt = cursor; int end = writeAt + 1; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; cursor = end; }
/** {@inheritDoc} */ public void writeByte(int value) { int writeAt = cursor; int end = writeAt + 1; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; cursor = end; }
/** {@inheritDoc} */ public void writeByte(int value) { int writeAt = cursor; int end = writeAt + 1; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; cursor = end; }
/** {@inheritDoc} */ public void writeByte(int value) { int writeAt = cursor; int end = writeAt + 1; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; cursor = end; }
/** {@inheritDoc} */ public void writeByte(int value) { int writeAt = cursor; int end = writeAt + 1; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; cursor = end; }
/** {@inheritDoc} */ public void writeByte(int value) { int writeAt = cursor; int end = writeAt + 1; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; cursor = end; }
/** {@inheritDoc} */ @Override public void writeByte(int value) { int writeAt = cursor; int end = writeAt + 1; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; cursor = end; }
/** {@inheritDoc} */ public void writeShort(int value) { int writeAt = cursor; int end = writeAt + 2; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; data[writeAt + 1] = (byte) (value >> 8); cursor = end; }
/** {@inheritDoc} */ public void writeShort(int value) { int writeAt = cursor; int end = writeAt + 2; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; data[writeAt + 1] = (byte) (value >> 8); cursor = end; }
/** {@inheritDoc} */ @Override public void writeShort(int value) { int writeAt = cursor; int end = writeAt + 2; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; data[writeAt + 1] = (byte) (value >> 8); cursor = end; }
/** {@inheritDoc} */ public void writeShort(int value) { int writeAt = cursor; int end = writeAt + 2; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; data[writeAt + 1] = (byte) (value >> 8); cursor = end; }
/** {@inheritDoc} */ public void writeShort(int value) { int writeAt = cursor; int end = writeAt + 2; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; data[writeAt + 1] = (byte) (value >> 8); cursor = end; }
/** {@inheritDoc} */ public void writeShort(int value) { int writeAt = cursor; int end = writeAt + 2; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; data[writeAt + 1] = (byte) (value >> 8); cursor = end; }
/** {@inheritDoc} */ @Override public void writeShort(int value) { int writeAt = cursor; int end = writeAt + 2; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } data[writeAt] = (byte) value; data[writeAt + 1] = (byte) (value >> 8); cursor = end; }
/** {@inheritDoc} */ public void write(ByteArray bytes) { int blen = bytes.size(); int writeAt = cursor; int end = writeAt + blen; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } bytes.getBytes(data, writeAt); cursor = end; }
/** {@inheritDoc} */ public void write(ByteArray bytes) { int blen = bytes.size(); int writeAt = cursor; int end = writeAt + blen; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } bytes.getBytes(data, writeAt); cursor = end; }
/** {@inheritDoc} */ public void write(ByteArray bytes) { int blen = bytes.size(); int writeAt = cursor; int end = writeAt + blen; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } bytes.getBytes(data, writeAt); cursor = end; }
/** {@inheritDoc} */ public void write(ByteArray bytes) { int blen = bytes.size(); int writeAt = cursor; int end = writeAt + blen; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } bytes.getBytes(data, writeAt); cursor = end; }
/** {@inheritDoc} */ public void write(ByteArray bytes) { int blen = bytes.size(); int writeAt = cursor; int end = writeAt + blen; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } bytes.getBytes(data, writeAt); cursor = end; }
/** {@inheritDoc} */ @Override public void write(ByteArray bytes) { int blen = bytes.size(); int writeAt = cursor; int end = writeAt + blen; if (stretchy) { ensureCapacity(end); } else if (end > data.length) { throwBounds(); return; } bytes.getBytes(data, writeAt); cursor = end; }