本文整理汇总了C#中Apache.Qpid.Buffer.ByteBuffer.GetUInt64方法的典型用法代码示例。如果您正苦于以下问题:C# ByteBuffer.GetUInt64方法的具体用法?C# ByteBuffer.GetUInt64怎么用?C# ByteBuffer.GetUInt64使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Apache.Qpid.Buffer.ByteBuffer
的用法示例。
在下文中一共展示了ByteBuffer.GetUInt64方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PopulateMethodBodyFromBuffer
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer)
{
ConsumerTag = EncodingUtils.ReadShortString(buffer);
DeliveryTag = buffer.GetUInt64();
Exchange = EncodingUtils.ReadShortString(buffer);
Queue = EncodingUtils.ReadShortString(buffer);
}
示例2: PopulateMethodBodyFromBuffer
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer)
{
Integer1 = buffer.GetByte();
Integer2 = buffer.GetUInt16();
Integer3 = buffer.GetUInt32();
Integer4 = buffer.GetUInt64();
Operation = buffer.GetByte();
}
示例3: PopulateMethodBodyFromBuffer
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer)
{
DeliveryTag = buffer.GetUInt64();
bool[] bools = EncodingUtils.ReadBooleans(buffer);Redelivered = bools[0];
Exchange = EncodingUtils.ReadShortString(buffer);
RoutingKey = EncodingUtils.ReadShortString(buffer);
MessageCount = buffer.GetUInt32();
}
示例4: PopulateMethodBodyFromBuffer
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer)
{
ConsumerTag = EncodingUtils.ReadShortString(buffer);
DeliveryTag = buffer.GetUInt64();
bool[] bools = EncodingUtils.ReadBooleans(buffer);Redelivered = bools[0];
Exchange = EncodingUtils.ReadShortString(buffer);
RoutingKey = EncodingUtils.ReadShortString(buffer);
Identifier = EncodingUtils.ReadShortString(buffer);
}
示例5: ReadUnsignedLong
public static ulong ReadUnsignedLong(ByteBuffer buffer)
{
return buffer.GetUInt64();
}
示例6: PopulateMethodBodyFromBuffer
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer)
{
DeliveryTag = buffer.GetUInt64();
bool[] bools = EncodingUtils.ReadBooleans(buffer);Requeue = bools[0];
}
示例7: PopulateMethodBodyFromBuffer
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer)
{
Identifier = EncodingUtils.ReadShortString(buffer);
ContentSize = buffer.GetUInt64();
}
示例8: PopulateMethodBodyFromBuffer
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer)
{
IntegerResult = buffer.GetUInt64();
StringResult = EncodingUtils.ReadLongstr(buffer);
}
示例9: PopulateMethodBodyFromBuffer
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer)
{
Result = buffer.GetUInt64();
}
示例10: PopulatePropertiesFromBuffer
public void PopulatePropertiesFromBuffer(ByteBuffer buffer, ushort propertyFlags)
{
_log.Debug("Property flags: " + propertyFlags);
if ( (propertyFlags & (1 << 15)) > 0 )
ContentType = EncodingUtils.ReadShortString(buffer);
if ( (propertyFlags & (1 << 14)) > 0 )
Encoding = EncodingUtils.ReadShortString(buffer);
if ( (propertyFlags & (1 << 13)) > 0 )
Headers = EncodingUtils.ReadFieldTable(buffer);
if ( (propertyFlags & (1 << 12)) > 0 )
DeliveryMode = buffer.GetByte();
if ( (propertyFlags & (1 << 11)) > 0 )
Priority = buffer.GetByte();
if ( (propertyFlags & (1 << 10)) > 0 )
CorrelationId = EncodingUtils.ReadShortString(buffer);
if ( (propertyFlags & (1 << 9)) > 0 )
ReplyTo = EncodingUtils.ReadShortString(buffer);
if ( (propertyFlags & (1 << 8)) > 0 )
Expiration = EncodingUtils.ReadLongAsShortString(buffer);
if ( (propertyFlags & (1 << 7)) > 0 )
MessageId = EncodingUtils.ReadShortString(buffer);
if ( (propertyFlags & (1 << 6)) > 0 )
Timestamp = buffer.GetUInt64();
if ( (propertyFlags & (1 << 5)) > 0 )
Type = EncodingUtils.ReadShortString(buffer);
if ( (propertyFlags & (1 << 4)) > 0 )
UserId = EncodingUtils.ReadShortString(buffer);
if ( (propertyFlags & (1 << 3)) > 0 )
AppId = EncodingUtils.ReadShortString(buffer);
if ( (propertyFlags & (1 << 2)) > 0 )
ClusterId = EncodingUtils.ReadShortString(buffer);
}
示例11: PopulateMethodBodyFromBuffer
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer)
{
StagedSize = buffer.GetUInt64();
}
示例12: PopulateFromBuffer
public void PopulateFromBuffer(ByteBuffer buffer, uint size)
{
ClassId = buffer.GetUInt16();
Weight = buffer.GetUInt16();
BodySize = buffer.GetUInt64();
ushort propertyFlags = buffer.GetUInt16();
ContentHeaderPropertiesFactory factory = ContentHeaderPropertiesFactory.GetInstance();
Properties = factory.CreateContentHeaderProperties(ClassId, propertyFlags, buffer);
}