I2C data transmission

Hi,
I'm developing ESP32 to Arduino mega I2C data communication system using I2CTransfer library. When I feed data ex. 5,1,1,2,3,4,5,6,7 to the following struct as a string and it is only receiving first 5 bytes from the receiving side. Why is that? Can someone explain me what is the reason? I/m sending this struct

struct  __attribute__((packed)) SerialPacket
{
  uint8_t count; /*Number of relays */
  uint8_t state; /*state -> 1 -->  */
  uint8_t configuration; /* 1 -> SetRelays, 0-> Clear all */
  uint8_t relayIDS[32]; /* Relay ID Array */
}m_packet;

Please post an example sketch that illustrates the problem