[Сериализуемый] [StructLayout (LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)] publi c класс ACNT_LOOKUP_REQUEST {
public uint ref_num;
public uint ret_status;
public uint ip_addr;
public uint ip_port;
public uint profit_center_id;
public uint term_id;
public char training_flag;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 7)]
public char[] future_flags;
public uint tender_id;
public uint verify_code_id;
public uint post_site_id;
public uint meal_period_id;
public uint check_type_id;
public uint emp_id;
public uint check_id;
public uint split_index;
public uint cover_cnt;
public int amount;
public char inquiry_type;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 31)]
public char[] inquiry_text;
public char more_flag;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 31)]
public char[] more_key;
public uint msr_format;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 81)]
public char[] msr_track1;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 41)]
public char[] msr_track2;
public char max_acnt_count;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 7)]
public char[] src_property_id;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 7)]
public char[] dest_property_id;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 210)]
public char[] future_pad;
public int bin_count;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 60)]
public ACNT_LOOKUP_BIN_DATA[] bin_data;
}
[Сериализуемый] [StructLayout (LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)] publi c class ACNT_LOOKUP_BIN_DATA {publi c ushort bin_type; // bin 1: тип publi c uint bin_id; // bin 1: id publi c int bin_amt; // bin 1: сумма publi c uint bin_qty; // корзина 1: количество}
размер структуры 1331 байт, но он показывает только 971 байт.