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); } }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { ConsumerTag = EncodingUtils.ReadShortString(buffer); DeliveryTag = buffer.GetUInt64(); Exchange = EncodingUtils.ReadShortString(buffer); Queue = EncodingUtils.ReadShortString(buffer); }
private void SetFromBuffer(ByteBuffer buffer, uint length) { bool trace = _log.IsDebugEnabled; if (length > 0) { int expectedRemaining = buffer.Remaining - (int)length; _properties = new LinkedHashtable(); do { string key = EncodingUtils.ReadShortString(buffer); AMQTypedValue value = AMQTypedValue.ReadFromBuffer(buffer); if (trace) { _log.Debug(string.Format("FieldTable::PropFieldTable(buffer,{0}): Read type '{1}', key '{2}', value '{3}'", length, value.Type, key, value.Value)); } _properties.Add(key, value); } while (buffer.Remaining > expectedRemaining); _encodedSize = length; } if (trace) { _log.Debug("FieldTable::FieldTable(buffer," + length + "): Done."); } }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { ReplyCode = buffer.GetUInt16(); ReplyText = EncodingUtils.ReadShortString(buffer); Exchange = EncodingUtils.ReadShortString(buffer); RoutingKey = EncodingUtils.ReadShortString(buffer); }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { Ticket = buffer.GetUInt16(); Exchange = EncodingUtils.ReadShortString(buffer); bool[] bools = EncodingUtils.ReadBooleans(buffer); IfUnused = bools[0]; Nowait = bools[1]; }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { ClientProperties = EncodingUtils.ReadFieldTable(buffer); Mechanism = EncodingUtils.ReadShortString(buffer); Response = EncodingUtils.ReadLongstr(buffer); Locale = EncodingUtils.ReadShortString(buffer); }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { ReplyCode = buffer.GetUInt16(); ReplyText = EncodingUtils.ReadShortString(buffer); ClassId = buffer.GetUInt16(); MethodId = buffer.GetUInt16(); }
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); }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { Ticket = buffer.GetUInt16(); Exchange = EncodingUtils.ReadShortString(buffer); RoutingKey = EncodingUtils.ReadShortString(buffer); bool[] bools = EncodingUtils.ReadBooleans(buffer); Mandatory = bools[0]; Immediate = bools[1]; }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { Ticket = buffer.GetUInt16(); Queue = EncodingUtils.ReadShortString(buffer); Exchange = EncodingUtils.ReadShortString(buffer); RoutingKey = EncodingUtils.ReadShortString(buffer); bool[] bools = EncodingUtils.ReadBooleans(buffer); Nowait = bools[0]; Arguments = EncodingUtils.ReadFieldTable(buffer); }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { Ticket = buffer.GetUInt16(); Queue = EncodingUtils.ReadShortString(buffer); ConsumerTag = EncodingUtils.ReadShortString(buffer); bool[] bools = EncodingUtils.ReadBooleans(buffer); NoLocal = bools[0]; Exclusive = bools[1]; Nowait = bools[2]; }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { Realm = EncodingUtils.ReadShortString(buffer); bool[] bools = EncodingUtils.ReadBooleans(buffer); Exclusive = bools[0]; Passive = bools[1]; Active = bools[2]; Write = bools[3]; Read = bools[4]; }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { Ticket = buffer.GetUInt16(); Queue = EncodingUtils.ReadShortString(buffer); bool[] bools = EncodingUtils.ReadBooleans(buffer); Passive = bools[0]; Durable = bools[1]; Exclusive = bools[2]; AutoDelete = bools[3]; Nowait = bools[4]; Arguments = EncodingUtils.ReadFieldTable(buffer); }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { DtxIdentifier = EncodingUtils.ReadShortString(buffer); }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { Identifier = EncodingUtils.ReadShortString(buffer); ContentSize = buffer.GetUInt64(); }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { ConsumerTag = EncodingUtils.ReadShortString(buffer); bool[] bools = EncodingUtils.ReadBooleans(buffer); Nowait = bools[0]; }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { ClusterId = EncodingUtils.ReadShortString(buffer); }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { Queue = EncodingUtils.ReadShortString(buffer); MessageCount = buffer.GetUInt32(); ConsumerCount = buffer.GetUInt32(); }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { ReplyCode = buffer.GetUInt16(); ReplyText = EncodingUtils.ReadShortString(buffer); Details = EncodingUtils.ReadFieldTable(buffer); }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { VirtualHost = EncodingUtils.ReadShortString(buffer); Capabilities = EncodingUtils.ReadShortString(buffer); bool[] bools = EncodingUtils.ReadBooleans(buffer); Insist = bools[0]; }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { String1 = EncodingUtils.ReadShortString(buffer); String2 = EncodingUtils.ReadLongstr(buffer); Operation = buffer.GetByte(); }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { Exchange = EncodingUtils.ReadShortString(buffer); RoutingKey = EncodingUtils.ReadShortString(buffer); Queue = EncodingUtils.ReadShortString(buffer); }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { Ticket = buffer.GetUInt16(); Queue = EncodingUtils.ReadShortString(buffer); bool[] bools = EncodingUtils.ReadBooleans(buffer); NoAck = bools[0]; }
protected override void PopulateMethodBodyFromBuffer(ByteBuffer buffer) { KnownHosts = EncodingUtils.ReadShortString(buffer); }