public virtual ClusteredArray <byte> GetBuffer()
 {
     if (!_exposable)
     {
         throw new UnauthorizedAccessException(ResourceHelper.GetResourceString("UnauthorizedAccess_MemStreamBuffer"));
     }
     return((ClusteredArray <byte>)_buffer.Clone());
 }
Example #2
0
        public virtual object Clone()
        {
            ClusteredQueue <T> newMap = new ClusteredQueue <T>();

            newMap._array      = (ClusteredArray <T>)_array.Clone();
            newMap._GrowFactor = _GrowFactor;
            newMap._head       = _head;
            newMap._size       = _size;
            newMap._version    = _version;
            return(newMap);
        }