pub fn copy_data(buf: &mut BytesMut, data: &[u8]) -> Result<(), Error>
Encodes a CopyData.
CopyData
Returns Error::Encode when the payload is larger than 2 GiB.
Error::Encode