public rohc_Type Decode(BitArrayInputStream input) { rohc_Type type = new rohc_Type(); type.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); if (stream.Read()) { type.maxCID = input.ReadBits(14) + 1; } type.profiles = profiles_Type.PerDecoder.Instance.Decode(input); return(type); }
public rohc_Type Decode(BitArrayInputStream input) { rohc_Type type = new rohc_Type(); type.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); if (stream.Read()) { type.maxCID = input.ReadBits(14) + 1; } type.profiles = profiles_Type.PerDecoder.Instance.Decode(input); return type; }