GSF.IO.BlockAllocatedMemoryStream.WriteTo C# (CSharp) Метод

WriteTo() публичный Метод

Writes the entire stream into destination, regardless of Position, which remains unchanged.
The stream is closed.
public WriteTo ( Stream destination ) : void
destination Stream The stream onto which to write the current contents.
Результат void
        public void WriteTo(Stream destination)
        {
            if (m_disposed)
                throw new ObjectDisposedException("BlockAllocatedMemoryStream", "The stream is closed.");

            long originalPosition = m_position;
            m_position = 0;

            CopyTo(destination);

            m_position = originalPosition;
        }