本文整理汇总了C#中Lte.Domain.Common.BitArrayInputStream.ReadBitString方法的典型用法代码示例。如果您正苦于以下问题:C# BitArrayInputStream.ReadBitString方法的具体用法?C# BitArrayInputStream.ReadBitString怎么用?C# BitArrayInputStream.ReadBitString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Lte.Domain.Common.BitArrayInputStream
的用法示例。
在下文中一共展示了BitArrayInputStream.ReadBitString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Decode
public cellAccessRelatedInfo_Type Decode(BitArrayInputStream input)
{
var type = new cellAccessRelatedInfo_Type();
type.InitDefaults();
var stream = new BitMaskStream(input, 1);
type.plmn_IdentityList = new List<PLMN_IdentityInfo>();
var nBits = 3;
var num3 = input.ReadBits(nBits) + 1;
for (var i = 0; i < num3; i++)
{
var item = PLMN_IdentityInfo.PerDecoder.Instance.Decode(input);
type.plmn_IdentityList.Add(item);
}
type.trackingAreaCode = input.ReadBitString(0x10);
type.cellIdentity = input.ReadBitString(0x1c);
nBits = 1;
type.cellBarred = (cellBarred_Enum)input.ReadBits(nBits);
nBits = 1;
type.intraFreqReselection = (intraFreqReselection_Enum)input.ReadBits(nBits);
type.csg_Indication = input.ReadBit() == 1;
if (stream.Read())
{
type.csg_Identity = input.ReadBitString(0x1b);
}
return type;
}
示例2: 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;
}
示例3: Decode
public PhysCellIdGERAN Decode(BitArrayInputStream input)
{
PhysCellIdGERAN dgeran = new PhysCellIdGERAN();
dgeran.InitDefaults();
dgeran.networkColourCode = input.ReadBitString(3);
dgeran.baseStationColourCode = input.ReadBitString(3);
return dgeran;
}
示例4: Decode
public S_TMSI Decode(BitArrayInputStream input)
{
S_TMSI s_tmsi = new S_TMSI();
s_tmsi.InitDefaults();
s_tmsi.mmec = input.ReadBitString(8);
s_tmsi.m_TMSI = input.ReadBitString(0x20);
return s_tmsi;
}
示例5: Decode
public AdditionalReestabInfo Decode(BitArrayInputStream input)
{
AdditionalReestabInfo info = new AdditionalReestabInfo();
info.InitDefaults();
info.cellIdentity = input.ReadBitString(0x1c);
info.key_eNodeB_Star = input.ReadBitString(0x100);
info.shortMAC_I = input.ReadBitString(0x10);
return info;
}
示例6: Decode
public MasterInformationBlock Decode(BitArrayInputStream input)
{
MasterInformationBlock block = new MasterInformationBlock();
block.InitDefaults();
const int nBits = 3;
block.dl_Bandwidth = (dl_Bandwidth_Enum)input.ReadBits(nBits);
block.phich_Config = PHICH_Config.PerDecoder.Instance.Decode(input);
block.systemFrameNumber = input.ReadBitString(8);
block.spare = input.ReadBitString(10);
return block;
}
示例7: Decode
public E_RABAdmittedItem Decode(BitArrayInputStream input)
{
E_RABAdmittedItem item = new E_RABAdmittedItem();
item.InitDefaults();
BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 5) : new BitMaskStream(input, 5);
input.ReadBit();
item.e_RAB_ID = input.ReadBits(4);
input.ReadBit();
int num = input.ReadBits(8);
input.skipUnreadedBits();
item.transportLayerAddress = input.ReadBitString(num + 1);
input.skipUnreadedBits();
item.gTP_TEID = input.readOctetString(4);
if (stream.Read())
{
input.ReadBit();
num = input.ReadBits(8);
input.skipUnreadedBits();
item.dL_transportLayerAddress = input.ReadBitString(num + 1);
}
if (stream.Read())
{
input.skipUnreadedBits();
item.dL_gTP_TEID = input.readOctetString(4);
}
if (stream.Read())
{
input.ReadBit();
num = input.ReadBits(8);
input.skipUnreadedBits();
item.uL_TransportLayerAddress = input.ReadBitString(num + 1);
}
if (stream.Read())
{
input.skipUnreadedBits();
item.uL_GTP_TEID = input.readOctetString(4);
}
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;
}
示例8: Decode
public RegisteredMME Decode(BitArrayInputStream input)
{
RegisteredMME dmme = new RegisteredMME();
dmme.InitDefaults();
bool flag = false;
BitMaskStream stream = flag ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
if (stream.Read())
{
dmme.plmn_Identity = PLMN_Identity.PerDecoder.Instance.Decode(input);
}
dmme.mmegi = input.ReadBitString(0x10);
dmme.mmec = input.ReadBitString(8);
return dmme;
}
示例9: 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;
}
示例10: Decode
public cdma_SystemTime_Type Decode(BitArrayInputStream input)
{
var type = new cdma_SystemTime_Type();
type.InitDefaults();
switch (input.ReadBits(1))
{
case 0:
type.synchronousSystemTime = input.ReadBitString(0x27);
return type;
case 1:
type.asynchronousSystemTime = input.ReadBitString(0x31);
return type;
}
throw new Exception(GetType().Name + ":NoChoice had been choose");
}
示例11: 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;
}
示例12: 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;
}
示例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 EAB_Config_r11 Decode(BitArrayInputStream input)
{
EAB_Config_r11 _r = new EAB_Config_r11();
_r.InitDefaults();
int nBits = 2;
_r.eab_Category_r11 = (eab_Category_r11_Enum)input.ReadBits(nBits);
_r.eab_BarringBitmap_r11 = input.ReadBitString(10);
return _r;
}
示例15: Decode
public basicFields_r11_Type Decode(BitArrayInputStream input)
{
basicFields_r11_Type type = new basicFields_r11_Type();
type.InitDefaults();
type.c_RNTI_r11 = input.ReadBitString(0x10);
int nBits = 2;
type.rlf_Cause_r11 = (rlf_Cause_r11_Enum)input.ReadBits(nBits);
type.timeSinceFailure_r11 = input.ReadBits(0x12);
return type;
}