Esempio n. 1
0
        public override string Read(aBinaryReader reader)
        {
            var length = reader.Read16();
            var value  = reader.ReadString(length);

            return(value);
        }
Esempio n. 2
0
        public override string Read(aBinaryReader reader)
        {
            var value = base.Read(reader);

#if DEBUG
            aError.Check <Exception>(reader.ReadChar() == '\0', "BZSTR is not null-terminated.");
#else
            reader.Step(1);
#endif
            return(value);
        }
Esempio n. 3
0
        public override string Read(aBinaryReader reader)
        {
            var  sb = new StringBuilder(256);
            char c;

            while ((c = reader.ReadChar()) != '\x00')
            {
                sb.Append(c);
            }
            return(sb.ToString());
        }
Esempio n. 4
0
        public override string Read(aBinaryReader reader)
        {
            var value  = reader.ReadString(mMultiple);
            var length = value.IndexOf('\x00');

            if (length > 0)
            {
                return(value.Substring(0, length));
            }
            return(value);
        }
Esempio n. 5
0
 public abstract string Read(aBinaryReader reader);