setToBytes

open fun setToBytes(size: Int, bytes: Array<Byte>)

The post data element will represent bytes. The bytes passed in will be copied.