Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteTo()

override void System.IO.UnmanagedMemoryStreamWrapper.WriteTo ( Stream stream)
inlinevirtual

Reimplemented from System.IO.MemoryStream.

Definition at line 120 of file UnmanagedMemoryStreamWrapper.cs.

121 {
122 if (stream == null)
123 {
124 throw new ArgumentNullException("stream", SR.ArgumentNull_Stream);
125 }
126 byte[] array = ToArray();
127 stream.Write(array, 0, array.Length);
128 }

References System.SR.ArgumentNull_Stream, System.array, System.stream, and System.IO.UnmanagedMemoryStreamWrapper.ToArray().