Class methods (public)

static ImqBoolean copy( char * destination-buffer, const size_t length, const char * source-buffer, const char pad = 0 );

Copies up to length bytes from source-buffer to destination-buffer. If the number of characters in source-buffer is insufficient, fills the remaining space in destination-buffer with pad characters. source-buffer can be zero. destination-buffer can be zero if length is also zero. Any error codes are lost. This method returns TRUE if successful.

static ImqBoolean copy ( char * destination-buffer, const size_t length, const char * source-buffer, ImqError & error-object, const char pad = 0 );

Copies up to length bytes from source-buffer to destination-buffer. If the number of characters in source-buffer is insufficient, fills the remaining space in destination-buffer with pad characters. source-buffer can be zero. destination-buffer can be zero if length is also zero. Any error codes are set in error-object. This method returns TRUE if successful.