public override void Initialize(MQMessage message) { base.type = message.ReadInt4(); base.strucLength = message.ReadInt4(); base.parameter = message.ReadInt4(); this.codedCharSetId = message.ReadInt4(); this.stringLength = message.ReadInt4(); this.stringval = Encoding.ASCII.GetString(message.Read(this.stringLength), 0, this.stringLength); int n = (4 - ((20 + this.stringLength) % 4)) % 4; message.SkipBytes(n); }
public override void Initialize(MQMessage message) { base.type = message.ReadInt4(); base.strucLength = message.ReadInt4(); base.parameter = message.ReadInt4(); this.codedCharSetId = message.ReadInt4(); this.count = message.ReadInt4(); this.stringLength = message.ReadInt4(); this.strings = new string[this.count]; for (int i = 0; i < this.count; i++) { this.strings[i] = Encoding.ASCII.GetString(message.Read(this.stringLength), 0, this.stringLength); } int n = (4 - (base.strucLength % 4)) % 4; message.SkipBytes(n); }