本文整理汇总了C#中ByteBuffer.readUnsignedByte方法的典型用法代码示例。如果您正苦于以下问题:C# ByteBuffer.readUnsignedByte方法的具体用法?C# ByteBuffer.readUnsignedByte怎么用?C# ByteBuffer.readUnsignedByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ByteBuffer
的用法示例。
在下文中一共展示了ByteBuffer.readUnsignedByte方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: bytesRead
public override void bytesRead(ByteBuffer data)
{
base.bytesRead(data);
if (this.isTag(base._tag))
{
int len = data.readUnsignedByte();
int num2 = data.readUnsignedByte();
byte[] bytes = new byte[8];
data.readBytes(bytes, 0, len);
this._value = BitConverter.ToInt64(bytes, 0);
if (num2 == 1)
{
this._value = -this._value;
}
}
}
示例2: bytesRead
public override void bytesRead(ByteBuffer data)
{
base.bytesRead(data);
if (this.isTag(base._tag))
{
this._value = data.readUnsignedByte();
}
}
示例3: bytesRead
public override void bytesRead(ByteBuffer data)
{
base.bytesRead(data);
if (this.isTag(base._tag))
{
this._value = string.Empty;
int num = data.readShort();
for (int i = 0; i < num; i++)
{
this._value = this._value + ((char) data.readUnsignedByte());
}
}
}
示例4: bytesReadKey
public string bytesReadKey(ByteBuffer data)
{
int num = data.readUnsignedByte();
string str = null;
for (int i = 0; i < num; i++)
{
if (str == null)
{
str = string.Empty;
}
str = str + ((char) data.readUnsignedByte());
}
return str;
}
示例5: bytesReadValue
public object bytesReadValue(ByteBuffer data)
{
uint num = (uint) data.readUnsignedShort();
uint position = (uint) data.position;
int u = data.readUnsignedByte() ;
Log.Info (u);
if (u == 0x83)
//if (_cmd=="")
{
//data.position = (int) position;
return ByteKitClient.complexAnalyse(data);
}
/*if (u == 0x68||u == 0x68)
//if (_cmd=="")
{
data.position = (int) position;
return ByteKit.complexAnalyse(data);
}*/
data.position = (int) position;
return ByteKitClient.simpleAnalyse(data);
//data.position = (int) position;
//return ByteKit.complexAnalyse(data);
}
示例6: bytesRead
public override void bytesRead(ByteBuffer data)
{
base.bytesRead(data);
if (base._tag == TAG[0])
{
int num = data.readUnsignedByte();
this._value = new ErlType[num];
for (int i = 0; i < num; i++)
{
this._value[i] = ByteKit.natureAnalyse(data);
}
}
else if (base._tag == TAG[1])
{
int num3 = data.readInt();
this._value = new ErlType[num3];
for (int j = 0; j < num3; j++)
{
this._value[j] = ByteKit.natureAnalyse(data);
}
}
}
示例7: bytesReadValue
public object bytesReadValue(ByteBuffer data)
{
uint num = (uint) data.readUnsignedShort();
uint position = (uint) data.position;
uint tag = (uint)data.readUnsignedByte ();
if (tag == 0x83||tag==0x68||tag==0x69)
{
//data.position = (int) position;
return ByteKit.complexAnalyse(data);
}
data.position = (int) position;
return ByteKit.simpleAnalyse(data);
//return ByteKit.complexAnalyse(data);
}
示例8: natureAnalyse
public static ErlType natureAnalyse(ByteBuffer data)
{
uint position = (uint) data.position;
uint num2 = (uint) data.readUnsignedByte();
if (num2 != 0x83)
{
data.position = (int) position;
if ((((num2 != ErlArray.TAG[0]) && (num2 != ErlArray.TAG[1])) && ((num2 != 0x6a) && (num2 != 0x6c))) && ((num2 != 100) && (num2 != 0x6d)))
{
return natureSampleAnalyse(data);
}
}
return complexAnalyse(data);
}