I'm looking for an assembly optimized function in the bytes package to perform the same thing than C++ std::find_first_not_of function, that is, iterating over a slice of bytes and stopping at the first byte that is not in the byte i'm looking for, or not in the set of bytes i'm looking for. I know I could easily code it myself and that's what i'll do if such thing doesn't exist in Go standard library.
Why I need such a function is to perform byte scanning in relatively big images for a quadtree compression library I'm coding. As I was happy to find the bytes.IndexXXX series of functions are highly assembly optimized (also with SSE), I was also surprised to not find the inverse series of functions, like bytes.IndexNotByte, bytes.IndexNotRune, etc. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.