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

import com.its.vds.dto.TbVdsCtlrDto;
import lombok.Data;

@Data
public class VdsResFramePacket {

    private TbVdsCtlrDto vdsObj;
    private byte[] packet;
    private int msgLen;

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