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

◆ Read() [2/2]

override int System.IO.Compression.SubReadStream.Read ( Span< byte > destination)
inlinevirtual

Reimplemented from System.IO.Stream.

Definition at line 104 of file SubReadStream.cs.

105 {
106 int length = destination.Length;
107 int num = destination.Length;
111 {
113 }
115 {
117 }
118 int num2 = _superStream.Read(destination.Slice(0, num));
120 return num2;
121 }
long Seek(long offset, SeekOrigin origin)
int Read(byte[] buffer, int offset, int count)

References System.IO.Compression.SubReadStream._endInSuperStream, System.IO.Compression.SubReadStream._positionInSuperStream, System.IO.Compression.SubReadStream._superStream, System.destination, System.length, System.IO.Stream.Position, System.IO.Stream.Read(), System.IO.Stream.Seek(), System.IO.Compression.SubReadStream.ThrowIfCantRead(), and System.IO.Compression.SubReadStream.ThrowIfDisposed().