本文整理汇总了C#中Common.Entities.BitArrayInputStream.readBitString方法的典型用法代码示例。如果您正苦于以下问题:C# BitArrayInputStream.readBitString方法的具体用法?C# BitArrayInputStream.readBitString怎么用?C# BitArrayInputStream.readBitString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Common.Entities.BitArrayInputStream
的用法示例。
在下文中一共展示了BitArrayInputStream.readBitString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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;
}
示例2: Decode
public PhysCellIdGERAN Decode(BitArrayInputStream input)
{
PhysCellIdGERAN dgeran = new PhysCellIdGERAN();
dgeran.InitDefaults();
dgeran.networkColourCode = input.readBitString(3);
dgeran.baseStationColourCode = input.readBitString(3);
return dgeran;
}
示例3: 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;
}
示例4: 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;
}
示例5: 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;
}
示例6: Decode
public CellGlobalIdCDMA2000 Decode(BitArrayInputStream input)
{
CellGlobalIdCDMA2000 dcdma = new CellGlobalIdCDMA2000();
dcdma.InitDefaults();
switch (input.readBits(1))
{
case 0:
dcdma.cellGlobalId1XRTT = input.readBitString(0x2f);
return dcdma;
case 1:
dcdma.cellGlobalIdHRPD = input.readBitString(0x80);
return dcdma;
}
throw new Exception(GetType().Name + ":NoChoice had been choose");
}
示例7: 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;
}
示例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 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;
}
示例10: Decode
public AC_BarringConfig Decode(BitArrayInputStream input)
{
AC_BarringConfig config = new AC_BarringConfig();
config.InitDefaults();
int nBits = 4;
config.ac_BarringFactor = (ac_BarringFactor_Enum)input.readBits(nBits);
nBits = 3;
config.ac_BarringTime = (ac_BarringTime_Enum)input.readBits(nBits);
config.ac_BarringForSpecialAC = input.readBitString(5);
return config;
}
示例11: Decode
public BandCombinationParametersExt_r10 Decode(BitArrayInputStream input)
{
BandCombinationParametersExt_r10 _r = new BandCombinationParametersExt_r10();
_r.InitDefaults();
BitMaskStream stream = new BitMaskStream(input, 1);
if (stream.Read())
{
int num = input.readBits(5);
_r.supportedBandwidthCombinationSet_r10 = input.readBitString(num + 1);
}
return _r;
}
示例12: 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;
}
示例13: Decode
public InitialUE_Identity Decode(BitArrayInputStream input)
{
InitialUE_Identity identity = new InitialUE_Identity();
identity.InitDefaults();
switch (input.readBits(1))
{
case 0:
identity.s_TMSI = S_TMSI.PerDecoder.Instance.Decode(input);
return identity;
case 1:
identity.randomValue = input.readBitString(40);
return identity;
}
throw new Exception(GetType().Name + ":NoChoice had been choose");
}
示例14: Decode
public AdditionalSI_Info_r9 Decode(BitArrayInputStream input)
{
AdditionalSI_Info_r9 _r = new AdditionalSI_Info_r9();
_r.InitDefaults();
BitMaskStream stream = new BitMaskStream(input, 2);
if (stream.Read())
{
const int nBits = 1;
_r.csg_MemberStatus_r9 = (csg_MemberStatus_r9_Enum)input.readBits(nBits);
}
if (stream.Read())
{
_r.csg_Identity_r9 = input.readBitString(0x1b);
}
return _r;
}
示例15: Decode
public SPS_Config Decode(BitArrayInputStream input)
{
SPS_Config config = new SPS_Config();
config.InitDefaults();
BitMaskStream stream = new BitMaskStream(input, 3);
if (stream.Read())
{
config.semiPersistSchedC_RNTI = input.readBitString(0x10);
}
if (stream.Read())
{
config.sps_ConfigDL = SPS_ConfigDL.PerDecoder.Instance.Decode(input);
}
if (stream.Read())
{
config.sps_ConfigUL = SPS_ConfigUL.PerDecoder.Instance.Decode(input);
}
return config;
}