package com.its.vms.xnettcp.vms.protocol.impl;

import com.its.vms.dto.TbVmsCtlrDto;
import lombok.Data;

@Data
public class VmsResFramePacket {

    private TbVmsCtlrDto vmsObj;
    private byte[] packet;
    private int msgLen;

    public VmsResFramePacket(TbVmsCtlrDto vmsObj, byte[] packet, int msgLen) {
        // 배열이 비었는지는 체크하지 않음.
        this.vmsObj = vmsObj;
        this.msgLen = msgLen;
        this.packet = new byte[msgLen];
        System.arraycopy(packet, 0, this.packet, 0, msgLen);
    }
}
