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

◆ WriteByte()

override void System.IO.MemoryStream.WriteByte ( byte value)
inlinevirtualinherited

Reimplemented from System.IO.Stream.

Reimplemented in System.Net.Http.HttpContent.LimitMemoryStream, and System.IO.UnmanagedMemoryStreamWrapper.

Definition at line 667 of file MemoryStream.cs.

668 {
671 if (_position >= _length)
672 {
673 int num = _position + 1;
674 bool flag = _position > _length;
675 if (num >= _capacity && EnsureCapacity(num))
676 {
677 flag = false;
678 }
679 if (flag)
680 {
682 }
683 _length = num;
684 }
686 }
bool EnsureCapacity(int value)

References System.IO.MemoryStream._buffer, System.IO.MemoryStream._capacity, System.IO.MemoryStream._length, System.IO.MemoryStream._position, System.Array.Clear(), System.IO.MemoryStream.EnsureCapacity(), System.IO.MemoryStream.EnsureNotClosed(), System.IO.MemoryStream.EnsureWriteable(), and System.value.