Пример #1
0
        private static DecayPointer <T> CreateDecayedPointer(IntPtr pHeap, bool isString)
        {
            PointerMetadata meta = new PointerMetadata(Unsafe.SizeOf <T>(), true);
            var             p    = new DecayPointer <T>(pHeap, meta, isString);


            return(p);
        }
Пример #2
0
 protected bool Equals(DecayPointer <T> other)
 {
     return(base.Equals(other) && _origin.Equals(other._origin) && m_offset == other.m_offset && Count == other.Count);
 }