Exemple #1
0
        public void PinnableBufferCache_AllocateBuffer_Ok()
        {
            string cacheName        = "Test";
            int    numberOfElements = 5;
            PinnableBufferCache p   = new PinnableBufferCache(cacheName, numberOfElements);

            byte[] a = p.AllocateBuffer();

            Assert.Equal(numberOfElements, a.Length);
            foreach (byte t in a)
            {
                Assert.Equal(0, t);
            }
        }
 private WebSocketBufferPool(int webSocketPoolSizeInBytes)
 {
     pinnableBufferCache = new PinnableBufferCache("websocketbufferpool", BufferSize);
 }
Exemple #3
0
 private WebSocketBufferPool(int webSocketPoolSizeInBytes)
 {
     pinnableBufferCache = new PinnableBufferCache("websocketbufferpool", BufferSize);
 }