public gapOffset_Type Decode(BitArrayInputStream input) { gapOffset_Type type = new gapOffset_Type(); type.InitDefaults(); input.ReadBit(); switch (input.ReadBits(1)) { case 0: type.gp0 = input.ReadBits(6); return(type); case 1: type.gp1 = input.ReadBits(7); return(type); } throw new Exception(GetType().Name + ":NoChoice had been choose"); }
public gapOffset_Type Decode(BitArrayInputStream input) { gapOffset_Type type = new gapOffset_Type(); type.InitDefaults(); input.ReadBit(); switch (input.ReadBits(1)) { case 0: type.gp0 = input.ReadBits(6); return type; case 1: type.gp1 = input.ReadBits(7); return type; } throw new Exception(GetType().Name + ":NoChoice had been choose"); }