Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  04 Apr 2024, Konstantin Olchanski, Info, MIDAS RPC data format 
    Reply  24 Apr 2024, Konstantin Olchanski, Info, MIDAS RPC data format 
    Reply  02 Jun 2024, Konstantin Olchanski, Info, MIDAS RPC data format 
Message ID: 2782     Entry time: 02 Jun 2024     In reply to: 2735
Author: Konstantin Olchanski 
Topic: Info 
Subject: MIDAS RPC data format 
> MIDAS RPC data format.
> 3) RPC reply
> 3.1) header:
> 3.2) followed by data for RPC_OUT parameters:
> 
> data sizes and encodings are the same as for RPC_IN parameters.

Correction:

RPC_VARARRAY data encoding for data returned by RPC is different from data sent to RPC:

4 bytes of arg_size (before 8-byte alignement), (for data sent to RPC, it's 4 bytes of param_size, after 8-byte alignment)
4 bytes of padding
param_size of data

K.O.

P.S. bug/discrepancy caught by GCC/LLVM address sanitizer.
ELOG V3.1.4-2e1708b5