aimozg
02/01/2017, 6:02 AMstruct with 64-bit mask with N bits set, then 32-bit mask with M bits set, then (N*M)-bit mask with K bits set, then K records.
And now I can declare them with
val gnss_sat_mask_def = DF394()
val gnss_sig_mask_def = DF395()
val gnss_cell_mask_def = DF396(gnss_sat_mask_def, gnss_sig_mask_def)
val phr_fine_def = DF401array(gnss_cell_mask_def) in object and as
var gnss_sat_mask: BitSet by def.gnss_sat_mask_def
var gnss_sig_mask: BitSet by def.gnss_sig_mask_def
var gnss_cell_mask: BitSet by def.gnss_cell_mask_def
var phr_fine: DoubleArray by def.phr_fine_def in class
then init it with ByteBuffer and read/write any sub-sub-field no matter how deep it is buried. With a simple getter/setter