Пример #1
0
 private void Setup(SakuraiArchiveNode node, SakuraiEntryNode parent, int offset, string name)
 {
     _name   = name;
     _root   = node;
     _offset = offset;
     _parent = parent;
     if (_initSize <= 0)
     {
         _initSize = _root.GetSize(_offset);
     }
     _root.EntryCache[_offset] = this;
     if ((_externalEntry = _root.TryGetExternal(offset)) != null)
     {
         _externalEntry.References.Add(this);
     }
 }
Пример #2
0
 /// <summary>
 /// Returns the size of the entry at the given offset.
 /// </summary>
 public int GetSize(int offset)
 {
     return(_root.GetSize(offset));
 }