本文整理汇总了C#中Lte.Domain.Common.BitArrayInputStream类的典型用法代码示例。如果您正苦于以下问题:C# BitArrayInputStream类的具体用法?C# BitArrayInputStream怎么用?C# BitArrayInputStream使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BitArrayInputStream类属于Lte.Domain.Common命名空间,在下文中一共展示了BitArrayInputStream类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Decode
public RRCConnectionReestablishmentReject Decode(BitArrayInputStream input)
{
RRCConnectionReestablishmentReject reject = new RRCConnectionReestablishmentReject();
reject.InitDefaults();
reject.criticalExtensions = criticalExtensions_Type.PerDecoder.Instance.Decode(input);
return reject;
}
示例2: Decode
public c1_Type Decode(BitArrayInputStream input)
{
c1_Type type = new c1_Type();
type.InitDefaults();
switch (input.ReadBits(3))
{
case 0:
type.handoverPreparationInformation_r8 = HandoverPreparationInformation_r8_IEs.PerDecoder.Instance.Decode(input);
return type;
case 1:
return type;
case 2:
return type;
case 3:
return type;
case 4:
return type;
case 5:
return type;
case 6:
return type;
case 7:
return type;
}
throw new Exception(GetType().Name + ":NoChoice had been choose");
}
示例3: 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;
}
示例4: 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;
}
示例5: Decode
public PRACH_ConfigSCell_r10 Decode(BitArrayInputStream input)
{
PRACH_ConfigSCell_r10 _r = new PRACH_ConfigSCell_r10();
_r.InitDefaults();
_r.prach_ConfigIndex_r10 = input.ReadBits(6);
return _r;
}
示例6: 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;
}
示例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 CompleteFailureCauseInformation_Item Decode(BitArrayInputStream input)
{
CompleteFailureCauseInformation_Item item = new CompleteFailureCauseInformation_Item();
item.InitDefaults();
BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
item.cell_ID = ECGI.PerDecoder.Instance.Decode(input);
item.measurementFailureCause_List = new List<ProtocolIE_Field>();
int nBits = 5;
int num5 = input.ReadBits(nBits) + 1;
for (int i = 0; i < num5; i++)
{
ProtocolIE_Field field = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
item.measurementFailureCause_List.Add(field);
}
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 field2 = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
item.iE_Extensions.Add(field2);
}
}
return item;
}
示例9: 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;
}
示例10: Decode
public interRAT_Parameters_Type Decode(BitArrayInputStream input)
{
interRAT_Parameters_Type type = new interRAT_Parameters_Type();
type.InitDefaults();
BitMaskStream stream = new BitMaskStream(input, 7);
if (stream.Read())
{
type.utraFDD = IRAT_ParametersUTRA_FDD.PerDecoder.Instance.Decode(input);
}
if (stream.Read())
{
type.utraTDD128 = IRAT_ParametersUTRA_TDD128.PerDecoder.Instance.Decode(input);
}
if (stream.Read())
{
type.utraTDD384 = IRAT_ParametersUTRA_TDD384.PerDecoder.Instance.Decode(input);
}
if (stream.Read())
{
type.utraTDD768 = IRAT_ParametersUTRA_TDD768.PerDecoder.Instance.Decode(input);
}
if (stream.Read())
{
type.geran = IRAT_ParametersGERAN.PerDecoder.Instance.Decode(input);
}
if (stream.Read())
{
type.cdma2000_HRPD = IRAT_ParametersCDMA2000_HRPD.PerDecoder.Instance.Decode(input);
}
if (stream.Read())
{
type.cdma2000_1xRTT = IRAT_ParametersCDMA2000_1XRTT.PerDecoder.Instance.Decode(input);
}
return type;
}
示例11: 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;
}
示例12: Decode
public OtherConfig_r9 Decode(BitArrayInputStream input)
{
OtherConfig_r9 _r = new OtherConfig_r9();
_r.InitDefaults();
bool flag = input.ReadBit() != 0;
BitMaskStream stream = new BitMaskStream(input, 1);
if (stream.Read())
{
_r.reportProximityConfig_r9 = ReportProximityConfig_r9.PerDecoder.Instance.Decode(input);
}
if (flag)
{
BitMaskStream stream2 = new BitMaskStream(input, 3);
if (stream2.Read())
{
_r.idc_Config_r11 = IDC_Config_r11.PerDecoder.Instance.Decode(input);
}
if (stream2.Read())
{
_r.powerPrefIndicationConfig_r11
= PowerPrefIndicationConfig_r11.PerDecoder.Instance.Decode(input);
}
if (stream2.Read())
{
_r.obtainLocationConfig_r11 = ObtainLocationConfig_r11.PerDecoder.Instance.Decode(input);
}
}
return _r;
}
示例13: Decode
public Paging Decode(BitArrayInputStream input)
{
int num2;
Paging paging = new Paging();
paging.InitDefaults();
BitMaskStream stream = new BitMaskStream(input, 4);
if (stream.Read())
{
paging.pagingRecordList = new List<PagingRecord>();
num2 = 4;
int num3 = input.ReadBits(num2) + 1;
for (int i = 0; i < num3; i++)
{
PagingRecord item = PagingRecord.PerDecoder.Instance.Decode(input);
paging.pagingRecordList.Add(item);
}
}
if (stream.Read())
{
num2 = 1;
paging.systemInfoModification = (systemInfoModification_Enum)input.ReadBits(num2);
}
if (stream.Read())
{
num2 = 1;
paging.etws_Indication = (etws_Indication_Enum)input.ReadBits(num2);
}
if (stream.Read())
{
paging.nonCriticalExtension = Paging_v890_IEs.PerDecoder.Instance.Decode(input);
}
return paging;
}
示例14: 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;
}
示例15: 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;
}