internal void AddBytes(Int32 bytes) { checked { m_currentBytes += bytes; } if (m_currentBytes > m_maxBytes) { throw new InvalidOperationException(TemplateStrings.MaxObjectSizeExceeded()); } }
internal void AddBytes(Int32 bytes) { checked { m_currentBytes += bytes; } if (m_currentBytes > m_maxBytes) { throw new InvalidOperationException(TemplateStrings.MaxObjectSizeExceeded()); } }