示例#1
0
 public void Visit(TypeLong type)
 {
     if (id >= 0)
     {
         sw.WriteLine(prefix + bufname + ".WriteInt(Zeze.ByteBuffer.LONG | " + id + " << Zeze.ByteBuffer.TAG_SHIFT);");
     }
     sw.WriteLine(prefix + bufname + ".WriteLong(" + varname + ");");
 }
示例#2
0
 void Visitor.Visit(TypeLong type)
 {
     if (id >= 0)
     {
         sw.WriteLine(prefix + "case (Zeze.ByteBuffer.LONG | " + id + " << Zeze.ByteBuffer.TAG_SHIFT): ");
         sw.WriteLine(prefix + "    " + varname + " = " + bufname + ".ReadLong();");
         sw.WriteLine(prefix + "    break;");
     }
     else
     {
         sw.WriteLine(prefix + varname + " = " + bufname + ".ReadLong();");
     }
 }
示例#3
0
 public void Visit(TypeLong type)
 {
     WriteProperty(type);
 }
示例#4
0
 void Visitor.Visit(TypeLong type)
 {
     text = var.NamePrivate + (isEquals ? " == " : " != ") + another + "." + var.NamePrivate;
 }
示例#5
0
 void Visitor.Visit(TypeLong type)
 {
     Type = Zeze.Serialize.ByteBuffer.LONG;
 }
示例#6
0
 void Visitor.Visit(TypeLong type)
 {
     sw.WriteLine(prefix + "if (" + varname + " < 0) return true;");
 }
示例#7
0
 void Visitor.Visit(TypeLong type)
 {
     ChangeVariableCollectorName = "Zeze.Transaction.ChangeVariableCollectorChanged()";
 }
示例#8
0
 public void Visit(TypeLong type)
 {
     text = varname + ".GetHashCode()";
 }
示例#9
0
文件: TypeName.cs 项目: e2wugui/zeze
 public void Visit(TypeLong type)
 {
     name = "long";
 }
示例#10
0
文件: Construct.cs 项目: e2wugui/zeze
 public void Visit(TypeLong type)
 {
     Initial();
 }
示例#11
0
文件: Compare.cs 项目: e2wugui/zeze
 public void Visit(TypeLong type)
 {
     text = variable.NamePrivate + ".CompareTo(" + another + "." + variable.NamePrivate + ")";
 }
示例#12
0
 public void Visit(TypeLong type)
 {
     WriteLogValue(type);
 }
示例#13
0
文件: Default.cs 项目: e2wugui/zeze
 void Visitor.Visit(TypeLong type)
 {
     SetDefaultValue("0");
 }
示例#14
0
文件: Define.cs 项目: e2wugui/zeze
 public void Visit(TypeLong type)
 {
     DefineStack(type);
 }
示例#15
0
 public void Visit(TypeLong type)
 {
     name = "bigint";
 }
示例#16
0
        public void Visit(TypeLong type)
        {
            long init = variable.Initial.Length > 0 ? long.Parse(variable.Initial) : 0;

            sw.WriteLine(prefix + "this." + variable.Name + " = " + init + "n;");
        }
示例#17
0
 void Visitor.Visit(TypeLong type)
 {
     Name = "Zeze.ByteBuffer.LONG";
 }
示例#18
0
文件: Tostring.cs 项目: e2wugui/zeze
 void Visitor.Visit(TypeLong type)
 {
     sw.WriteLine(prefix + $"sb.Append(new string(' ', level * 4)).Append(\"{var}\").Append(\"=\").Append({var}).Append(\"{sep}\").Append(Environment.NewLine);");
 }