コード例 #1
0
ファイル: VectorTests.cs プロジェクト: spinwards/jemalloc.NET
        public void CanConstructVectors()
        {
            NativeMemory <uint> memory = new NativeMemory <uint>(1, 11, 94, 5, 0, 0, 0, 8);
            Vector <uint>       v      = memory.AsVector();

            Assert.True(v[0] == 1);
            Assert.True(v[1] == 11);
            Assert.True(v[2] == 94);
            NativeMemory <Vector <uint> > vectors = new NativeMemory <Vector <uint> >(4);

            vectors.Retain();
        }