Beispiel #1
0
 public MQCommsBufferImpl(MQCommsBufferPool pool, int capacity, int hash)
 {
     base.TrConstructor("%Z% %W%  %I% %E% %U%", new object[] { pool, capacity });
     this.pool           = pool;
     this.buffer         = new byte[capacity];
     this.bufferCapacity = capacity;
     this.hashcode       = hash;
 }
Beispiel #2
0
        internal void CheckPool(MQCommsBufferPool currentPool)
        {
            uint method = 0x4ca;

            this.TrEntry(method, new object[] { currentPool });
            try
            {
                if (!this.pool.Equals(currentPool))
                {
                    this.ThrowBufferException();
                }
            }
            finally
            {
                base.TrExit(method);
            }
        }