net.sf.jni4net.nio.BufferN.checkBounds C# (CSharp) Method

checkBounds() static private method

static private checkBounds ( int off, int len, int size ) : void
off int
len int
size int
return void
        internal static void checkBounds(int off, int len, int size)
        {
            // package-private
            if ((off | len | (off + len) | (size - (off + len))) < 0)
                throw new IndexOutOfBoundsException();
        }