Permalink
Browse files

improve code generator

  • Loading branch information...
1 parent b04173c commit cf7d713cb9804364eb4e4d69328b98f1ba48410e @neuecc committed Jan 12, 2017
@@ -142,7 +142,7 @@ public virtual string TransformText()
#line default
#line hidden
- this.Write(@" Deserialize(ref byte[] bytes, int offset, DirtyTracker tracker, out int byteSize)
+ this.Write(@" Deserialize(ref byte[] bytes, int offset, global::ZeroFormatter.DirtyTracker tracker, out int byteSize)
{
byteSize = BinaryUtil.ReadInt32(ref bytes, offset);
if (byteSize == -1)
@@ -180,9 +180,9 @@ public virtual string TransformText()
#line default
#line hidden
- this.Write(" };\r\n\r\n readonly ArraySegment<byte> __originalBytes;\r\n readonly Dir" +
- "tyTracker __tracker;\r\n readonly int __binaryLastIndex;\r\n readonly " +
- "byte[] __extraFixedBytes;\r\n\r\n");
+ this.Write(" };\r\n\r\n readonly ArraySegment<byte> __originalBytes;\r\n readonly glo" +
+ "bal::ZeroFormatter.DirtyTracker __tracker;\r\n readonly int __binaryLastInd" +
+ "ex;\r\n readonly byte[] __extraFixedBytes;\r\n\r\n");
#line 73 "C:\Users\y.kawai\Documents\neuecc\ZeroFormatter\src\ZeroFormatter.CodeGenerator\ObjectGenerator.tt"
foreach(var p in t.Properties) {
@@ -413,7 +413,7 @@ public virtual string TransformText()
#line default
#line hidden
- this.Write(@"ObjectSegment(DirtyTracker dirtyTracker, ArraySegment<byte> originalBytes)
+ this.Write(@"ObjectSegment(global::ZeroFormatter.DirtyTracker dirtyTracker, ArraySegment<byte> originalBytes)
{
var __array = originalBytes.Array;
@@ -48,7 +48,7 @@ namespace <#= Namespace #>
}
}
- public override <#= t.FullName #> Deserialize(ref byte[] bytes, int offset, DirtyTracker tracker, out int byteSize)
+ public override <#= t.FullName #> Deserialize(ref byte[] bytes, int offset, global::ZeroFormatter.DirtyTracker tracker, out int byteSize)
{
byteSize = BinaryUtil.ReadInt32(ref bytes, offset);
if (byteSize == -1)
@@ -66,7 +66,7 @@ namespace <#= Namespace #>
static readonly int[] __elementSizes = new int[]{ <#= string.Join(", ", t.ElementFixedSizes) #> };
readonly ArraySegment<byte> __originalBytes;
- readonly DirtyTracker __tracker;
+ readonly global::ZeroFormatter.DirtyTracker __tracker;
readonly int __binaryLastIndex;
readonly byte[] __extraFixedBytes;
@@ -115,7 +115,7 @@ namespace <#= Namespace #>
<# } #>
- public <#= t.Name #>ObjectSegment(DirtyTracker dirtyTracker, ArraySegment<byte> originalBytes)
+ public <#= t.Name #>ObjectSegment(global::ZeroFormatter.DirtyTracker dirtyTracker, ArraySegment<byte> originalBytes)
{
var __array = originalBytes.Array;
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 7891ad55984b563479a68c6a95311de7
+timeCreated: 1483880122
+licenseType: Pro
+DefaultImporter:
+ userData:
+ assetBundleName:
+ assetBundleVariant:
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 6566771a98c11044faa809b981041651
+timeCreated: 1483880122
+licenseType: Pro
+DefaultImporter:
+ userData:
+ assetBundleName:
+ assetBundleVariant:

0 comments on commit cf7d713

Please sign in to comment.