Improves performance of decode by using a TypedArray for the message buffer.