本文整理汇总了C#中Lte.Domain.Common.BitArrayInputStream.skipUnreadedBits方法的典型用法代码示例。如果您正苦于以下问题:C# BitArrayInputStream.skipUnreadedBits方法的具体用法?C# BitArrayInputStream.skipUnreadedBits怎么用?C# BitArrayInputStream.skipUnreadedBits使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Lte.Domain.Common.BitArrayInputStream
的用法示例。
在下文中一共展示了BitArrayInputStream.skipUnreadedBits方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Decode
public UE_associatedLogicalS1_ConnectionItem Decode(BitArrayInputStream input)
{
int num4;
UE_associatedLogicalS1_ConnectionItem item = new UE_associatedLogicalS1_ConnectionItem();
item.InitDefaults();
BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 3) : new BitMaskStream(input, 3);
if (stream.Read())
{
num4 = input.ReadBits(2) + 1;
input.skipUnreadedBits();
item.mME_UE_S1AP_ID = input.ReadBits(num4 * 8);
}
if (stream.Read())
{
num4 = input.ReadBits(2) + 1;
input.skipUnreadedBits();
item.eNB_UE_S1AP_ID = input.ReadBits(num4 * 8);
}
if (stream.Read())
{
input.skipUnreadedBits();
item.iE_Extensions = new List<ProtocolExtensionField>();
num4 = 0x10;
int num5 = input.ReadBits(num4) + 1;
for (int i = 0; i < num5; i++)
{
ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
item.iE_Extensions.Add(field);
}
}
return item;
}
示例2: Decode
public ForbiddenLAs_Item Decode(BitArrayInputStream input)
{
ForbiddenLAs_Item item = new ForbiddenLAs_Item();
item.InitDefaults();
BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
input.skipUnreadedBits();
item.pLMN_Identity = input.readOctetString(3);
item.forbiddenLACs = new List<string>();
int nBits = 12;
int num5 = input.ReadBits(nBits) + 1;
for (int i = 0; i < num5; i++)
{
input.skipUnreadedBits();
string str = input.readOctetString(2);
item.forbiddenLACs.Add(str);
}
if (stream.Read())
{
input.skipUnreadedBits();
item.iE_Extensions = new List<ProtocolExtensionField>();
nBits = 0x10;
int num7 = input.ReadBits(nBits) + 1;
for (int j = 0; j < num7; j++)
{
ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
item.iE_Extensions.Add(field);
}
}
return item;
}
示例3: Decode
public PRACH_Configuration Decode(BitArrayInputStream input)
{
PRACH_Configuration configuration = new PRACH_Configuration();
configuration.InitDefaults();
BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2);
input.skipUnreadedBits();
configuration.rootSequenceIndex = input.ReadBits(0x10);
configuration.zeroCorrelationIndex = input.ReadBits(4);
configuration.highSpeedFlag = input.ReadBit() == 1;
configuration.prach_FreqOffset = input.ReadBits(7);
if (stream.Read())
{
configuration.prach_ConfigIndex = input.ReadBits(6);
}
if (stream.Read())
{
input.skipUnreadedBits();
configuration.iE_Extensions = new List<ProtocolExtensionField>();
const int nBits = 0x10;
int num5 = input.ReadBits(nBits) + 1;
for (int i = 0; i < num5; i++)
{
ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
configuration.iE_Extensions.Add(item);
}
}
return configuration;
}
示例4: Decode
public TraceActivation Decode(BitArrayInputStream input)
{
TraceActivation activation = new TraceActivation();
activation.InitDefaults();
BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
input.skipUnreadedBits();
activation.e_UTRAN_Trace_ID = input.readOctetString(8);
activation.interfacesToTrace = input.ReadBitString(8);
int nBits = (input.ReadBit() == 0) ? 3 : 3;
activation.traceDepth = (TraceDepth)input.ReadBits(nBits);
input.ReadBit();
int num = input.ReadBits(8);
input.skipUnreadedBits();
activation.traceCollectionEntityIPAddress = input.ReadBitString(num + 1);
if (stream.Read())
{
input.skipUnreadedBits();
activation.iE_Extensions = new List<ProtocolExtensionField>();
nBits = 0x10;
int num5 = input.ReadBits(nBits) + 1;
for (int i = 0; i < num5; i++)
{
ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
activation.iE_Extensions.Add(item);
}
}
return activation;
}
示例5: Decode
public E_RABSetupItemCtxtSURes Decode(BitArrayInputStream input)
{
E_RABSetupItemCtxtSURes res = new E_RABSetupItemCtxtSURes();
res.InitDefaults();
BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
input.ReadBit();
res.e_RAB_ID = input.ReadBits(4);
input.ReadBit();
int num = input.ReadBits(8);
input.skipUnreadedBits();
res.transportLayerAddress = input.ReadBitString(num + 1);
input.skipUnreadedBits();
res.gTP_TEID = input.readOctetString(4);
if (stream.Read())
{
input.skipUnreadedBits();
res.iE_Extensions = new List<ProtocolExtensionField>();
int nBits = 0x10;
int num5 = input.ReadBits(nBits) + 1;
for (int i = 0; i < num5; i++)
{
ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
res.iE_Extensions.Add(item);
}
}
return res;
}
示例6: Decode
public RelativeNarrowbandTxPower Decode(BitArrayInputStream input)
{
RelativeNarrowbandTxPower power = new RelativeNarrowbandTxPower();
power.InitDefaults();
BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
input.ReadBit();
int num = input.ReadBits(7);
input.skipUnreadedBits();
power.rNTP_PerPRB = input.ReadBitString(num + 6);
int nBits = (input.ReadBit() == 0) ? 4 : 4;
power.rNTP_Threshold = (RNTP_Threshold)input.ReadBits(nBits);
nBits = (input.ReadBit() == 0) ? 2 : 2;
power.numberOfCellSpecificAntennaPorts = (numberOfCellSpecificAntennaPorts_Enum)input.ReadBits(nBits);
power.p_B = input.ReadBits(2);
power.pDCCH_InterferenceImpact = input.ReadBits(3);
if (stream.Read())
{
input.skipUnreadedBits();
power.iE_Extensions = new List<ProtocolExtensionField>();
nBits = 0x10;
int num5 = input.ReadBits(nBits) + 1;
for (int i = 0; i < num5; i++)
{
ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
power.iE_Extensions.Add(item);
}
}
return power;
}
示例7: Decode
public ENB_StatusTransfer_TransparentContainer Decode(BitArrayInputStream input)
{
ENB_StatusTransfer_TransparentContainer container = new ENB_StatusTransfer_TransparentContainer();
container.InitDefaults();
BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
input.skipUnreadedBits();
container.bearers_SubjectToStatusTransferList = new List<ProtocolIE_Field>();
int nBits = 8;
int num5 = input.ReadBits(nBits) + 1;
for (int i = 0; i < num5; i++)
{
ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
container.bearers_SubjectToStatusTransferList.Add(item);
}
if (stream.Read())
{
input.skipUnreadedBits();
container.iE_Extensions = new List<ProtocolExtensionField>();
nBits = 0x10;
int num7 = input.ReadBits(nBits) + 1;
for (int j = 0; j < num7; j++)
{
ProtocolExtensionField field2 = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
container.iE_Extensions.Add(field2);
}
}
return container;
}
示例8: Decode
public Bearers_SubjectToStatusTransfer_Item Decode(BitArrayInputStream input)
{
Bearers_SubjectToStatusTransfer_Item item = new Bearers_SubjectToStatusTransfer_Item();
item.InitDefaults();
BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2);
input.ReadBit();
item.e_RAB_ID = input.ReadBits(4);
item.uL_COUNTvalue = COUNTvalue.PerDecoder.Instance.Decode(input);
item.dL_COUNTvalue = COUNTvalue.PerDecoder.Instance.Decode(input);
if (stream.Read())
{
input.skipUnreadedBits();
item.receiveStatusofULPDCPSDUs = input.ReadBitString(0x1000);
}
if (stream.Read())
{
input.skipUnreadedBits();
item.iE_Extensions = new List<ProtocolExtensionField>();
int nBits = 0x10;
int num5 = input.ReadBits(nBits) + 1;
for (int i = 0; i < num5; i++)
{
ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
item.iE_Extensions.Add(field);
}
}
return item;
}
示例9: Decode
public UE_S1AP_ID_pair Decode(BitArrayInputStream input)
{
UE_S1AP_ID_pair _pair = new UE_S1AP_ID_pair();
_pair.InitDefaults();
BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
int nBits = input.ReadBits(2) + 1;
input.skipUnreadedBits();
_pair.mME_UE_S1AP_ID = input.ReadBits(nBits * 8);
nBits = input.ReadBits(2) + 1;
input.skipUnreadedBits();
_pair.eNB_UE_S1AP_ID = input.ReadBits(nBits * 8);
if (stream.Read())
{
input.skipUnreadedBits();
_pair.iE_Extensions = new List<ProtocolExtensionField>();
nBits = 0x10;
int num5 = input.ReadBits(nBits) + 1;
for (int i = 0; i < num5; i++)
{
ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
_pair.iE_Extensions.Add(item);
}
}
return _pair;
}
示例10: Decode
public E_RAB_Level_QoS_Parameters Decode(BitArrayInputStream input)
{
E_RAB_Level_QoS_Parameters parameters = new E_RAB_Level_QoS_Parameters();
parameters.InitDefaults();
BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2);
input.skipUnreadedBits();
parameters.qCI = input.ReadBits(8);
parameters.allocationAndRetentionPriority = AllocationAndRetentionPriority.PerDecoder.Instance.Decode(input);
if (stream.Read())
{
parameters.gbrQosInformation = GBR_QosInformation.PerDecoder.Instance.Decode(input);
}
if (stream.Read())
{
input.skipUnreadedBits();
parameters.iE_Extensions = new List<ProtocolExtensionField>();
int nBits = 0x10;
int num5 = input.ReadBits(nBits) + 1;
for (int i = 0; i < num5; i++)
{
ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
parameters.iE_Extensions.Add(item);
}
}
return parameters;
}
示例11: Decode
public EmergencyAreaID_Broadcast_Item Decode(BitArrayInputStream input)
{
EmergencyAreaID_Broadcast_Item item = new EmergencyAreaID_Broadcast_Item();
item.InitDefaults();
BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
input.skipUnreadedBits();
item.emergencyAreaID = input.readOctetString(3);
input.skipUnreadedBits();
item.completedCellinEAI = new List<CompletedCellinEAI_Item>();
int nBits = 0x10;
int num5 = input.ReadBits(nBits) + 1;
for (int i = 0; i < num5; i++)
{
CompletedCellinEAI_Item item2 = CompletedCellinEAI_Item.PerDecoder.Instance.Decode(input);
item.completedCellinEAI.Add(item2);
}
if (stream.Read())
{
input.skipUnreadedBits();
item.iE_Extensions = new List<ProtocolExtensionField>();
nBits = 0x10;
int num7 = input.ReadBits(nBits) + 1;
for (int j = 0; j < num7; j++)
{
ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
item.iE_Extensions.Add(field);
}
}
return item;
}
示例12: Decode
public ServedCell_Information Decode(BitArrayInputStream input)
{
ServedCell_Information information = new ServedCell_Information();
information.InitDefaults();
BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
input.ReadBit();
input.skipUnreadedBits();
information.pCI = input.ReadBits(0x10);
information.cellId = ECGI.PerDecoder.Instance.Decode(input);
input.skipUnreadedBits();
information.tAC = input.readOctetString(2);
information.broadcastPLMNs = new List<string>();
int nBits = 3;
int num5 = input.ReadBits(nBits) + 1;
for (int i = 0; i < num5; i++)
{
input.skipUnreadedBits();
string item = input.readOctetString(3);
information.broadcastPLMNs.Add(item);
}
information.eUTRA_Mode_Info = EUTRA_Mode_Info.PerDecoder.Instance.Decode(input);
if (stream.Read())
{
input.skipUnreadedBits();
information.iE_Extensions = new List<ProtocolExtensionField>();
nBits = 0x10;
int num7 = input.ReadBits(nBits) + 1;
for (int j = 0; j < num7; j++)
{
ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
information.iE_Extensions.Add(field);
}
}
return information;
}
示例13: Decode
public GBR_QosInformation Decode(BitArrayInputStream input)
{
GBR_QosInformation information = new GBR_QosInformation();
information.InitDefaults();
BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
int nBits = input.ReadBits(3) + 1;
input.skipUnreadedBits();
information.e_RAB_MaximumBitrateDL = input.ReadBits(nBits * 8);
nBits = input.ReadBits(3) + 1;
input.skipUnreadedBits();
information.e_RAB_MaximumBitrateUL = input.ReadBits(nBits * 8);
nBits = input.ReadBits(3) + 1;
input.skipUnreadedBits();
information.e_RAB_GuaranteedBitrateDL = input.ReadBits(nBits * 8);
nBits = input.ReadBits(3) + 1;
input.skipUnreadedBits();
information.e_RAB_GuaranteedBitrateUL = input.ReadBits(nBits * 8);
if (stream.Read())
{
input.skipUnreadedBits();
information.iE_Extensions = new List<ProtocolExtensionField>();
nBits = 0x10;
int num5 = input.ReadBits(nBits) + 1;
for (int i = 0; i < num5; i++)
{
ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
information.iE_Extensions.Add(item);
}
}
return information;
}
示例14: Decode
public ProtocolExtensionField Decode(BitArrayInputStream input)
{
int nBits = 0;
long num3 = 0L;
ProtocolExtensionField field = new ProtocolExtensionField();
field.InitDefaults();
int num4 = input.ReadBits(1) + 1;
input.skipUnreadedBits();
field.id = input.ReadBits(num4 * 8);
num4 = 2;
field.criticality = (Criticality)input.ReadBits(num4);
input.skipUnreadedBits();
nBits = 0;
while (true)
{
switch (input.ReadBit())
{
case 0:
nBits += input.ReadBits(7);
goto Label_00DD;
case 1:
switch (input.ReadBit())
{
case 0:
nBits += input.ReadBits(14);
goto Label_00DD;
case 1:
input.ReadBits(2);
nBits += input.ReadBits(4) * 0x400;
break;
}
break;
}
}
Label_00DD:
num3 = input.Position;
try
{
field.extensionValue = S1AP_PROTOCOL_EXTENSION.Switcher(field.id, "Extension", input);
input.skipUnreadedBits();
}
catch (Exception)
{
input.skipUnreadedBits();
input.Position = num3;
field.extensionValue = input.readOctetString(nBits);
}
if (input.Position != (num3 + nBits))
{
input.Position = num3 + nBits;
}
return field;
}
示例15: Decode
public SuccessfulOutcome Decode(BitArrayInputStream input)
{
SuccessfulOutcome outcome = new SuccessfulOutcome();
outcome.InitDefaults();
input.skipUnreadedBits();
outcome.procedureCode = input.ReadBits(8);
const int num4 = 2;
outcome.criticality = (Criticality)input.ReadBits(num4);
input.skipUnreadedBits();
int nBits = 0;
while (true)
{
switch (input.ReadBit())
{
case 0:
nBits += input.ReadBits(7);
goto Label_00CF;
case 1:
switch (input.ReadBit())
{
case 0:
nBits += input.ReadBits(14);
goto Label_00CF;
case 1:
input.ReadBits(2);
nBits += input.ReadBits(4) * 0x400;
break;
}
break;
}
}
Label_00CF:
long num3 = input.Position;
try
{
outcome.value = S1AP_ELEMENTARY_PROCEDURE.Switcher(outcome.procedureCode, "SuccessfulOutcome", input);
input.skipUnreadedBits();
}
catch (Exception)
{
input.skipUnreadedBits();
input.Position = num3;
outcome.value = input.readOctetString(nBits);
}
if (input.Position != (num3 + nBits))
{
input.Position = num3 + nBits;
}
return outcome;
}