@staticmethod
def build_array(btag, eom, chunk):
    size = len(chunk)
    return (((struct.pack('BBBx', MsgID.dev_dep_msg_out, btag, ((~ btag) & 255)) + struct.pack('<LBxxx', size, eom)) + chunk) + (b'\x00' * ((4 - size) % 4)))
@staticmethod
def build_array(btag, eom, chunk):
    size = len(chunk)
    return (((struct.pack('BBBx', MsgID.dev_dep_msg_out, btag, ((~ btag) & 255)) + struct.pack('<LBxxx', size, eom)) + chunk) + (b'\x00' * ((4 - size) % 4)))