public eventA3_Type Decode(BitArrayInputStream input) { eventA3_Type type = new eventA3_Type(); type.InitDefaults(); type.a3_Offset = input.ReadBits(6) + -30; type.reportOnLeave = input.ReadBit() == 1; return type; }