FlatBuffers.ByteBuffer.AssertOffsetAndLength C# (CSharp) Method

AssertOffsetAndLength() private method

private AssertOffsetAndLength ( int offset, int length ) : void
offset int
length int
return void
        private void AssertOffsetAndLength(int offset, int length)
        {
            #if !BYTEBUFFER_NO_BOUNDS_CHECK
            if (offset < 0 ||
                offset > _buffer.Length - length)
                throw new ArgumentOutOfRangeException();
            #endif
        }