Add methods to check whether an index/offset is valid
Add methods to check whether an index/offset is valid

modulexcite/dnlib,ZixiangBoy/dnlib,kiootic/dnlib,yck1509/dnlib,jorik041/dnlib,picrap/dnlib,0xd4d/dnlib,ilkerhalil/dnlib,Arthur2e5/dnlib