NSArrays comparison
NSArrays comparison
- Subject: NSArrays comparison
- From: XTAL <email@hidden>
- Date: Sat, 4 Mar 2006 22:10:41 +0100
hi,
I'm building a bus analyzer for an in-car CD-changer, and I store the
binary messages in NSArrays as 'char' NSValues. now my question would
be: can I store "wildcards" in NSArrays, so that the compare function
can handle them?
a short example, why I need this:
18 0A 68 39 00 02 00 3F 00 01 01 7E
this message contains parameters and a checksum, which change all the
time. so I'd like to store an array with wildcards:
XX 0A XX 39 00 02 00 3F 00 XX XX XX
my goal would be, to store such arrays, and compare them to incoming
messages, so I can easily recognize commands. is this possible? (this
would be much more easier than to examine the byte values one by one.)
XTAL
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden