Terraria.MessageBuffer.Reset C# (CSharp) Method

Reset() public method

public Reset ( ) : void
return void
        public void Reset()
        {
            this.readBuffer = new byte[131070];
            this.writeBuffer = new byte[131070];
            this.writeLocked = false;
            this.messageLength = 0;
            this.totalData = 0;
            this.spamCount = 0;
            this.broadcast = false;
            this.checkBytes = false;
            this.ResetReader();
            this.ResetWriter();
        }