public TextAsset(string name, Permissions perm, string sourcePath) { Init(name, perm, sourcePath); _rwLock = new ReaderWriterLockSlim(); SharedStream = new SharedTextStream(new MemoryStream(), _rwLock); }
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); }