private void WriteIdSlotPairsTo(IList slots, ByteArrayBuffer buffer) { buffer.WriteInt(slots.Count); for (IEnumerator idSlotPairIter = slots.GetEnumerator(); idSlotPairIter.MoveNext( ); ) { Pair idSlotPair = ((Pair)idSlotPairIter.Current); int id = (((int)idSlotPair.first)); Slot slot = ((Slot)idSlotPair.second); if (Slot.IsNull(slot)) { buffer.WriteInt(id); buffer.WriteInt(0); continue; } ByteArrayBuffer slotBuffer = _transaction.LocalContainer().ReadBufferBySlot(slot); buffer.WriteInt(id); buffer.WriteInt(slot.Length()); buffer.WriteBytes(slotBuffer._buffer); } }
public virtual void WriteBytes(byte[] bytes) { PrepareWrite(bytes.Length); _delegate.WriteBytes(bytes); }
public void WriteBytes(byte[] bytes) { _target.WriteBytes(bytes); _source.IncrementOffset(bytes.Length); }