Example #1
0
            public PDCP_Parameters Decode(BitArrayInputStream input)
            {
                PDCP_Parameters parameters = new PDCP_Parameters();

                parameters.InitDefaults();
                BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);

                parameters.supportedROHC_Profiles = supportedROHC_Profiles_Type.PerDecoder.Instance.Decode(input);
                if (stream.Read())
                {
                    int nBits = 4;
                    parameters.maxNumberROHC_ContextSessions = (maxNumberROHC_ContextSessions_Enum)input.ReadBits(nBits);
                }
                return(parameters);
            }
Example #2
0
 public PDCP_Parameters Decode(BitArrayInputStream input)
 {
     PDCP_Parameters parameters = new PDCP_Parameters();
     parameters.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     parameters.supportedROHC_Profiles = supportedROHC_Profiles_Type.PerDecoder.Instance.Decode(input);
     if (stream.Read())
     {
         int nBits = 4;
         parameters.maxNumberROHC_ContextSessions = (maxNumberROHC_ContextSessions_Enum)input.ReadBits(nBits);
     }
     return parameters;
 }