Allows spikes to be transmitted between processors.
For transmission between processors SpikeObjects must be packaged up into buffers that can fit into MidiEvents The following two methods can be used to package the above spike object into a buffer and unpackage a buffer into a SpikeObject.
The buffer is LittleEndian (thank Intel) and the byte order is the same as the SpikeObject definition. IE. the first 2 bytes are the timestamp, the next two bytes are the source identifier, etc... with the last set of bytes corresponding to the thresholds of the different channels.
Finally the buffer will have an additional byte on the end that is used to check the integerity of the entire package. The way this works is the buffer is divivded up into a series of 16 bit unsigned integers. The sum of all these integers (except the last 16 bit integer) is taken and the sum should equal that 16 bit integer. If not then the data is corrupted and should be dropped or dealt with another way.