コード例 #1
0
ファイル: MemoryPoolBlock.cs プロジェクト: zsybupt/corefxlab
 internal static RioMemoryPoolBlock Create(
     int offset,
     int length,
     RioMemoryPool pool,
     RioMemoryPoolSlab slab)
 {
     return(new RioMemoryPoolBlock(pool, slab, offset, length));
 }
コード例 #2
0
ファイル: MemoryPoolBlock.cs プロジェクト: zsybupt/corefxlab
        /// <summary>
        /// This object cannot be instantiated outside of the static Create method
        /// </summary>
        protected RioMemoryPoolBlock(RioMemoryPool pool, RioMemoryPoolSlab slab, int offset, int length)
        {
            _offset = offset;
            _length = length;

            Pool = pool;
            Slab = slab;
        }