For what purpose do you need to find a byte sequence? Is it a delimiter of
some sort? In which case, perhaps a
https://netty.io/4.0/api/io/netty/handler/codec/DelimiterBasedFrameDecoder.html
is
what you need?

Also, I don't think that the interface necessarily prevents you from
identifying a sequence, simply stop when you have observed the sequence,
rather than just the byte in question.

Rogan


On Fri, Sep 15, 2017 at 3:17 PM Leonardo Gomes <[email protected]>
wrote:

> Hello,
>
> I'm wondering if there's any implementation out there of a Netty
> ByteProcessor that allows to find a byte sequence, rather than a single
> byte. I couldn't find anything on Netty itself. Found this one, but it
> looks unfinished:
> https://gist.github.com/nickman/5502143
>
> If nothing exists, would that be a welcome contribution? Proposing a
> pull-request to Netty is always a good learning exercise :)
>
> Cheers,
> Leo.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Netty discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/netty/CAEAdJ9raUKRnmvBdLMfTudZg_WewdG-AkfjZLT9Jp5b%2BxAntYw%40mail.gmail.com
> <https://groups.google.com/d/msgid/netty/CAEAdJ9raUKRnmvBdLMfTudZg_WewdG-AkfjZLT9Jp5b%2BxAntYw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/netty/CAOYdKdhbpZKPqJZQ6AjaWJocOJAjqLADMByNEmQEHWCx7wMc-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to