Пример #1
0
        public DataType VisitString(StringType_v2 str)
        {
            var dt = str.CharType.Accept(this);

            if (str.Termination == StringType_v2.ZeroTermination)
            {
                return(StringType.NullTerminated(dt));
            }
            throw new NotImplementedException();
        }
Пример #2
0
        public DataType VisitString(StringType_v2 str)
        {
            var dt = str.CharType.Accept(this);

            if (str.Termination == StringType_v2.ZeroTermination)
            {
                return(StringType.NullTerminated(dt));
            }
            if (str.Termination == StringType_v2.MsbTermination)
            {
                return(StringType.LengthPrefixedStringType((PrimitiveType)dt, PrimitiveType.Byte));
            }
            throw new NotImplementedException();
        }
Пример #3
0
 public StringBuilder VisitString(StringType_v2 str)
 {
     throw new NotImplementedException();
 }
Пример #4
0
 public DataType VisitString(StringType_v2 str)
 {
     throw new NotImplementedException();
 }
Пример #5
0
 public int VisitString(StringType_v2 str)
 {
     return(platform.PointerType.Size);
 }
Пример #6
0
 public bool VisitString(StringType_v2 typedef)
 {
     throw new NotImplementedException();
 }