コード例 #1
0
 public void Visit(TypeShort type)
 {
     if (id >= 0)
     {
         sw.WriteLine(prefix + "_os_.WriteInt(Zeze.ByteBuffer.SHORT | " + id + " << Zeze.ByteBuffer.TAG_SHIFT);");
     }
     sw.WriteLine(prefix + "_os_.WriteShort(" + varname + ");");
 }
コード例 #2
0
 void Visitor.Visit(TypeShort type)
 {
     if (id >= 0)
     {
         sw.WriteLine(prefix + "case (Zeze.ByteBuffer.SHORT | " + id + " << Zeze.ByteBuffer.TAG_SHIFT): ");
         sw.WriteLine(prefix + "    " + varname + " = " + bufname + ".ReadShort();");
         sw.WriteLine(prefix + "    break;");
     }
     else
     {
         sw.WriteLine(prefix + varname + " = " + bufname + ".ReadShort();");
     }
 }
コード例 #3
0
 public void Visit(TypeShort type)
 {
     WriteProperty(type);
 }
コード例 #4
0
 void Visitor.Visit(TypeShort type)
 {
     text = var.NamePrivate + (isEquals ? " == " : " != ") + another + "." + var.NamePrivate;
 }
コード例 #5
0
 void Visitor.Visit(TypeShort type)
 {
     Type = Zeze.Serialize.ByteBuffer.SHORT;
 }
コード例 #6
0
ファイル: NegativeCheck.cs プロジェクト: e2wugui/zeze
 void Visitor.Visit(TypeShort type)
 {
     sw.WriteLine(prefix + "if (" + varname + " < 0) return true;");
 }
コード例 #7
0
 void Visitor.Visit(TypeShort type)
 {
     ChangeVariableCollectorName = "Zeze.Transaction.ChangeVariableCollectorChanged()";
 }
コード例 #8
0
 public void Visit(TypeShort type)
 {
     text = varname + ".GetHashCode()";
 }
コード例 #9
0
ファイル: TypeName.cs プロジェクト: e2wugui/zeze
 public void Visit(TypeShort type)
 {
     name = "short";
 }
コード例 #10
0
ファイル: Construct.cs プロジェクト: e2wugui/zeze
 public void Visit(TypeShort type)
 {
     Initial();
 }
コード例 #11
0
ファイル: Compare.cs プロジェクト: e2wugui/zeze
 public void Visit(TypeShort type)
 {
     text = variable.NamePrivate + ".CompareTo(" + another + "." + variable.NamePrivate + ")";
 }
コード例 #12
0
 public void Visit(TypeShort type)
 {
     WriteLogValue(type);
 }
コード例 #13
0
ファイル: Default.cs プロジェクト: e2wugui/zeze
 void Visitor.Visit(TypeShort type)
 {
     SetDefaultValue("0");
 }
コード例 #14
0
ファイル: Define.cs プロジェクト: e2wugui/zeze
 public void Visit(TypeShort type)
 {
     DefineStack(type);
 }
コード例 #15
0
 public void Visit(TypeShort type)
 {
     name = "number";
 }
コード例 #16
0
 void Visitor.Visit(TypeShort type)
 {
     Name = "Zeze.ByteBuffer.SHORT";
 }
コード例 #17
0
ファイル: Tostring.cs プロジェクト: e2wugui/zeze
 void Visitor.Visit(TypeShort type)
 {
     sw.WriteLine(prefix + $"sb.Append(new string(' ', level * 4)).Append(\"{var}\").Append(\"=\").Append({var}).Append(\"{sep}\").Append(Environment.NewLine);");
 }