Added interface for sending generic array and length.

- Added interface for sending an array and length for sending messages.