本文整理汇总了C#中Common.Entities.BitArrayInputStream.readBits方法的典型用法代码示例。如果您正苦于以下问题:C# BitArrayInputStream.readBits方法的具体用法?C# BitArrayInputStream.readBits怎么用?C# BitArrayInputStream.readBits使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Common.Entities.BitArrayInputStream
的用法示例。
在下文中一共展示了BitArrayInputStream.readBits方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Decode
public PLMN_Identity Decode(BitArrayInputStream input)
{
int num2;
PLMN_Identity identity = new PLMN_Identity();
identity.InitDefaults();
BitMaskStream stream = new BitMaskStream(input, 1);
if (stream.Read())
{
identity.mcc = new List<long>();
num2 = 0;
int num3 = input.readBits(num2) + 3;
for (int j = 0; j < num3; j++)
{
long item = input.readBits(4);
identity.mcc.Add(item);
}
}
identity.mnc = new List<long>();
num2 = 1;
int num6 = input.readBits(num2) + 2;
for (int i = 0; i < num6; i++)
{
long num8 = input.readBits(4);
identity.mnc.Add(num8);
}
return identity;
}
示例2: Decode
public UEAggregateMaximumBitRate Decode(BitArrayInputStream input)
{
UEAggregateMaximumBitRate rate = new UEAggregateMaximumBitRate();
rate.InitDefaults();
BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
int nBits = input.readBits(3) + 1;
input.skipUnreadedBits();
rate.uEaggregateMaximumBitRateDownlink = input.readBits(nBits * 8);
nBits = input.readBits(3) + 1;
input.skipUnreadedBits();
rate.uEaggregateMaximumBitRateUplink = input.readBits(nBits * 8);
if (stream.Read())
{
input.skipUnreadedBits();
rate.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);
rate.iE_Extensions.Add(item);
}
}
return rate;
}
示例3: Decode
public E_RABs_Admitted_Item Decode(BitArrayInputStream input)
{
E_RABs_Admitted_Item item = new E_RABs_Admitted_Item();
item.InitDefaults();
BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 3) : new BitMaskStream(input, 3);
input.readBit();
item.e_RAB_ID = input.readBits(4);
if (stream.Read())
{
item.uL_GTP_TunnelEndpoint = GTPtunnelEndpoint.PerDecoder.Instance.Decode(input);
}
if (stream.Read())
{
item.dL_GTP_TunnelEndpoint = GTPtunnelEndpoint.PerDecoder.Instance.Decode(input);
}
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;
}
示例4: Decode
public string Decode(BitArrayInputStream input)
{
input.skipUnreadedBits();
int nBits = 0;
while (true)
{
switch (input.readBit())
{
case 0:
nBits += input.readBits(7);
goto Label_0096;
case 1:
switch (input.readBit())
{
case 0:
nBits += input.readBits(14);
goto Label_0096;
case 1:
input.readBits(2);
nBits += input.readBits(4) * 0x400;
break;
}
break;
}
}
Label_0096:
return input.readOctetString(nBits);
}
示例5: 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;
}
示例6: Decode
public E_RABSetupItemBearerSURes Decode(BitArrayInputStream input)
{
E_RABSetupItemBearerSURes res = new E_RABSetupItemBearerSURes();
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>();
const 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;
}
示例7: Decode
public CandidateCellInfo_r10 Decode(BitArrayInputStream input)
{
CandidateCellInfo_r10 _r = new CandidateCellInfo_r10();
_r.InitDefaults();
bool flag = input.readBit() != 0;
BitMaskStream stream = new BitMaskStream(input, 2);
_r.physCellId_r10 = input.readBits(9);
_r.dl_CarrierFreq_r10 = input.readBits(0x10);
if (stream.Read())
{
_r.rsrpResult_r10 = input.readBits(7);
}
if (stream.Read())
{
_r.rsrqResult_r10 = input.readBits(6);
}
if (flag)
{
BitMaskStream stream2 = new BitMaskStream(input, 1);
if (stream2.Read())
{
_r.dl_CarrierFreq_v1090 = input.readBits(0x12) + 0x10000;
}
}
return _r;
}
示例8: Decode
public AreaConfiguration_r10 Decode(BitArrayInputStream input)
{
int num2;
AreaConfiguration_r10 _r = new AreaConfiguration_r10();
_r.InitDefaults();
switch (input.readBits(1))
{
case 0:
{
_r.cellGlobalIdList_r10 = new List<CellGlobalIdEUTRA>();
num2 = 5;
int num4 = input.readBits(num2) + 1;
for (int i = 0; i < num4; i++)
{
CellGlobalIdEUTRA item = CellGlobalIdEUTRA.PerDecoder.Instance.Decode(input);
_r.cellGlobalIdList_r10.Add(item);
}
return _r;
}
case 1:
{
_r.trackingAreaCodeList_r10 = new List<string>();
num2 = 3;
int num6 = input.readBits(num2) + 1;
for (int j = 0; j < num6; j++)
{
string str = input.readBitString(0x10);
_r.trackingAreaCodeList_r10.Add(str);
}
return _r;
}
}
throw new Exception(GetType().Name + ":NoChoice had been choose");
}
示例9: Decode
public Cause Decode(BitArrayInputStream input)
{
int num4;
Cause cause = new Cause();
cause.InitDefaults();
input.readBit();
switch (input.readBits(3))
{
case 0:
num4 = (input.readBit() == 0) ? 6 : 6;
cause.radioNetwork = (CauseRadioNetwork)input.readBits(num4);
return cause;
case 1:
num4 = 1;
cause.transport = (CauseTransport)input.readBits(num4);
return cause;
case 2:
num4 = (input.readBit() == 0) ? 3 : 3;
cause.nas = (CauseNas)input.readBits(num4);
return cause;
case 3:
num4 = (input.readBit() == 0) ? 3 : 3;
cause.protocol = (CauseProtocol)input.readBits(num4);
return cause;
case 4:
num4 = (input.readBit() == 0) ? 3 : 3;
cause.misc = (CauseMisc)input.readBits(num4);
return cause;
}
throw new Exception(GetType().Name + ":NoChoice had been choose");
}
示例10: Decode
public UE_CapabilityRAT_Container Decode(BitArrayInputStream input)
{
string str;
int nBits = 0;
UE_CapabilityRAT_Container container = new UE_CapabilityRAT_Container();
container.InitDefaults();
int num2 = (input.readBit() == 0) ? 3 : 3;
container.rat_Type = (RAT_Type) input.readBits(num2);
nBits = input.readBits(8);
if ((container.rat_Type == RAT_Type.eutra) && (nBits > 0))
{
str = input.readOctetString(nBits);
BitArrayInputStream inputStream = GetInputStream(str.Remove(str.Length - 2) + "00000000");
container.ueCapabilityRAT_Container = UE_EUTRA_Capability.PerDecoder.Instance.Decode(inputStream);
return container;
}
if (container.rat_Type == RAT_Type.cdma2000_1XRTT)
{
container.ueCapabilityRAT_Container = A21MobileSubscriptionInformation.PerDecoder.Instance.Decode(input);
return container;
}
str = input.readOctetString(nBits);
container.ueCapabilityRAT_Container = str;
return container;
}
示例11: Decode
public FreqPriorityEUTRA Decode(BitArrayInputStream input)
{
FreqPriorityEUTRA yeutra = new FreqPriorityEUTRA();
yeutra.InitDefaults();
yeutra.carrierFreq = input.readBits(0x10);
yeutra.cellReselectionPriority = input.readBits(3);
return yeutra;
}
示例12: Decode
public PDSCH_ConfigCommon Decode(BitArrayInputStream input)
{
PDSCH_ConfigCommon common = new PDSCH_ConfigCommon();
common.InitDefaults();
common.referenceSignalPower = input.readBits(7) + -60;
common.p_b = input.readBits(2);
return common;
}
示例13: Decode
public P_C_AndCBSR_r11 Decode(BitArrayInputStream input)
{
P_C_AndCBSR_r11 _r = new P_C_AndCBSR_r11();
_r.InitDefaults();
_r.p_C_r11 = input.readBits(5) + -8;
int nBits = input.readBits(8);
_r.codebookSubsetRestriction_r11 = input.readBitString(nBits);
return _r;
}
示例14: Decode
public DRB_CountInfo Decode(BitArrayInputStream input)
{
DRB_CountInfo info = new DRB_CountInfo();
info.InitDefaults();
info.drb_Identity = input.readBits(5) + 1;
info.count_Uplink = input.readBits(0x20);
info.count_Downlink = input.readBits(0x20);
return info;
}
示例15: Decode
public AffectedCarrierFreq_r11 Decode(BitArrayInputStream input)
{
AffectedCarrierFreq_r11 _r = new AffectedCarrierFreq_r11();
_r.InitDefaults();
_r.carrierFreq_r11 = input.readBits(5) + 1;
const int nBits = 2;
_r.interferenceDirection_r11 = (interferenceDirection_r11_Enum)input.readBits(nBits);
return _r;
}