UELib.Core.UObject.AssertEOS C# (CSharp) Method

AssertEOS() protected method

protected AssertEOS ( int size, string testSubject = "" ) : void
size int
testSubject string
return void
        protected void AssertEOS( int size, string testSubject = "" )
        {
            if( size > (_Buffer.Length - _Buffer.Position) )
            {
                throw new DeserializationException( Name + ": Allocation past end of stream detected! Size:" + size + " Subject:" + testSubject );
            }
            //System.Diagnostics.Debug.Assert( size <= (_Buffer.Length - _Buffer.Position), Name + ": Allocation past end of stream detected! " + size );
        }