Exemple #1
0
        public TextAsset(string name, Permissions perm, string sourcePath)
        {
            Init(name, perm, sourcePath);

            _rwLock      = new ReaderWriterLockSlim();
            SharedStream = new SharedTextStream(new MemoryStream(), _rwLock);
        }
Exemple #2
0
        public override IEntry Load(byte[] data)
        {
            _stream = new MemoryStream();
            _stream.Write(data, 0, data.Length);
            _stream.Position = 0;
            SharedStream     = new SharedTextStream(_stream, _rwLock) !;

            return(this);
        }