Skip to content

Instantly share code, notes, and snippets.

@noahmorrison
Created July 1, 2017 00:21
Show Gist options
  • Save noahmorrison/a0553d4ac1a0f969832cf884675469ff to your computer and use it in GitHub Desktop.
Save noahmorrison/a0553d4ac1a0f969832cf884675469ff to your computer and use it in GitHub Desktop.
Offset: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000: 00 01 00 00 00 FF FF FF FF 01 00 00 00 00 00 00 ................
00000010: 00 0C 02 00 00 00 3F 44 61 74 4D 61 6B 65 72 2C ......?DatMaker,
00000020: 20 56 65 72 73 69 6F 6E 3D 31 2E 30 2E 30 2E 30 .Version=1.0.0.0
00000030: 2C 20 43 75 6C 74 75 72 65 3D 6E 65 75 74 72 61 ,.Culture=neutra
00000040: 6C 2C 20 50 75 62 6C 69 63 4B 65 79 54 6F 6B 65 l,.PublicKeyToke
00000050: 6E 3D 6E 75 6C 6C 05 01 00 00 00 16 44 61 74 4D n=null......DatM
00000060: 61 6B 65 72 2E 44 61 74 61 53 74 72 75 63 74 75 aker.DataStructu
00000070: 72 65 05 00 00 00 08 53 6F 6D 65 45 6E 75 6D 0C re.....SomeEnum.
00000080: 53 74 72 69 6E 67 54 68 69 6E 67 73 0E 55 6E 73 StringThings.Uns
00000090: 69 67 6E 65 64 54 68 69 6E 67 73 0F 52 65 63 75 ignedThings.Recu
000000a0: 72 73 69 6F 6E 54 68 69 6E 67 73 0B 54 77 6F 44 rsionThings.TwoD
000000b0: 65 65 41 72 72 61 79 04 06 07 04 03 0F 44 61 74 eeArray......Dat
000000c0: 4D 61 6B 65 72 2E 4D 79 45 6E 75 6D 02 00 00 00 Maker.MyEnum....
000000d0: 0E 18 44 61 74 4D 61 6B 65 72 2E 44 61 74 61 53 ..DatMaker.DataS
000000e0: 74 72 75 63 74 75 72 65 5B 5D 02 00 00 00 10 53 tructure[].....S
000000f0: 79 73 74 65 6D 2E 49 6E 74 33 32 5B 5D 5B 5D 02 ystem.Int32[][].
00000100: 00 00 00 05 FD FF FF FF 0F 44 61 74 4D 61 6B 65 ....}....DatMake
00000110: 72 2E 4D 79 45 6E 75 6D 01 00 00 00 07 76 61 6C r.MyEnum.....val
00000120: 75 65 5F 5F 00 08 02 00 00 00 02 00 00 00 09 04 ue__............
00000130: 00 00 00 09 05 00 00 00 09 06 00 00 00 09 07 00 ................
00000140: 00 00 11 04 00 00 00 02 00 00 00 06 08 00 00 00 ................
00000150: 05 48 65 6C 6C 6F 06 09 00 00 00 06 57 6F 72 6C .Hello......Worl
00000160: 64 21 0F 05 00 00 00 03 00 00 00 0E 02 00 04 00 d!..............
00000170: 08 00 07 06 00 00 00 00 01 00 00 00 02 00 00 00 ................
00000180: 04 16 44 61 74 4D 61 6B 65 72 2E 44 61 74 61 53 ..DatMaker.DataS
00000190: 74 72 75 63 74 75 72 65 02 00 00 00 09 0A 00 00 tructure........
000001a0: 00 0A 07 07 00 00 00 01 01 00 00 00 03 00 00 00 ................
000001b0: 07 08 09 0B 00 00 00 09 0C 00 00 00 09 0D 00 00 ................
000001c0: 00 01 0A 00 00 00 01 00 00 00 01 F2 FF FF FF FD ...........r...}
000001d0: FF FF FF 00 00 00 00 0A 0A 0A 09 0F 00 00 00 0F ................
000001e0: 0B 00 00 00 03 00 00 00 08 01 00 00 00 02 00 00 ................
000001f0: 00 03 00 00 00 0F 0C 00 00 00 03 00 00 00 08 04 ................
00000200: 00 00 00 05 00 00 00 06 00 00 00 0F 0D 00 00 00 ................
00000210: 03 00 00 00 08 07 00 00 00 08 00 00 00 09 00 00 ................
00000220: 00 07 0F 00 00 00 01 01 00 00 00 03 00 00 00 07 ................
00000230: 08 09 10 00 00 00 0A 09 11 00 00 00 0F 10 00 00 ................
00000240: 00 03 00 00 00 08 01 00 00 00 02 00 00 00 03 00 ................
00000250: 00 00 0F 11 00 00 00 02 00 00 00 08 07 00 00 00 ................
00000260: 08 00 00 00 0B .....
{
"Header": {
"RootId": 1,
"HeaderId": -1,
"Major": 1,
"Minor": 0
},
"LibraryInfo": {
"Id": 2,
"Name": "DatMaker, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
},
"Value": [
{
"LibraryId": 2,
"Values": [
{
"Name": "SomeEnum",
"Type": {
"Value": "Class",
"AdditionalInfo": {
"TypeName": "DatMaker.MyEnum",
"LibraryId": 2
}
},
"Value": {
"LibraryId": 2,
"Values": [
{
"Name": "value__",
"Type": {
"Value": "Primitive",
"AdditionalInfo": {
"Value": "Int32"
}
},
"Value": 2
}
],
"ObjectId": -3
}
},
{
"Name": "StringThings",
"Type": {
"Value": "StringArray",
"AdditionalInfo": null
},
"Value": {
"IdRef": 4
}
},
{
"Name": "UnsignedThings",
"Type": {
"Value": "PrimitiveArray",
"AdditionalInfo": {
"Value": "UInt16"
}
},
"Value": {
"IdRef": 5
}
},
{
"Name": "RecursionThings",
"Type": {
"Value": "Class",
"AdditionalInfo": {
"TypeName": "DatMaker.DataStructure[]",
"LibraryId": 2
}
},
"Value": {
"IdRef": 6
}
},
{
"Name": "TwoDeeArray",
"Type": {
"Value": "SystemClass",
"AdditionalInfo": {
"Value": "System.Int32[][]"
}
},
"Value": {
"IdRef": 7
}
}
],
"ObjectId": 1
},
{
"Info": {
"ObjectId": 4,
"Length": 2
},
"Values": [
{
"ObjectId": 8,
"Value": "Hello"
},
{
"ObjectId": 9,
"Value": "World!"
}
]
},
{
"Info": {
"ObjectId": 5,
"Length": 3
},
"Type": {
"Value": "UInt16"
},
"Values": [
2,
4,
8
]
},
{
"ObjectId": 6,
"ArrayType": "Single",
"Rank": 1,
"Lengths": [
2
],
"LowerBounds": null,
"Type": {
"Value": "Class",
"AdditionalInfo": {
"TypeName": "DatMaker.DataStructure",
"LibraryId": 2
}
},
"Values": [
{
"IdRef": 10
},
{}
]
},
{
"ObjectId": 7,
"ArrayType": "Jagged",
"Rank": 1,
"Lengths": [
3
],
"LowerBounds": null,
"Type": {
"Value": "PrimitiveArray",
"AdditionalInfo": {
"Value": "Int32"
}
},
"Values": [
{
"IdRef": 11
},
{
"IdRef": 12
},
{
"IdRef": 13
}
]
},
{
"ObjectId": 10,
"MetadataId": 1,
"InnerClass": {
"LibraryId": 2,
"Values": [
{
"Name": "SomeEnum",
"Type": {
"Value": "Class",
"AdditionalInfo": {
"TypeName": "DatMaker.MyEnum",
"LibraryId": 2
}
},
"Value": {
"LibraryId": 2,
"Values": [
{
"Name": "value__",
"Type": {
"Value": "Primitive",
"AdditionalInfo": {
"Value": "Int32"
}
},
"Value": 2
}
],
"ObjectId": -3
}
},
{
"Name": "StringThings",
"Type": {
"Value": "StringArray",
"AdditionalInfo": null
},
"Value": {
"IdRef": 4
}
},
{
"Name": "UnsignedThings",
"Type": {
"Value": "PrimitiveArray",
"AdditionalInfo": {
"Value": "UInt16"
}
},
"Value": {
"IdRef": 5
}
},
{
"Name": "RecursionThings",
"Type": {
"Value": "Class",
"AdditionalInfo": {
"TypeName": "DatMaker.DataStructure[]",
"LibraryId": 2
}
},
"Value": {
"IdRef": 6
}
},
{
"Name": "TwoDeeArray",
"Type": {
"Value": "SystemClass",
"AdditionalInfo": {
"Value": "System.Int32[][]"
}
},
"Value": {
"IdRef": 7
}
}
],
"ObjectId": 1
},
"Values": [
{
"Name": "SomeEnum",
"Type": {
"Value": "Class",
"AdditionalInfo": {
"TypeName": "DatMaker.MyEnum",
"LibraryId": 2
}
},
"Value": {
"ObjectId": -14,
"MetadataId": -3,
"InnerClass": {
"LibraryId": 2,
"Values": [
{
"Name": "value__",
"Type": {
"Value": "Primitive",
"AdditionalInfo": {
"Value": "Int32"
}
},
"Value": 2
}
],
"ObjectId": -3
},
"Values": [
{
"Name": "value__",
"Type": {
"Value": "Primitive",
"AdditionalInfo": {
"Value": "Int32"
}
},
"Value": 0
}
]
}
},
{
"Name": "StringThings",
"Type": {
"Value": "StringArray",
"AdditionalInfo": null
},
"Value": {}
},
{
"Name": "UnsignedThings",
"Type": {
"Value": "PrimitiveArray",
"AdditionalInfo": {
"Value": "UInt16"
}
},
"Value": {}
},
{
"Name": "RecursionThings",
"Type": {
"Value": "Class",
"AdditionalInfo": {
"TypeName": "DatMaker.DataStructure[]",
"LibraryId": 2
}
},
"Value": {}
},
{
"Name": "TwoDeeArray",
"Type": {
"Value": "SystemClass",
"AdditionalInfo": {
"Value": "System.Int32[][]"
}
},
"Value": {
"IdRef": 15
}
}
]
},
{
"Info": {
"ObjectId": 11,
"Length": 3
},
"Type": {
"Value": "Int32"
},
"Values": [
1,
2,
3
]
},
{
"Info": {
"ObjectId": 12,
"Length": 3
},
"Type": {
"Value": "Int32"
},
"Values": [
4,
5,
6
]
},
{
"Info": {
"ObjectId": 13,
"Length": 3
},
"Type": {
"Value": "Int32"
},
"Values": [
7,
8,
9
]
},
{
"ObjectId": 15,
"ArrayType": "Jagged",
"Rank": 1,
"Lengths": [
3
],
"LowerBounds": null,
"Type": {
"Value": "PrimitiveArray",
"AdditionalInfo": {
"Value": "Int32"
}
},
"Values": [
{
"IdRef": 16
},
{},
{
"IdRef": 17
}
]
},
{
"Info": {
"ObjectId": 16,
"Length": 3
},
"Type": {
"Value": "Int32"
},
"Values": [
1,
2,
3
]
},
{
"Info": {
"ObjectId": 17,
"Length": 2
},
"Type": {
"Value": "Int32"
},
"Values": [
7,
8
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment