Esempio n. 1
0
 public override void WriteBytes(ByteArrayBuffer buffer, int blockedAddress, int addressOffset
                                 )
 {
     if (Deploy.debug && !Deploy.flush)
     {
         return;
     }
     if (Debug4.xbytes && Deploy.overwrite)
     {
         if (buffer.CheckXBytes())
         {
             CheckXBytes(blockedAddress, addressOffset, buffer.Length());
         }
         else
         {
             buffer.CheckXBytes(true);
         }
     }
     if (DTrace.enabled)
     {
         DTrace.WriteBytes.LogLength(blockedAddress + addressOffset, buffer.Length());
     }
     _file.BlockWrite(blockedAddress, addressOffset, buffer._buffer, buffer.Length());
     if (_backupFile != null)
     {
         _backupFile.BlockWrite(blockedAddress, addressOffset, buffer._buffer, buffer.Length
                                    ());
     }
 }
		public override void WriteBytes(ByteArrayBuffer buffer, int blockedAddress, int addressOffset
			)
		{
			if (Deploy.debug && !Deploy.flush)
			{
				return;
			}
			if (Debug4.xbytes && Deploy.overwrite)
			{
				if (buffer.CheckXBytes())
				{
					CheckXBytes(blockedAddress, addressOffset, buffer.Length());
				}
				else
				{
					buffer.CheckXBytes(true);
				}
			}
			if (DTrace.enabled)
			{
				DTrace.WriteBytes.LogLength(blockedAddress + addressOffset, buffer.Length());
			}
			_file.BlockWrite(blockedAddress, addressOffset, buffer._buffer, buffer.Length());
			if (_backupFile != null)
			{
				_backupFile.BlockWrite(blockedAddress, addressOffset, buffer._buffer, buffer.Length
					());
			}
		}