processPayload

Process the incoming payload and returns the resulting byte[]. Note that
a new array might be allocated if the given array is not big enough. The
length of the new payload data can be obtained via
payloadLength().