public ClilocInfo Lookup(BinaryReader bin) { bin.BaseStream.Seek(Offset, SeekOrigin.Begin); var data = new byte[Length]; for (long i = 0; i < data.Length; i++) { data[i] = bin.ReadByte(); } return(Info = new ClilocInfo(Language, Index, Encoding.UTF8.GetString(data))); }
public bool IsNullOrEmpty(int index) { if (!Contains(index) || _table[index] == null) { return(true); } ClilocInfo info = _table[index].Lookup(InputFile); if (!String.IsNullOrWhiteSpace(info.Text)) { return(false); } return(true); }
public ClilocInfo Lookup(BinaryReader bin) { bin.BaseStream.Seek(Offset, SeekOrigin.Begin); byte[] data = new byte[Length]; for (long i = 0; i < data.Length; i++) { data[i] = bin.ReadByte(); } Info = new ClilocInfo(Language, Index, Encoding.UTF8.GetString(data)); data = null; return Info; }
public virtual void Clear() { Info = null; }