Writes version data in the beginning of provided data buffer. Grows buffer if it is too small. Call this function before actually writing any useful payload to the buffer or it will be overwritten.
any byte buffer, will be modified to start with version info
version number to inject
slice of data after the version data. Use that slice to add actual payload
See Implementation
Writes version data in the beginning of provided data buffer. Grows buffer if it is too small. Call this function before actually writing any useful payload to the buffer or it will be overwritten.