Add result code for frameData
frameData should return an error if the packet can't be created correctly. This happens if the dst buffer is too small.
frameData should return an error if the packet can't be created correctly. This happens if the dst buffer is too small.