MaCRo.Communications.SerialHeader.GetBytes C# (CSharp) 메소드

GetBytes() 공개 메소드

public GetBytes ( ) : byte[]
리턴 byte[]
        public virtual byte[] GetBytes()
        {
            byte[] tmp = new byte[size];

            tmp[0] = magic;
            BitConverter.GetBytes(length).CopyTo(tmp, 1);
            BitConverter.GetBytes(CRC).CopyTo(tmp, 3);

            return tmp;
        }