Ejemplo n.º 1
0
 public int FindLastIndex(Predicate <byte> match)
 {
     if (!_terminated)
     {
         ThrowReplay();
     }
     return(_buffer.FindLastIndex(match));
 }
Ejemplo n.º 2
0
 public static int FindLastIndex(this IByteBuffer buf, Predicate <byte> match)
 {
     if (buf is IByteBuffer2 buffer2)
     {
         return(buffer2.FindLastIndex(match));
     }
     return(buf.FindLastIndex(buf.ReaderIndex, buf.ReadableBytes, match));
 }