Is there a native (fast) method to compare the bytes of two blobs, similar to memcmp? I can a loop and compare bytes, but I wanted make sure I’m not missing some way that a Squirrel operator can do it directly.
I haven’t tried it, but converting to strings and doing a string compare might be quick. It could eat a fair bit of memory if the blobs are long.
e.g.
blob1.tostring()==blob2.tostring()
If you only want a partial comparison, blob.readstring() would be more appropriate. From my experience, string operations on similar data are faster than blob ones.