本文整理汇总了C#中Common.Entities.BitArrayInputStream.readOctetString方法的典型用法代码示例。如果您正苦于以下问题:C# BitArrayInputStream.readOctetString方法的具体用法?C# BitArrayInputStream.readOctetString怎么用?C# BitArrayInputStream.readOctetString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Common.Entities.BitArrayInputStream
的用法示例。
在下文中一共展示了BitArrayInputStream.readOctetString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Decode
public GUMMEI Decode(BitArrayInputStream input)
{
GUMMEI gummei = new GUMMEI();
gummei.InitDefaults();
BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
input.skipUnreadedBits();
gummei.pLMN_Identity = input.readOctetString(3);
input.skipUnreadedBits();
gummei.mME_Group_ID = input.readOctetString(2);
input.skipUnreadedBits();
gummei.mME_Code = input.readOctetString(1);
if (stream.Read())
{
input.skipUnreadedBits();
gummei.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);
gummei.iE_Extensions.Add(item);
}
}
return gummei;
}
示例2: 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);
}
示例3: 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;
}
示例4: 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;
}
示例5: Decode
public SupportedTAs_Item Decode(BitArrayInputStream input)
{
SupportedTAs_Item item = new SupportedTAs_Item();
item.InitDefaults();
BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
input.skipUnreadedBits();
item.tAC = input.readOctetString(2);
item.broadcastPLMNs = new List<string>();
int nBits = 3;
int num5 = input.readBits(nBits) + 1;
for (int i = 0; i < num5; i++)
{
input.skipUnreadedBits();
string str = input.readOctetString(3);
item.broadcastPLMNs.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;
}
示例6: Decode
public TraceReference_r10 Decode(BitArrayInputStream input)
{
TraceReference_r10 _r = new TraceReference_r10();
_r.InitDefaults();
_r.plmn_Identity_r10 = PLMN_Identity.PerDecoder.Instance.Decode(input);
_r.traceId_r10 = input.readOctetString(3);
return _r;
}
示例7: Decode
public TMGI_r9 Decode(BitArrayInputStream input)
{
TMGI_r9 _r = new TMGI_r9();
_r.InitDefaults();
_r.plmn_Id_r9 = plmn_Id_r9_Type.PerDecoder.Instance.Decode(input);
_r.serviceId_r9 = input.readOctetString(3);
return _r;
}
示例8: Decode
public Handover Decode(BitArrayInputStream input)
{
Handover handover = new Handover();
handover.InitDefaults();
BitMaskStream stream = new BitMaskStream(input, 2);
int num2 = (input.readBit() == 0) ? 3 : 3;
handover.targetRAT_Type = (targetRAT_Type_Enum)input.readBits(num2);
int nBits = input.readBits(8);
handover.targetRAT_MessageContainer = input.readOctetString(nBits);
if (stream.Read())
{
handover.nas_SecurityParamFromEUTRA = input.readOctetString(1);
}
if (stream.Read())
{
handover.systemInformation = SI_OrPSI_GERAN.PerDecoder.Instance.Decode(input);
}
return handover;
}
示例9: Decode
public LAI Decode(BitArrayInputStream input)
{
LAI lai = new LAI();
lai.InitDefaults();
BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
input.skipUnreadedBits();
lai.pLMNidentity = input.readOctetString(3);
input.skipUnreadedBits();
lai.lAC = input.readOctetString(2);
if (stream.Read())
{
input.skipUnreadedBits();
lai.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);
lai.iE_Extensions.Add(item);
}
}
return lai;
}
示例10: Decode
public CellInfoGERAN_r9 Decode(BitArrayInputStream input)
{
CellInfoGERAN_r9 _r = new CellInfoGERAN_r9();
_r.InitDefaults();
_r.physCellId_r9 = PhysCellIdGERAN.PerDecoder.Instance.Decode(input);
_r.carrierFreq_r9 = CarrierFreqGERAN.PerDecoder.Instance.Decode(input);
_r.systemInformation_r9 = new List<string>();
const int nBits = 4;
int num3 = input.readBits(nBits) + 1;
for (int i = 0; i < num3; i++)
{
int num = input.readBits(5);
string item = input.readOctetString(num + 1);
_r.systemInformation_r9.Add(item);
}
return _r;
}
示例11: Decode
public MBMSCountingRequest_r10 Decode(BitArrayInputStream input)
{
MBMSCountingRequest_r10 _r = new MBMSCountingRequest_r10();
_r.InitDefaults();
BitMaskStream stream = new BitMaskStream(input, 2);
_r.countingRequestList_r10 = new List<CountingRequestInfo_r10>();
const int num2 = 4;
int num3 = input.readBits(num2) + 1;
for (int i = 0; i < num3; i++)
{
CountingRequestInfo_r10 item = CountingRequestInfo_r10.PerDecoder.Instance.Decode(input);
_r.countingRequestList_r10.Add(item);
}
if (stream.Read())
{
int nBits = input.readBits(8);
_r.lateNonCriticalExtension = input.readOctetString(nBits);
}
if (stream.Read())
{
_r.nonCriticalExtension = nonCriticalExtension_Type.PerDecoder.Instance.Decode(input);
}
return _r;
}
示例12: Decode
public UEAssistanceInformation_r11_IEs Decode(BitArrayInputStream input)
{
UEAssistanceInformation_r11_IEs es = new UEAssistanceInformation_r11_IEs();
es.InitDefaults();
BitMaskStream stream = new BitMaskStream(input, 3);
if (stream.Read())
{
const int num2 = 1;
es.powerPrefIndication_r11 = (powerPrefIndication_r11_Enum)input.readBits(num2);
}
if (stream.Read())
{
int nBits = input.readBits(8);
es.lateNonCriticalExtension = input.readOctetString(nBits);
}
if (stream.Read())
{
es.nonCriticalExtension = nonCriticalExtension_Type.PerDecoder.Instance.Decode(input);
}
return es;
}
示例13: Decode
public ECGI Decode(BitArrayInputStream input)
{
ECGI ecgi = new ECGI();
ecgi.InitDefaults();
BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
input.skipUnreadedBits();
ecgi.pLMN_Identity = input.readOctetString(3);
ecgi.eUTRANcellIdentifier = input.readBitString(0x1c);
if (stream.Read())
{
input.skipUnreadedBits();
ecgi.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);
ecgi.iE_Extensions.Add(item);
}
}
return ecgi;
}
示例14: Decode
public UE_EUTRA_Capability_v9h0_IEs Decode(BitArrayInputStream input)
{
UE_EUTRA_Capability_v9h0_IEs es = new UE_EUTRA_Capability_v9h0_IEs();
es.InitDefaults();
BitMaskStream stream = new BitMaskStream(input, 3);
if (stream.Read())
{
es.interRAT_ParametersUTRA_v9h0 = IRAT_ParametersUTRA_v9h0.PerDecoder.Instance.Decode(input);
}
if (stream.Read())
{
int nBits = input.readBits(8);
es.lateNonCriticalExtension = input.readOctetString(nBits);
}
if (stream.Read())
{
es.nonCriticalExtension = UE_EUTRA_Capability_v10c0_IEs.PerDecoder.Instance.Decode(input);
}
return es;
}
示例15: Decode
public CounterCheck_v8a0_IEs Decode(BitArrayInputStream input)
{
CounterCheck_v8a0_IEs es = new CounterCheck_v8a0_IEs();
es.InitDefaults();
BitMaskStream stream = new BitMaskStream(input, 2);
if (stream.Read())
{
int nBits = input.readBits(8);
es.lateNonCriticalExtension = input.readOctetString(nBits);
}
if (stream.Read())
{
es.nonCriticalExtension = nonCriticalExtension_Type.PerDecoder.Instance.Decode(input);
}
return es;
}