Set buffer to a copy of some raw data.
@param buffer The buffer to set @param data The data to copy into the buffer @param datalen The length of the data to copy into the buffer @return 0 on success, -1 on allocation failure
See Implementation
Set buffer to a copy of some raw data.
@param buffer The buffer to set @param data The data to copy into the buffer @param datalen The length of the data to copy into the buffer @return 0 on success, -1 on allocation failure