PM.BLL/Communication/CommandWriter.cs
/// <summary>
/// Ensures that space in the buffer is available
/// </summary>
/// <param name="spaceRequired">The space required</param>
Ensures that space in the buffer is available
Ensures that space in the buffer is available
private void EnsureAvailableSpace(int spaceRequired)
        {
            if (PositionsRemaining() - spaceRequired <= 0)
            {
                throw new InvalidOperationException("Can not write bytes. Buffer will be exceeded.");
            }
        }
private void EnsureAvailableSpace ( int spaceRequired ) { if ( PositionsRemaining ( ) - spaceRequired <= 0 ) { throw new InvalidOperationException ( " " ) ; } }
Ensures that space in the buffer is available
Ensures that space in the buffer is available
spaceRequired
int
The space required
The space required