Example #1
0
        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)));
        }
Example #2
0
        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);
        }
Example #3
0
        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;
        }
Example #4
0
 public virtual void Clear()
 {
     Info = null;
 }
Example #5
0
 public virtual void Clear()
 {
     Info = null;
 }