public virtual void WriteBytes(byte[] bytes) { PreWrite(); _currentBuffer.WriteBytes(bytes); PostWrite(); }