コード例 #1
0
 protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer)
 {
     ConsumerTag = EncodingUtils.ReadShortString(buffer);
     DeliveryTag = buffer.GetUInt64();
     Exchange = EncodingUtils.ReadShortString(buffer);
     Queue = EncodingUtils.ReadShortString(buffer);
     		 
 }
コード例 #2
0
 protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer)
 {
     Integer1 = buffer.GetByte();
     Integer2 = buffer.GetUInt16();
     Integer3 = buffer.GetUInt32();
     Integer4 = buffer.GetUInt64();
     Operation = buffer.GetByte();
     		 
 }
コード例 #3
0
 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
0
 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
0
ファイル: EncodingUtils.cs プロジェクト: drzo/opensim4opencog
 public static ulong ReadUnsignedLong(ByteBuffer buffer)
 {
    return buffer.GetUInt64();
 }
コード例 #6
0
 protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer)
 {
     DeliveryTag = buffer.GetUInt64();
     bool[] bools = EncodingUtils.ReadBooleans(buffer);Requeue = bools[0];
     		 
 }
コード例 #7
0
ファイル: FileOpenBody.cs プロジェクト: drzo/opensim4opencog
 protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer)
 {
     Identifier = EncodingUtils.ReadShortString(buffer);
     ContentSize = buffer.GetUInt64();
     		 
 }
コード例 #8
0
 protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer)
 {
     IntegerResult = buffer.GetUInt64();
     StringResult = EncodingUtils.ReadLongstr(buffer);
     		 
 }
コード例 #9
0
 protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer)
 {
     Result = buffer.GetUInt64();
     		 
 }
コード例 #10
0
 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
0
 protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer)
 {
     StagedSize = buffer.GetUInt64();
     		 
 }
コード例 #12
0
 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);    
 }