public int FindLastIndex(Predicate <byte> match) { if (!_terminated) { ThrowReplay(); } return(_buffer.FindLastIndex(match)); }
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)); }