summaryrefslogtreecommitdiff
path: root/Library/Artifacts/35/3525babbd6ddb8263aa26df5e079d048
blob: 38649a41c0797034cc64c5d6e79dc5cf9cf57b2e (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 4b 28 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......K(............2019.3.6f1..
0020 ff ff ff 01 02 00 00 00 0b 04 00 00 00 ff ff 66 9a 86 21 eb 14 35 98 39 dd 34 1d 51 0e c1 f3 42 ...............f..!..5.9.4.Q...B
0040 00 00 00 ed 00 00 00 02 00 00 00 00 00 00 00 37 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 ...............7................
0060 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 ................................
0080 00 00 00 00 00 00 00 01 00 01 00 0d 00 00 00 45 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 ...............E................
00a0 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 ...............#................
00c0 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 ...............,................
00e0 00 00 00 00 00 00 00 01 00 01 00 35 00 00 00 61 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 ...........5...a................
0100 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 ...............#................
0120 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 ...............,................
0140 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 ...............r................
0160 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 ...............#................
0180 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 ...............,................
01a0 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 ...........H....................
01c0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 ...........1...1............@...
01e0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 ................................
0200 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 ...........Q...j................
0220 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 4a 00 00 00 ff ff ff ff 0f 00 00 00 00 c0 00 00 00 ...............J................
0240 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 10 00 00 00 00 80 00 00 00 ...........1...1................
0260 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 11 00 00 00 00 00 00 00 00 ................................
0280 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 12 00 00 00 00 80 00 00 00 ...............j................
02a0 00 00 00 00 00 00 00 01 00 04 00 5c 00 00 00 9b 00 00 80 ff ff ff ff 13 00 00 00 00 80 00 00 00 ...........\....................
02c0 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 72 00 00 00 ff ff ff ff 14 00 00 00 00 80 00 00 00 ...........H...r................
02e0 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 15 00 00 00 01 40 00 00 00 ...........1...1............@...
0300 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 16 00 00 00 01 00 00 00 00 ................................
0320 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 17 00 00 00 01 00 00 00 00 ...........Q...j................
0340 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 77 00 00 00 ff ff ff ff 18 00 00 00 00 80 00 00 00 ...........H...w................
0360 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 19 00 00 00 01 40 00 00 00 ...........1...1............@...
0380 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1a 00 00 00 01 00 00 00 00 ................................
03a0 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1b 00 00 00 01 00 00 00 00 ...........Q...j................
03c0 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 80 00 00 00 ff ff ff ff 1c 00 00 00 00 80 00 00 00 ...........H....................
03e0 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 1d 00 00 00 01 40 00 00 00 ...........1...1............@...
0400 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1e 00 00 00 01 00 00 00 00 ................................
0420 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1f 00 00 00 01 00 00 00 00 ...........Q...j................
0440 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 20 00 00 00 00 00 00 00 00 ...........y....................
0460 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 21 00 00 00 01 00 80 00 00 ...............#.......!........
0480 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 22 00 00 00 01 00 80 00 00 ...............,......."........
04a0 00 00 00 00 00 00 00 01 00 01 00 11 03 00 80 85 00 00 00 ff ff ff ff 23 00 00 00 01 40 08 00 00 .......................#....@...
04c0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 24 00 00 00 01 00 08 00 00 ...........1...1.......$........
04e0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 25 00 00 00 01 00 08 00 00 .......................%........
0500 00 00 00 00 00 00 00 01 00 03 00 2e 03 00 80 6a 00 00 80 08 00 00 00 26 00 00 00 01 00 08 00 00 ...............j.......&........
0520 00 00 00 00 00 00 00 01 00 01 00 d5 03 00 80 93 00 00 00 ff ff ff ff 27 00 00 00 00 80 00 00 00 .......................'........
0540 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 28 00 00 00 00 c0 00 00 00 ...........1...1.......(........
0560 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 29 00 00 00 00 00 00 00 00 .......................)........
0580 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 2a 00 00 00 00 80 00 00 00 ...............j.......*........
05a0 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b 00 00 80 ff ff ff ff 2b 00 00 00 00 80 00 00 00 ...........H...........+........
05c0 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 00 00 80 ff ff ff ff 2c 00 00 00 01 40 00 00 00 ...........1...1.......,....@...
05e0 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b 03 00 80 04 00 00 00 2d 00 00 00 01 00 00 00 00 .......................-........
0600 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a 00 00 80 01 00 00 00 2e 00 00 00 01 00 00 00 00 ...........Q...j................
0620 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 2f 00 00 00 00 00 00 00 00 ...........y.........../........
0640 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 30 00 00 00 01 00 80 00 00 ...............#.......0........
0660 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 31 00 00 00 01 00 80 00 00 ...............,.......1........
0680 00 00 00 00 00 00 00 01 00 01 00 20 03 00 80 a7 00 00 00 02 00 00 00 32 00 00 00 00 40 00 00 00 .......................2....@...
06a0 00 00 00 00 00 00 00 01 00 01 00 be 02 00 80 b6 00 00 00 0c 00 00 00 33 00 00 00 00 40 00 00 00 .......................3....@...
06c0 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 34 00 00 00 01 00 80 00 00 ...............#.......4........
06e0 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 35 00 00 00 01 00 80 00 00 ...............,.......5........
0700 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 bb 00 00 00 ff ff ff ff 36 00 00 00 01 80 00 00 00 ...........H...........6........
0720 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 37 00 00 00 01 40 00 00 00 ...........1...1.......7....@...
0740 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 38 00 00 00 01 00 00 00 00 .......................8........
0760 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 39 00 00 00 01 00 00 00 00 ...........Q...j.......9........
0780 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 c6 00 00 00 ff ff ff ff 3a 00 00 00 01 80 00 00 00 ...........H...........:........
07a0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3b 00 00 00 01 40 00 00 00 ...........1...1.......;....@...
07c0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 3c 00 00 00 01 00 00 00 00 .......................<........
07e0 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 3d 00 00 00 01 00 00 00 00 ...........Q...j.......=........
0800 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 d8 00 00 00 ff ff ff ff 3e 00 00 00 01 80 00 00 00 ...........H...........>........
0820 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3f 00 00 00 01 40 00 00 00 ...........1...1.......?....@...
0840 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 40 00 00 00 01 00 00 00 00 .......................@........
0860 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 41 00 00 00 01 00 00 00 00 ...........Q...j.......A........
0880 00 00 00 00 00 00 00 4d 6f 6e 6f 49 6d 70 6f 72 74 65 72 00 50 50 74 72 3c 45 64 69 74 6f 72 45 .......MonoImporter.PPtr<EditorE
08a0 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 50 74 72 xtension>.m_FileID.m_PathID.PPtr
08c0 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 45 78 74 65 72 6e 61 6c 4f 62 6a 65 63 <PrefabInstance>.m_ExternalObjec
08e0 74 73 00 53 6f 75 72 63 65 41 73 73 65 74 49 64 65 6e 74 69 66 69 65 72 00 74 79 70 65 00 61 73 ts.SourceAssetIdentifier.type.as
0900 73 65 6d 62 6c 79 00 6e 61 6d 65 00 6d 5f 55 73 65 64 46 69 6c 65 49 44 73 00 6d 5f 44 65 66 61 sembly.name.m_UsedFileIDs.m_Defa
0920 75 6c 74 52 65 66 65 72 65 6e 63 65 73 00 65 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 69 63 6f ultReferences.executionOrder.ico
0940 6e 00 6d 5f 55 73 65 72 44 61 74 61 00 6d 5f 41 73 73 65 74 42 75 6e 64 6c 65 4e 61 6d 65 00 6d n.m_UserData.m_AssetBundleName.m
0960 5f 41 73 73 65 74 42 75 6e 64 6c 65 56 61 72 69 61 6e 74 00 00 00 00 00 73 00 00 00 00 ff ff a3 _AssetBundleVariant.....s.......
0980 47 f1 d7 dc 8f 5a 35 36 a0 3a 21 40 69 c1 4a 2a 00 00 00 81 00 00 00 05 00 00 00 15 01 00 80 37 G....Z56.:!@i.J*...............7
09a0 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 ................................
09c0 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00 45 ...............................E
09e0 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0a00 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0a20 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 28 00 00 00 61 ...........................(...a
0a40 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0a60 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0a80 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 ...............................r
0aa0 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0ac0 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0ae0 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab ...........................H....
0b00 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0b20 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ............@...................
0b40 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a ...........................Q...j
0b60 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ea ...........................H....
0b80 01 00 80 ff ff ff ff 0f 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0ba0 00 00 80 ff ff ff ff 10 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ............@...................
0bc0 03 00 80 04 00 00 00 11 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a ...........................Q...j
0be0 00 00 80 01 00 00 00 12 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 3d ...............................=
0c00 00 00 00 ff ff ff ff 13 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0c20 00 00 80 ff ff ff ff 14 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ................................
0c40 03 00 80 04 00 00 00 15 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a ...............................j
0c60 00 00 80 ff ff ff ff 16 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b ...........................H....
0c80 00 00 80 ff ff ff ff 17 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 ...........................1...1
0ca0 00 00 80 ff ff ff ff 18 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b ............@...................
0cc0 03 00 80 04 00 00 00 19 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a ...........................Q...j
0ce0 00 00 80 01 00 00 00 1a 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a ...........................y....
0d00 03 00 80 0c 00 00 00 1b 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 16 ................................
0d20 00 00 00 04 00 00 00 1c 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 1f ................................
0d40 00 00 00 08 00 00 00 1d 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 79 02 00 80 51 ...........................y...Q
0d60 00 00 00 0c 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0d80 00 00 00 04 00 00 00 1f 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0da0 00 00 00 08 00 00 00 20 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 de 00 00 80 58 ...............................X
0dc0 00 00 00 04 00 00 00 21 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 69 .......!...................H...i
0de0 00 00 00 ff ff ff ff 22 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ......."...................1...1
0e00 00 00 80 ff ff ff ff 23 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b .......#....@...................
0e20 03 00 80 04 00 00 00 24 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a .......$...................Q...j
0e40 00 00 80 01 00 00 00 25 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 75 .......%...................H...u
0e60 00 00 00 ff ff ff ff 26 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 .......&...................1...1
0e80 00 00 80 ff ff ff ff 27 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b .......'....@...................
0ea0 03 00 80 04 00 00 00 28 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a .......(...................Q...j
0ec0 00 00 80 01 00 00 00 29 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 50 50 74 72 3c 45 64 69 74 .......)...............PPtr<Edit
0ee0 6f 72 45 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 orExtension>.m_FileID.m_PathID.P
0f00 50 74 72 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 44 65 66 61 75 6c 74 52 65 66 Ptr<PrefabInstance>.m_DefaultRef
0f20 65 72 65 6e 63 65 73 00 6d 5f 49 63 6f 6e 00 6d 5f 45 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 erences.m_Icon.m_ExecutionOrder.
0f40 6d 5f 43 6c 61 73 73 4e 61 6d 65 00 6d 5f 4e 61 6d 65 73 70 61 63 65 00 00 00 00 00 02 00 00 00 m_ClassName.m_Namespace.........
0f60 03 00 00 00 00 00 00 00 00 00 00 00 5c 00 00 00 00 00 00 00 e0 79 af 00 00 00 00 00 60 00 00 00 ............\........y......`...
0f80 c8 3a 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .:..............................
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 e0 79 af 00 00 00 00 00 00 00 00 00 .....................y..........
1040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1080 00 00 00 00 00 00 00 00 10 00 00 00 49 6e 70 75 74 45 76 65 6e 74 42 75 66 66 65 72 5c 3a 00 00 ............InputEventBuffer\:..
10a0 75 73 69 6e 67 20 53 79 73 74 65 6d 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c using.System;..using.System.Coll
10c0 65 63 74 69 6f 6e 73 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f ections;..using.System.Collectio
10e0 6e 73 2e 47 65 6e 65 72 69 63 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 2e 43 6f 6c 6c 65 63 74 ns.Generic;..using.Unity.Collect
1100 69 6f 6e 73 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 4c ions;..using.Unity.Collections.L
1120 6f 77 4c 65 76 65 6c 2e 55 6e 73 61 66 65 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 owLevel.Unsafe;..using.UnityEngi
1140 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 55 74 69 6c 69 74 69 65 73 3b 0d 0a 0d 0a 2f 2f 2f ne.InputSystem.Utilities;....///
1160 2f 54 4f 44 4f 3a 20 62 61 74 63 68 20 61 70 70 65 6e 64 20 6d 65 74 68 6f 64 0d 0a 0d 0a 2f 2f /TODO:.batch.append.method....//
1180 2f 2f 54 4f 44 4f 3a 20 73 77 69 74 63 68 20 74 6f 20 4e 61 74 69 76 65 41 72 72 61 79 20 6c 6f //TODO:.switch.to.NativeArray.lo
11a0 6e 67 20 6c 65 6e 67 74 68 20 28 74 68 69 6e 6b 20 77 65 20 68 61 76 65 20 69 74 20 69 6e 20 55 ng.length.(think.we.have.it.in.U
11c0 6e 69 74 79 20 32 30 31 38 2e 33 29 0d 0a 0d 0a 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 63 61 6e 20 nity.2018.3)....////REVIEW:.can.
11e0 77 65 20 67 65 74 20 72 69 64 20 6f 66 20 6b 42 75 66 66 65 72 53 69 7a 65 55 6e 6b 6e 6f 77 6e we.get.rid.of.kBufferSizeUnknown
1200 20 61 6e 64 20 66 6f 72 63 65 20 73 69 7a 65 20 74 6f 20 61 6c 77 61 79 73 20 62 65 20 6b 6e 6f .and.force.size.to.always.be.kno
1220 77 6e 3f 20 28 74 68 69 6e 6b 20 74 68 69 73 20 77 6f 75 6c 64 20 68 61 76 65 20 74 6f 20 77 61 wn?.(think.this.would.have.to.wa
1240 69 74 20 75 6e 74 69 6c 0d 0a 2f 2f 2f 2f 20 20 20 20 20 20 20 20 74 68 65 20 6e 61 74 69 76 65 it.until..////........the.native
1260 20 63 68 61 6e 67 65 73 20 68 61 76 65 20 6c 61 6e 64 65 64 20 69 6e 20 32 30 31 38 2e 33 29 0d .changes.have.landed.in.2018.3).
1280 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 ...namespace.UnityEngine.InputSy
12a0 73 74 65 6d 2e 4c 6f 77 4c 65 76 65 6c 0d 0a 7b 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 stem.LowLevel..{......///.<summa
12c0 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 41 20 62 75 66 66 65 72 20 6f 66 20 72 61 77 20 6d 65 6d ry>......///.A.buffer.of.raw.mem
12e0 6f 72 79 20 68 6f 6c 64 69 6e 67 20 61 20 73 65 71 75 65 6e 63 65 20 6f 66 20 3c 73 65 65 20 63 ory.holding.a.sequence.of.<see.c
1300 72 65 66 3d 22 49 6e 70 75 74 45 76 65 6e 74 22 3e 69 6e 70 75 74 20 65 76 65 6e 74 73 3c 2f 73 ref="InputEvent">input.events</s
1320 65 65 3e 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f ee>.......///.</summary>......//
1340 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 2f 2f 2f 20 4e 6f 74 65 20 74 68 61 74 20 65 /.<remarks>......///.Note.that.e
1360 76 65 6e 74 20 62 75 66 66 65 72 73 20 61 72 65 20 6e 6f 74 20 74 68 72 65 61 64 2d 73 61 66 65 vent.buffers.are.not.thread-safe
1380 2e 20 49 74 20 69 73 20 6e 6f 74 20 73 61 66 65 20 74 6f 20 77 72 69 74 65 20 65 76 65 6e 74 73 ..It.is.not.safe.to.write.events
13a0 20 74 6f 20 74 68 65 20 62 75 66 66 65 72 0d 0a 20 20 20 20 2f 2f 2f 20 63 6f 6e 63 75 72 72 65 .to.the.buffer......///.concurre
13c0 6e 74 6c 79 20 66 72 6f 6d 20 6d 75 6c 74 69 70 6c 65 20 74 68 72 65 61 64 73 2e 20 49 74 20 69 ntly.from.multiple.threads..It.i
13e0 73 2c 20 68 6f 77 65 76 65 72 2c 20 73 61 66 65 20 74 6f 20 74 72 61 76 65 72 73 65 20 74 68 65 s,.however,.safe.to.traverse.the
1400 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 61 6e 0d 0a 20 20 20 20 2f 2f 2f 20 65 78 69 73 74 69 6e .contents.of.an......///.existin
1420 67 20 62 75 66 66 65 72 20 66 72 6f 6d 20 6d 75 6c 74 69 70 6c 65 20 74 68 72 65 61 64 73 20 61 g.buffer.from.multiple.threads.a
1440 73 20 6c 6f 6e 67 20 61 73 20 69 74 20 69 73 20 6e 6f 74 20 6d 75 74 61 74 65 64 20 61 74 20 74 s.long.as.it.is.not.mutated.at.t
1460 68 65 20 73 61 6d 65 20 74 69 6d 65 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 he.same.time.......///.</remarks
1480 3e 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 75 6e 73 61 66 65 20 73 74 72 75 63 74 20 49 6e 70 75 >......public.unsafe.struct.Inpu
14a0 74 45 76 65 6e 74 42 75 66 66 65 72 20 3a 20 49 45 6e 75 6d 65 72 61 62 6c 65 3c 49 6e 70 75 74 tEventBuffer.:.IEnumerable<Input
14c0 45 76 65 6e 74 50 74 72 3e 2c 20 49 44 69 73 70 6f 73 61 62 6c 65 2c 20 49 43 6c 6f 6e 65 61 62 EventPtr>,.IDisposable,.ICloneab
14e0 6c 65 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 63 6f 6e 73 74 20 le......{..........public.const.
1500 6c 6f 6e 67 20 42 75 66 66 65 72 53 69 7a 65 55 6e 6b 6e 6f 77 6e 20 3d 20 2d 31 3b 0d 0a 0d 0a long.BufferSizeUnknown.=.-1;....
1520 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f ........///.<summary>........../
1540 2f 2f 20 54 6f 74 61 6c 20 6e 75 6d 62 65 72 20 6f 66 20 65 76 65 6e 74 73 20 69 6e 20 74 68 65 //.Total.number.of.events.in.the
1560 20 62 75 66 66 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e .buffer...........///.</summary>
1580 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 4e 75 6d 62 65 72 20 6f 66 20 65 ..........///.<value>Number.of.e
15a0 76 65 6e 74 73 20 63 75 72 72 65 6e 74 6c 79 20 69 6e 20 74 68 65 20 62 75 66 66 65 72 2e 3c 2f vents.currently.in.the.buffer.</
15c0 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 20 65 76 65 6e 74 value>..........public.int.event
15e0 43 6f 75 6e 74 20 3d 3e 20 6d 5f 45 76 65 6e 74 43 6f 75 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 Count.=>.m_EventCount;..........
1600 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 69 7a ..///.<summary>..........///.Siz
1620 65 20 6f 66 20 74 68 65 20 75 73 65 64 20 70 6f 72 74 69 6f 6e 20 6f 66 20 74 68 65 20 62 75 66 e.of.the.used.portion.of.the.buf
1640 66 65 72 20 69 6e 20 62 79 74 65 73 2e 20 55 73 65 20 3c 73 65 65 20 63 72 65 66 3d 22 63 61 70 fer.in.bytes..Use.<see.cref="cap
1660 61 63 69 74 79 49 6e 42 79 74 65 73 22 2f 3e 20 74 6f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 acityInBytes"/>.to..........///.
1680 67 65 74 20 74 68 65 20 74 6f 74 61 6c 20 61 6c 6c 6f 63 61 74 65 64 20 73 69 7a 65 2e 0d 0a 20 get.the.total.allocated.size....
16a0 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f .......///.</summary>........../
16c0 2f 2f 20 3c 76 61 6c 75 65 3e 55 73 65 64 20 73 69 7a 65 20 6f 66 20 62 75 66 66 65 72 20 69 6e //.<value>Used.size.of.buffer.in
16e0 20 62 79 74 65 73 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 .bytes.</value>..........///.<re
1700 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 66 20 74 68 65 20 73 69 7a 65 20 marks>..........///.If.the.size.
1720 69 73 20 6e 6f 74 20 6b 6e 6f 77 6e 2c 20 72 65 74 75 72 6e 73 20 3c 73 65 65 20 63 72 65 66 3d is.not.known,.returns.<see.cref=
1740 22 42 75 66 66 65 72 53 69 7a 65 55 6e 6b 6e 6f 77 6e 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 "BufferSizeUnknown"/>...........
1760 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 4e 6f 74 65 20 74 68 61 74 20 74 68 65 20 73 ///..........///.Note.that.the.s
1780 69 7a 65 20 64 6f 65 73 20 6e 6f 74 20 75 73 75 61 6c 6c 79 20 63 6f 72 72 65 73 70 6f 6e 64 20 ize.does.not.usually.correspond.
17a0 74 6f 20 3c 73 65 65 20 63 72 65 66 3d 22 65 76 65 6e 74 43 6f 75 6e 74 22 2f 3e 20 74 69 6d 65 to.<see.cref="eventCount"/>.time
17c0 73 20 3c 63 3e 73 69 7a 65 6f 66 28 49 6e 70 75 74 45 76 65 6e 74 29 3c 2f 63 3e 2e 0d 0a 20 20 s.<c>sizeof(InputEvent)</c>.....
17e0 20 20 20 20 20 20 2f 2f 2f 20 61 73 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 45 76 65 ......///.as.<see.cref="InputEve
1800 6e 74 22 2f 3e 20 69 6e 73 74 61 6e 63 65 73 20 61 72 65 20 76 61 72 69 61 62 6c 65 20 69 6e 20 nt"/>.instances.are.variable.in.
1820 73 69 7a 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 size...........///.</remarks>...
1840 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6c 6f 6e 67 20 73 69 7a 65 49 6e 42 79 74 65 73 20 3d .......public.long.sizeInBytes.=
1860 3e 20 6d 5f 53 69 7a 65 49 6e 42 79 74 65 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 >.m_SizeInBytes;............///.
1880 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 6f 74 61 6c 20 73 69 7a <summary>..........///.Total.siz
18a0 65 20 6f 66 20 61 6c 6c 6f 63 61 74 65 64 20 6d 65 6d 6f 72 79 20 69 6e 20 62 79 74 65 73 2e 20 e.of.allocated.memory.in.bytes..
18c0 54 68 69 73 20 76 61 6c 75 65 20 6d 69 6e 75 73 20 3c 73 65 65 20 63 72 65 66 3d 22 73 69 7a 65 This.value.minus.<see.cref="size
18e0 49 6e 42 79 74 65 73 22 2f 3e 20 69 73 20 74 68 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 73 InBytes"/>.is.the..........///.s
1900 70 61 72 65 20 63 61 70 61 63 69 74 79 20 6f 66 20 74 68 65 20 62 75 66 66 65 72 2e 20 57 69 6c pare.capacity.of.the.buffer..Wil
1920 6c 20 6e 65 76 65 72 20 62 65 20 6c 65 73 73 20 74 68 61 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 l.never.be.less.than.<see.cref="
1940 73 69 7a 65 49 6e 42 79 74 65 73 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 sizeInBytes"/>...........///.</s
1960 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 53 69 7a 65 ummary>..........///.<value>Size
1980 20 6f 66 20 61 6c 6c 6f 63 61 74 65 64 20 6d 65 6d 6f 72 79 20 69 6e 20 62 79 74 65 73 2e 3c 2f .of.allocated.memory.in.bytes.</
19a0 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 value>..........///.<remarks>...
19c0 20 20 20 20 20 20 20 2f 2f 2f 20 41 20 62 75 66 66 65 72 27 73 20 63 61 70 61 63 69 74 79 20 64 .......///.A.buffer's.capacity.d
19e0 65 74 65 72 6d 69 6e 65 73 20 68 6f 77 20 6d 75 63 68 20 65 76 65 6e 74 20 64 61 74 61 20 63 61 etermines.how.much.event.data.ca
1a00 6e 20 62 65 20 77 72 69 74 74 65 6e 20 74 6f 20 74 68 65 20 62 75 66 66 65 72 20 62 65 66 6f 72 n.be.written.to.the.buffer.befor
1a20 65 20 69 74 20 68 61 73 20 74 6f 20 62 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 72 65 61 6c e.it.has.to.be..........///.real
1a40 6c 6f 63 61 74 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e located...........///.</remarks>
1a60 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6c 6f 6e 67 20 63 61 70 61 63 69 74 79 49 6e ..........public.long.capacityIn
1a80 42 79 74 65 73 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 Bytes..........{..............ge
1aa0 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 t..............{................
1ac0 20 20 69 66 20 28 21 6d 5f 42 75 66 66 65 72 2e 49 73 43 72 65 61 74 65 64 29 0d 0a 20 20 20 20 ..if.(!m_Buffer.IsCreated)......
1ae0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 30 3b 0d 0a 0d 0a 20 20 20 ................return.0;.......
1b00 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f 42 75 66 66 65 72 2e 4c 65 6e .............return.m_Buffer.Len
1b20 67 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a gth;..............}..........}..
1b40 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 ..........///.<summary>.........
1b60 20 2f 2f 2f 20 54 68 65 20 72 61 77 20 75 6e 64 65 72 6c 79 69 6e 67 20 6d 65 6d 6f 72 79 20 62 .///.The.raw.underlying.memory.b
1b80 75 66 66 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a uffer...........///.</summary>..
1ba0 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 55 6e 64 65 72 6c 79 69 6e 67 20 62 75 ........///.<value>Underlying.bu
1bc0 66 66 65 72 20 6f 66 20 75 6e 6d 61 6e 61 67 65 64 20 6d 65 6d 6f 72 79 2e 3c 2f 76 61 6c 75 65 ffer.of.unmanaged.memory.</value
1be0 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 4e 61 74 69 76 65 41 72 72 61 79 3c 62 79 >..........public.NativeArray<by
1c00 74 65 3e 20 64 61 74 61 20 3d 3e 20 6d 5f 42 75 66 66 65 72 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 te>.data.=>.m_Buffer;...........
1c20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 50 6f 69 6e .///.<summary>..........///.Poin
1c40 74 65 72 20 74 6f 20 74 68 65 20 66 69 72 73 74 20 65 76 65 6e 74 20 69 6e 20 74 68 65 20 62 75 ter.to.the.first.event.in.the.bu
1c60 66 66 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 ffer...........///.</summary>...
1c80 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 50 6f 69 6e 74 65 72 20 74 6f 20 66 69 72 .......///.<value>Pointer.to.fir
1ca0 73 74 20 65 76 65 6e 74 20 69 6e 20 62 75 66 66 65 72 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 st.event.in.buffer.</value>.....
1cc0 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 45 76 65 6e 74 50 74 72 20 62 75 66 66 65 72 .....public.InputEventPtr.buffer
1ce0 50 74 72 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 57 Ptr..........{..............//.W
1d00 68 65 6e 20 75 73 69 6e 67 20 43 6f 6e 76 65 72 74 45 78 69 73 74 69 6e 67 44 61 74 61 54 6f 4e hen.using.ConvertExistingDataToN
1d20 61 74 69 76 65 41 72 72 61 79 2c 20 74 68 65 20 4e 61 74 69 76 65 41 72 72 61 79 20 69 73 6e 27 ativeArray,.the.NativeArray.isn'
1d40 74 20 67 65 74 74 69 6e 67 20 61 20 22 73 61 66 65 74 79 20 68 61 6e 64 6c 65 22 20 28 73 65 65 t.getting.a."safety.handle".(see
1d60 6d 73 20 6c 69 6b 65 20 61 20 62 75 67 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 61 ms.like.a.bug)..............//.a
1d80 6e 64 20 63 61 6c 6c 69 6e 67 20 47 65 74 55 6e 73 61 66 65 52 65 61 64 4f 6e 6c 79 50 74 72 28 nd.calling.GetUnsafeReadOnlyPtr(
1da0 29 20 77 69 6c 6c 20 72 65 73 75 6c 74 20 69 6e 20 61 20 4e 75 6c 6c 52 65 66 65 72 65 6e 63 65 ).will.result.in.a.NullReference
1dc0 45 78 63 65 70 74 69 6f 6e 2e 20 47 65 74 20 74 68 65 20 70 6f 69 6e 74 65 72 20 77 69 74 68 6f Exception..Get.the.pointer.witho
1de0 75 74 20 63 68 65 63 6b 73 20 68 65 72 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 ut.checks.here...............get
1e00 20 7b 20 72 65 74 75 72 6e 20 28 49 6e 70 75 74 45 76 65 6e 74 2a 29 4e 61 74 69 76 65 41 72 72 .{.return.(InputEvent*)NativeArr
1e20 61 79 55 6e 73 61 66 65 55 74 69 6c 69 74 79 2e 47 65 74 55 6e 73 61 66 65 42 75 66 66 65 72 50 ayUnsafeUtility.GetUnsafeBufferP
1e40 6f 69 6e 74 65 72 57 69 74 68 6f 75 74 43 68 65 63 6b 73 28 6d 5f 42 75 66 66 65 72 29 3b 20 7d ointerWithoutChecks(m_Buffer);.}
1e60 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e ..........}............public.In
1e80 70 75 74 45 76 65 6e 74 42 75 66 66 65 72 28 49 6e 70 75 74 45 76 65 6e 74 2a 20 65 76 65 6e 74 putEventBuffer(InputEvent*.event
1ea0 50 74 72 2c 20 69 6e 74 20 65 76 65 6e 74 43 6f 75 6e 74 2c 20 69 6e 74 20 73 69 7a 65 49 6e 42 Ptr,.int.eventCount,.int.sizeInB
1ec0 79 74 65 73 20 3d 20 2d 31 2c 20 69 6e 74 20 63 61 70 61 63 69 74 79 49 6e 42 79 74 65 73 20 3d ytes.=.-1,.int.capacityInBytes.=
1ee0 20 2d 31 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 3a 20 74 68 69 73 28 29 0d 0a 20 20 20 20 .-1)..............:.this()......
1f00 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 65 76 65 6e 74 50 74 72 20 ....{..............if.(eventPtr.
1f20 3d 3d 20 6e 75 6c 6c 20 26 26 20 65 76 65 6e 74 43 6f 75 6e 74 20 21 3d 20 30 29 0d 0a 20 20 20 ==.null.&&.eventCount.!=.0).....
1f40 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 45 .............throw.new.ArgumentE
1f60 78 63 65 70 74 69 6f 6e 28 22 65 76 65 6e 74 50 74 72 20 69 73 20 4e 55 4c 4c 20 62 75 74 20 65 xception("eventPtr.is.NULL.but.e
1f80 76 65 6e 74 43 6f 75 6e 74 20 69 73 20 21 3d 20 30 22 2c 20 6e 61 6d 65 6f 66 28 65 76 65 6e 74 ventCount.is.!=.0",.nameof(event
1fa0 43 6f 75 6e 74 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 61 70 61 63 69 Count));..............if.(capaci
1fc0 74 79 49 6e 42 79 74 65 73 20 21 3d 20 30 20 26 26 20 63 61 70 61 63 69 74 79 49 6e 42 79 74 65 tyInBytes.!=.0.&&.capacityInByte
1fe0 73 20 3c 20 73 69 7a 65 49 6e 42 79 74 65 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 s.<.sizeInBytes)................
2000 20 20 74 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 45 78 63 65 70 74 69 6f 6e 28 24 22 ..throw.new.ArgumentException($"
2020 63 61 70 61 63 69 74 79 28 7b 63 61 70 61 63 69 74 79 49 6e 42 79 74 65 73 7d 29 20 63 61 6e 6e capacity({capacityInBytes}).cann
2040 6f 74 20 62 65 20 73 6d 61 6c 6c 65 72 20 74 68 61 6e 20 73 69 7a 65 28 7b 73 69 7a 65 49 6e 42 ot.be.smaller.than.size({sizeInB
2060 79 74 65 73 7d 29 22 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 61 ytes})",......................na
2080 6d 65 6f 66 28 63 61 70 61 63 69 74 79 49 6e 42 79 74 65 73 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 meof(capacityInBytes));.........
20a0 20 20 20 20 20 20 20 69 66 20 28 65 76 65 6e 74 50 74 72 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 .......if.(eventPtr.!=.null)....
20c0 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 ..........{..................if.
20e0 28 63 61 70 61 63 69 74 79 49 6e 42 79 74 65 73 20 3c 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 (capacityInBytes.<.0)...........
2100 20 20 20 20 20 20 20 20 20 20 20 63 61 70 61 63 69 74 79 49 6e 42 79 74 65 73 20 3d 20 73 69 7a ...........capacityInBytes.=.siz
2120 65 49 6e 42 79 74 65 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 eInBytes;....................m_B
2140 75 66 66 65 72 20 3d 20 4e 61 74 69 76 65 41 72 72 61 79 55 6e 73 61 66 65 55 74 69 6c 69 74 79 uffer.=.NativeArrayUnsafeUtility
2160 2e 43 6f 6e 76 65 72 74 45 78 69 73 74 69 6e 67 44 61 74 61 54 6f 4e 61 74 69 76 65 41 72 72 61 .ConvertExistingDataToNativeArra
2180 79 3c 62 79 74 65 3e 28 65 76 65 6e 74 50 74 72 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 y<byte>(eventPtr,...............
21a0 20 20 20 20 20 20 20 63 61 70 61 63 69 74 79 49 6e 42 79 74 65 73 20 3e 20 30 20 3f 20 63 61 70 .......capacityInBytes.>.0.?.cap
21c0 61 63 69 74 79 49 6e 42 79 74 65 73 20 3a 20 30 2c 20 41 6c 6c 6f 63 61 74 6f 72 2e 4e 6f 6e 65 acityInBytes.:.0,.Allocator.None
21e0 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 69 7a 65 49 6e 42 79 74 65 );..................m_SizeInByte
2200 73 20 3d 20 73 69 7a 65 49 6e 42 79 74 65 73 20 3e 3d 20 30 20 3f 20 73 69 7a 65 49 6e 42 79 74 s.=.sizeInBytes.>=.0.?.sizeInByt
2220 65 73 20 3a 20 42 75 66 66 65 72 53 69 7a 65 55 6e 6b 6e 6f 77 6e 3b 0d 0a 20 20 20 20 20 20 20 es.:.BufferSizeUnknown;.........
2240 20 20 20 20 20 20 20 20 20 6d 5f 45 76 65 6e 74 43 6f 75 6e 74 20 3d 20 65 76 65 6e 74 43 6f 75 .........m_EventCount.=.eventCou
2260 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 57 65 4f 77 6e 54 68 65 42 nt;..................m_WeOwnTheB
2280 75 66 66 65 72 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 uffer.=.false;..............}...
22a0 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 .......}............public.Input
22c0 45 76 65 6e 74 42 75 66 66 65 72 28 4e 61 74 69 76 65 41 72 72 61 79 3c 62 79 74 65 3e 20 62 75 EventBuffer(NativeArray<byte>.bu
22e0 66 66 65 72 2c 20 69 6e 74 20 65 76 65 6e 74 43 6f 75 6e 74 2c 20 69 6e 74 20 73 69 7a 65 49 6e ffer,.int.eventCount,.int.sizeIn
2300 42 79 74 65 73 20 3d 20 2d 31 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 Bytes.=.-1)..........{..........
2320 20 20 20 20 69 66 20 28 65 76 65 6e 74 43 6f 75 6e 74 20 3e 20 30 20 26 26 20 21 62 75 66 66 65 ....if.(eventCount.>.0.&&.!buffe
2340 72 2e 49 73 43 72 65 61 74 65 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 r.IsCreated)..................th
2360 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 45 78 63 65 70 74 69 6f 6e 28 22 62 75 66 66 65 row.new.ArgumentException("buffe
2380 72 20 68 61 73 20 6e 6f 20 64 61 74 61 20 62 75 74 20 65 76 65 6e 74 43 6f 75 6e 74 20 69 73 20 r.has.no.data.but.eventCount.is.
23a0 3e 20 30 22 2c 20 6e 61 6d 65 6f 66 28 65 76 65 6e 74 43 6f 75 6e 74 29 29 3b 0d 0a 20 20 20 20 >.0",.nameof(eventCount));......
23c0 20 20 20 20 20 20 20 20 69 66 20 28 73 69 7a 65 49 6e 42 79 74 65 73 20 3e 20 62 75 66 66 65 72 ........if.(sizeInBytes.>.buffer
23e0 2e 4c 65 6e 67 74 68 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f 77 20 .Length)..................throw.
2400 6e 65 77 20 41 72 67 75 6d 65 6e 74 4f 75 74 4f 66 52 61 6e 67 65 45 78 63 65 70 74 69 6f 6e 28 new.ArgumentOutOfRangeException(
2420 6e 61 6d 65 6f 66 28 73 69 7a 65 49 6e 42 79 74 65 73 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 nameof(sizeInBytes));...........
2440 20 20 20 20 20 6d 5f 42 75 66 66 65 72 20 3d 20 62 75 66 66 65 72 3b 0d 0a 20 20 20 20 20 20 20 .....m_Buffer.=.buffer;.........
2460 20 20 20 20 20 6d 5f 57 65 4f 77 6e 54 68 65 42 75 66 66 65 72 20 3d 20 66 61 6c 73 65 3b 0d 0a .....m_WeOwnTheBuffer.=.false;..
2480 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 69 7a 65 49 6e 42 79 74 65 73 20 3d 20 73 69 7a 65 ............m_SizeInBytes.=.size
24a0 49 6e 42 79 74 65 73 20 3e 3d 20 30 20 3f 20 73 69 7a 65 49 6e 42 79 74 65 73 20 3a 20 62 75 66 InBytes.>=.0.?.sizeInBytes.:.buf
24c0 66 65 72 2e 4c 65 6e 67 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 45 76 65 6e 74 fer.Length;..............m_Event
24e0 43 6f 75 6e 74 20 3d 20 65 76 65 6e 74 43 6f 75 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a Count.=.eventCount;..........}..
2500 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 ..........///.<summary>.........
2520 20 2f 2f 2f 20 41 70 70 65 6e 64 20 61 20 6e 65 77 20 65 76 65 6e 74 20 74 6f 20 74 68 65 20 65 .///.Append.a.new.event.to.the.e
2540 6e 64 20 6f 66 20 74 68 65 20 62 75 66 66 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c nd.of.the.buffer...........///.<
2560 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 /summary>..........///.<param.na
2580 6d 65 3d 22 65 76 65 6e 74 50 74 72 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 me="eventPtr"></param>..........
25a0 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 63 61 70 61 63 69 74 79 49 6e 63 72 65 6d 65 ///.<param.name="capacityIncreme
25c0 6e 74 49 6e 42 79 74 65 73 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f ntInBytes"></param>..........///
25e0 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d 22 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 .<exception.cref="ArgumentNullEx
2600 63 65 70 74 69 6f 6e 22 3e 3c 2f 65 78 63 65 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 2f ception"></exception>........../
2620 2f 2f 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d 22 41 72 67 75 6d 65 6e 74 45 78 63 65 //.<exception.cref="ArgumentExce
2640 70 74 69 6f 6e 22 3e 3c 2f 65 78 63 65 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f ption"></exception>..........///
2660 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 66 20 74 68 65 20 62 .<remarks>..........///.If.the.b
2680 75 66 66 65 72 27 73 20 63 75 72 72 65 6e 74 20 3c 73 65 65 20 63 72 65 66 3d 22 63 61 70 61 63 uffer's.current.<see.cref="capac
26a0 69 74 79 49 6e 42 79 74 65 73 22 3e 63 61 70 61 63 69 74 79 3c 2f 73 65 65 3e 20 69 73 20 73 6d ityInBytes">capacity</see>.is.sm
26c0 61 6c 6c 65 72 20 74 68 61 6e 20 74 68 65 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 45 aller.than.the.<see.cref="InputE
26e0 76 65 6e 74 2e 73 69 7a 65 49 6e 42 79 74 65 73 22 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 vent.sizeInBytes">..........///.
2700 73 69 7a 65 3c 2f 73 65 65 3e 20 6f 66 20 74 68 65 20 67 69 76 65 6e 20 3c 70 61 72 61 6d 72 65 size</see>.of.the.given.<paramre
2720 66 20 6e 61 6d 65 3d 22 65 76 65 6e 74 50 74 72 22 3e 65 76 65 6e 74 3c 2f 70 61 72 61 6d 72 65 f.name="eventPtr">event</paramre
2740 66 3e 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 f>,..........///.</remarks>.....
2760 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 41 70 70 65 6e 64 45 76 65 6e 74 28 49 6e 70 .....public.void.AppendEvent(Inp
2780 75 74 45 76 65 6e 74 2a 20 65 76 65 6e 74 50 74 72 2c 20 69 6e 74 20 63 61 70 61 63 69 74 79 49 utEvent*.eventPtr,.int.capacityI
27a0 6e 63 72 65 6d 65 6e 74 49 6e 42 79 74 65 73 20 3d 20 32 30 34 38 29 0d 0a 20 20 20 20 20 20 20 ncrementInBytes.=.2048).........
27c0 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 65 76 65 6e 74 50 74 72 20 3d 3d 20 .{..............if.(eventPtr.==.
27e0 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f 77 20 6e 65 77 null)..................throw.new
2800 20 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 65 76 .ArgumentNullException(nameof(ev
2820 65 6e 74 50 74 72 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 6c 6c 6f entPtr));................//.Allo
2840 63 61 74 65 20 73 70 61 63 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 65 76 65 cate.space...............var.eve
2860 6e 74 53 69 7a 65 49 6e 42 79 74 65 73 20 3d 20 65 76 65 6e 74 50 74 72 2d 3e 73 69 7a 65 49 6e ntSizeInBytes.=.eventPtr->sizeIn
2880 42 79 74 65 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 64 65 73 74 69 6e 61 74 Bytes;..............var.destinat
28a0 69 6f 6e 50 74 72 20 3d 20 41 6c 6c 6f 63 61 74 65 45 76 65 6e 74 28 28 69 6e 74 29 65 76 65 6e ionPtr.=.AllocateEvent((int)even
28c0 74 53 69 7a 65 49 6e 42 79 74 65 73 2c 20 63 61 70 61 63 69 74 79 49 6e 63 72 65 6d 65 6e 74 49 tSizeInBytes,.capacityIncrementI
28e0 6e 42 79 74 65 73 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 6f 70 79 20 nBytes);................//.Copy.
2900 65 76 65 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 55 6e 73 61 66 65 55 74 69 6c 69 74 event...............UnsafeUtilit
2920 79 2e 4d 65 6d 43 70 79 28 64 65 73 74 69 6e 61 74 69 6f 6e 50 74 72 2c 20 65 76 65 6e 74 50 74 y.MemCpy(destinationPtr,.eventPt
2940 72 2c 20 65 76 65 6e 74 53 69 7a 65 49 6e 42 79 74 65 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d r,.eventSizeInBytes);..........}
2960 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 45 76 65 6e 74 2a 20 41 ............public.InputEvent*.A
2980 6c 6c 6f 63 61 74 65 45 76 65 6e 74 28 69 6e 74 20 73 69 7a 65 49 6e 42 79 74 65 73 2c 20 69 6e llocateEvent(int.sizeInBytes,.in
29a0 74 20 63 61 70 61 63 69 74 79 49 6e 63 72 65 6d 65 6e 74 49 6e 42 79 74 65 73 20 3d 20 32 30 34 t.capacityIncrementInBytes.=.204
29c0 38 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 8)..........{..............if.(s
29e0 69 7a 65 49 6e 42 79 74 65 73 20 3c 20 49 6e 70 75 74 45 76 65 6e 74 2e 6b 42 61 73 65 45 76 65 izeInBytes.<.InputEvent.kBaseEve
2a00 6e 74 53 69 7a 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f 77 20 6e ntSize)..................throw.n
2a20 65 77 20 41 72 67 75 6d 65 6e 74 45 78 63 65 70 74 69 6f 6e 28 0d 0a 20 20 20 20 20 20 20 20 20 ew.ArgumentException(...........
2a40 20 20 20 20 20 20 20 20 20 20 20 24 22 73 69 7a 65 49 6e 42 79 74 65 73 20 6d 75 73 74 20 62 65 ...........$"sizeInBytes.must.be
2a60 20 3e 3d 20 73 69 7a 65 6f 66 28 49 6e 70 75 74 45 76 65 6e 74 29 20 3d 3d 20 7b 49 6e 70 75 74 .>=.sizeof(InputEvent).==.{Input
2a80 45 76 65 6e 74 2e 6b 42 61 73 65 45 76 65 6e 74 53 69 7a 65 7d 20 28 77 61 73 20 7b 73 69 7a 65 Event.kBaseEventSize}.(was.{size
2aa0 49 6e 42 79 74 65 73 7d 29 22 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 InBytes})",.....................
2ac0 20 6e 61 6d 65 6f 66 28 73 69 7a 65 49 6e 42 79 74 65 73 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 .nameof(sizeInBytes));..........
2ae0 20 20 20 20 20 20 76 61 72 20 61 6c 69 67 6e 65 64 53 69 7a 65 49 6e 42 79 74 65 73 20 3d 20 73 ......var.alignedSizeInBytes.=.s
2b00 69 7a 65 49 6e 42 79 74 65 73 2e 41 6c 69 67 6e 54 6f 4d 75 6c 74 69 70 6c 65 4f 66 28 49 6e 70 izeInBytes.AlignToMultipleOf(Inp
2b20 75 74 45 76 65 6e 74 2e 6b 41 6c 69 67 6e 6d 65 6e 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 utEvent.kAlignment);............
2b40 20 20 20 20 2f 2f 20 53 65 65 20 69 66 20 77 65 20 6e 65 65 64 20 74 6f 20 65 6e 6c 61 72 67 65 ....//.See.if.we.need.to.enlarge
2b60 20 6f 75 72 20 62 75 66 66 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 75 .our.buffer...............var.cu
2b80 72 72 65 6e 74 43 61 70 61 63 69 74 79 20 3d 20 63 61 70 61 63 69 74 79 49 6e 42 79 74 65 73 3b rrentCapacity.=.capacityInBytes;
2ba0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 75 72 72 65 6e 74 43 61 70 61 63 69 74 ..............if.(currentCapacit
2bc0 79 20 3c 20 61 6c 69 67 6e 65 64 53 69 7a 65 49 6e 42 79 74 65 73 29 0d 0a 20 20 20 20 20 20 20 y.<.alignedSizeInBytes).........
2be0 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 59 65 73 2c 20 .....{..................//.Yes,.
2c00 73 6f 20 72 65 61 6c 6c 6f 63 61 74 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 so.reallocate...................
2c20 76 61 72 20 6e 65 77 43 61 70 61 63 69 74 79 20 3d 20 4d 61 74 68 2e 4d 61 78 28 63 75 72 72 65 var.newCapacity.=.Math.Max(curre
2c40 6e 74 43 61 70 61 63 69 74 79 20 2b 20 63 61 70 61 63 69 74 79 49 6e 63 72 65 6d 65 6e 74 49 6e ntCapacity.+.capacityIncrementIn
2c60 42 79 74 65 73 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 75 72 72 Bytes,......................curr
2c80 65 6e 74 43 61 70 61 63 69 74 79 20 2b 20 61 6c 69 67 6e 65 64 53 69 7a 65 49 6e 42 79 74 65 73 entCapacity.+.alignedSizeInBytes
2ca0 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 65 77 53 69 7a 65 20 );..................var.newSize.
2cc0 3d 20 74 68 69 73 2e 73 69 7a 65 49 6e 42 79 74 65 73 20 2b 20 6e 65 77 43 61 70 61 63 69 74 79 =.this.sizeInBytes.+.newCapacity
2ce0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6e 65 77 53 69 7a 65 20 3e ;..................if.(newSize.>
2d00 20 69 6e 74 2e 4d 61 78 56 61 6c 75 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .int.MaxValue)..................
2d20 20 20 20 20 74 68 72 6f 77 20 6e 65 77 20 4e 6f 74 49 6d 70 6c 65 6d 65 6e 74 65 64 45 78 63 65 ....throw.new.NotImplementedExce
2d40 70 74 69 6f 6e 28 22 4e 61 74 69 76 65 41 72 72 61 79 20 6c 6f 6e 67 20 73 75 70 70 6f 72 74 22 ption("NativeArray.long.support"
2d60 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 65 77 42 75 66 66 65 );..................var.newBuffe
2d80 72 20 3d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 77 20 4e 61 74 r.=......................new.Nat
2da0 69 76 65 41 72 72 61 79 3c 62 79 74 65 3e 28 28 69 6e 74 29 6e 65 77 53 69 7a 65 2c 20 41 6c 6c iveArray<byte>((int)newSize,.All
2dc0 6f 63 61 74 6f 72 2e 50 65 72 73 69 73 74 65 6e 74 2c 20 4e 61 74 69 76 65 41 72 72 61 79 4f 70 ocator.Persistent,.NativeArrayOp
2de0 74 69 6f 6e 73 2e 43 6c 65 61 72 4d 65 6d 6f 72 79 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 tions.ClearMemory);.............
2e00 20 20 20 20 20 20 20 69 66 20 28 6d 5f 42 75 66 66 65 72 2e 49 73 43 72 65 61 74 65 64 29 0d 0a .......if.(m_Buffer.IsCreated)..
2e20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 55 6e 73 61 66 65 55 74 69 6c 69 74 ....................UnsafeUtilit
2e40 79 2e 4d 65 6d 43 70 79 28 6e 65 77 42 75 66 66 65 72 2e 47 65 74 55 6e 73 61 66 65 50 74 72 28 y.MemCpy(newBuffer.GetUnsafePtr(
2e60 29 2c 20 6d 5f 42 75 66 66 65 72 2e 47 65 74 55 6e 73 61 66 65 52 65 61 64 4f 6e 6c 79 50 74 72 ),.m_Buffer.GetUnsafeReadOnlyPtr
2e80 28 29 2c 20 74 68 69 73 2e 73 69 7a 65 49 6e 42 79 74 65 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 (),.this.sizeInBytes);..........
2ea0 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ........else....................
2ec0 20 20 6d 5f 53 69 7a 65 49 6e 42 79 74 65 73 20 3d 20 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 ..m_SizeInBytes.=.0;............
2ee0 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 57 65 4f 77 6e 54 68 65 42 75 66 66 65 72 29 0d 0a 20 ........if.(m_WeOwnTheBuffer)...
2f00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 75 66 66 65 72 2e 44 69 73 70 ...................m_Buffer.Disp
2f20 6f 73 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 75 66 66 65 72 ose();..................m_Buffer
2f40 20 3d 20 6e 65 77 42 75 66 66 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d .=.newBuffer;..................m
2f60 5f 57 65 4f 77 6e 54 68 65 42 75 66 66 65 72 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 _WeOwnTheBuffer.=.true;.........
2f80 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 65 76 65 6e 74 50 .....}................var.eventP
2fa0 74 72 20 3d 20 28 49 6e 70 75 74 45 76 65 6e 74 2a 29 28 28 62 79 74 65 2a 29 6d 5f 42 75 66 66 tr.=.(InputEvent*)((byte*)m_Buff
2fc0 65 72 2e 47 65 74 55 6e 73 61 66 65 50 74 72 28 29 20 2b 20 6d 5f 53 69 7a 65 49 6e 42 79 74 65 er.GetUnsafePtr().+.m_SizeInByte
2fe0 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 76 65 6e 74 50 74 72 2d 3e 73 69 7a 65 49 s);..............eventPtr->sizeI
3000 6e 42 79 74 65 73 20 3d 20 28 75 69 6e 74 29 73 69 7a 65 49 6e 42 79 74 65 73 3b 0d 0a 20 20 20 nBytes.=.(uint)sizeInBytes;.....
3020 20 20 20 20 20 20 20 20 20 6d 5f 53 69 7a 65 49 6e 42 79 74 65 73 20 2b 3d 20 61 6c 69 67 6e 65 .........m_SizeInBytes.+=.aligne
3040 64 53 69 7a 65 49 6e 42 79 74 65 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2b 2b 6d 5f 45 dSizeInBytes;..............++m_E
3060 76 65 6e 74 43 6f 75 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e ventCount;................return
3080 20 65 76 65 6e 74 50 74 72 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 .eventPtr;..........}...........
30a0 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 68 65 74 .///.<summary>..........///.Whet
30c0 68 65 72 20 74 68 65 20 67 69 76 65 6e 20 65 76 65 6e 74 20 70 6f 69 6e 74 65 72 20 72 65 66 65 her.the.given.event.pointer.refe
30e0 72 73 20 74 6f 20 64 61 74 61 20 77 69 74 68 69 6e 20 74 68 65 20 65 76 65 6e 74 20 62 75 66 66 rs.to.data.within.the.event.buff
3100 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 er...........///.</summary>.....
3120 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 65 76 65 6e 74 50 74 72 22 3e .....///.<param.name="eventPtr">
3140 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 3c </param>..........///.<returns><
3160 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e /returns>..........///.<remarks>
3180 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 4e 6f 74 65 20 74 68 61 74 20 74 68 69 73 20 6d 65 74 ..........///.Note.that.this.met
31a0 68 6f 64 20 64 6f 65 73 20 4e 4f 54 20 63 68 65 63 6b 20 77 68 65 74 68 65 72 20 74 68 65 20 67 hod.does.NOT.check.whether.the.g
31c0 69 76 65 6e 20 70 6f 69 6e 74 65 72 20 70 6f 69 6e 74 73 20 74 6f 20 61 6e 20 61 63 74 75 61 6c iven.pointer.points.to.an.actual
31e0 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 65 76 65 6e 74 20 69 6e 20 74 68 65 20 62 75 66 66 65 ..........///.event.in.the.buffe
3200 72 2e 20 49 74 20 73 6f 6c 65 6c 79 20 70 65 72 66 6f 72 6d 73 20 61 20 70 6f 69 6e 74 65 72 20 r..It.solely.performs.a.pointer.
3220 6f 75 74 2d 6f 66 2d 62 6f 75 6e 64 73 20 63 68 65 63 6b 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f out-of-bounds.check...........//
3240 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 6c 73 6f 20 6e 6f 74 65 20 74 68 61 74 20 69 66 /..........///.Also.note.that.if
3260 20 74 68 65 20 73 69 7a 65 20 6f 66 20 74 68 65 20 6d 65 6d 6f 72 79 20 62 75 66 66 65 72 20 69 .the.size.of.the.memory.buffer.i
3280 73 20 75 6e 6b 6e 6f 77 6e 20 28 3c 73 65 65 20 63 72 65 66 3d 22 42 75 66 66 65 72 53 69 7a 65 s.unknown.(<see.cref="BufferSize
32a0 55 6e 6b 6e 6f 77 6e 22 2f 3e 2c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6f 6e 6c 79 20 61 20 Unknown"/>,..........///.only.a.
32c0 6c 6f 77 65 72 2d 62 6f 75 6e 64 73 20 63 68 65 63 6b 20 69 73 20 70 65 72 66 6f 72 6d 65 64 2e lower-bounds.check.is.performed.
32e0 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 ..........///.</remarks>........
3300 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 43 6f 6e 74 61 69 6e 73 28 49 6e 70 75 74 45 76 65 6e ..public.bool.Contains(InputEven
3320 74 2a 20 65 76 65 6e 74 50 74 72 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 t*.eventPtr)..........{.........
3340 20 20 20 20 20 69 66 20 28 65 76 65 6e 74 50 74 72 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 .....if.(eventPtr.==.null)......
3360 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 0d 0a 20 20 20 ............return.false;.......
3380 20 20 20 20 20 20 20 20 20 69 66 20 28 73 69 7a 65 49 6e 42 79 74 65 73 20 3d 3d 20 30 29 0d 0a .........if.(sizeInBytes.==.0)..
33a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 0d ................return.false;...
33c0 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 75 66 66 65 72 50 74 72 20 3d 20 4e 61 74 .............var.bufferPtr.=.Nat
33e0 69 76 65 41 72 72 61 79 55 6e 73 61 66 65 55 74 69 6c 69 74 79 2e 47 65 74 55 6e 73 61 66 65 42 iveArrayUnsafeUtility.GetUnsafeB
3400 75 66 66 65 72 50 6f 69 6e 74 65 72 57 69 74 68 6f 75 74 43 68 65 63 6b 73 28 64 61 74 61 29 3b ufferPointerWithoutChecks(data);
3420 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 65 76 65 6e 74 50 74 72 20 3c 20 62 75 66 ..............if.(eventPtr.<.buf
3440 66 65 72 50 74 72 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 ferPtr)..................return.
3460 66 61 6c 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 69 7a 65 49 6e false;................if.(sizeIn
3480 42 79 74 65 73 20 21 3d 20 42 75 66 66 65 72 53 69 7a 65 55 6e 6b 6e 6f 77 6e 20 26 26 20 65 76 Bytes.!=.BufferSizeUnknown.&&.ev
34a0 65 6e 74 50 74 72 20 3e 3d 20 28 62 79 74 65 2a 29 62 75 66 66 65 72 50 74 72 20 2b 20 73 69 7a entPtr.>=.(byte*)bufferPtr.+.siz
34c0 65 49 6e 42 79 74 65 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 eInBytes)..................retur
34e0 6e 20 66 61 6c 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 n.false;................return.t
3500 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 rue;..........}............publi
3520 63 20 76 6f 69 64 20 52 65 73 65 74 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 c.void.Reset()..........{.......
3540 20 20 20 20 20 20 20 6d 5f 45 76 65 6e 74 43 6f 75 6e 74 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 .......m_EventCount.=.0;........
3560 20 20 20 20 20 20 69 66 20 28 6d 5f 53 69 7a 65 49 6e 42 79 74 65 73 20 21 3d 20 42 75 66 66 65 ......if.(m_SizeInBytes.!=.Buffe
3580 72 53 69 7a 65 55 6e 6b 6e 6f 77 6e 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d rSizeUnknown)..................m
35a0 5f 53 69 7a 65 49 6e 42 79 74 65 73 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a _SizeInBytes.=.0;..........}....
35c0 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f ........///.<summary>........../
35e0 2f 2f 20 41 64 76 61 6e 63 65 20 74 68 65 20 72 65 61 64 20 70 6f 73 69 74 69 6f 6e 20 74 6f 20 //.Advance.the.read.position.to.
3600 74 68 65 20 6e 65 78 74 20 65 76 65 6e 74 20 69 6e 20 74 68 65 20 62 75 66 66 65 72 2c 20 70 72 the.next.event.in.the.buffer,.pr
3620 65 73 65 72 76 69 6e 67 20 6f 72 20 6e 6f 74 20 70 72 65 73 65 72 76 69 6e 67 20 74 68 65 0d 0a eserving.or.not.preserving.the..
3640 20 20 20 20 20 20 20 20 2f 2f 2f 20 63 75 72 72 65 6e 74 20 65 76 65 6e 74 20 64 65 70 65 6e 64 ........///.current.event.depend
3660 69 6e 67 20 6f 6e 20 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 6c 65 61 76 65 45 76 65 6e ing.on.<paramref.name="leaveEven
3680 74 49 6e 42 75 66 66 65 72 22 2f 3e 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d tInBuffer"/>...........///.</sum
36a0 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 mary>..........///.<param.name="
36c0 63 75 72 72 65 6e 74 52 65 61 64 50 6f 73 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 currentReadPos"></param>........
36e0 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 63 75 72 72 65 6e 74 57 72 69 74 65 50 ..///.<param.name="currentWriteP
3700 6f 73 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d os"></param>..........///.<param
3720 20 6e 61 6d 65 3d 22 6e 75 6d 45 76 65 6e 74 73 52 65 74 61 69 6e 65 64 49 6e 42 75 66 66 65 72 .name="numEventsRetainedInBuffer
3740 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e "></param>..........///.<param.n
3760 61 6d 65 3d 22 6e 75 6d 52 65 6d 61 69 6e 69 6e 67 45 76 65 6e 74 73 22 3e 3c 2f 70 61 72 61 6d ame="numRemainingEvents"></param
3780 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 6c 65 61 76 >..........///.<param.name="leav
37a0 65 45 76 65 6e 74 49 6e 42 75 66 66 65 72 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 eEventInBuffer"></param>........
37c0 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 ..///.<remarks>..........///.Thi
37e0 73 20 6d 65 74 68 6f 64 20 4d 55 53 54 20 4f 4e 4c 59 20 42 45 20 43 41 4c 4c 45 44 20 69 66 20 s.method.MUST.ONLY.BE.CALLED.if.
3800 74 68 65 20 63 75 72 72 65 6e 74 20 65 76 65 6e 74 20 68 61 73 20 62 65 65 6e 20 66 75 6c 6c 79 the.current.event.has.been.fully
3820 20 70 72 6f 63 65 73 73 65 64 2e 20 49 66 20 74 68 65 20 61 74 20 3c 70 61 72 61 6d 72 65 66 20 .processed..If.the.at.<paramref.
3840 6e 61 6d 65 3d 22 63 75 72 72 65 6e 74 57 72 69 74 65 50 6f 73 22 2f 3e 0d 0a 20 20 20 20 20 20 name="currentWritePos"/>........
3860 20 20 2f 2f 2f 20 69 73 20 73 6d 61 6c 6c 65 72 20 74 68 61 6e 20 74 68 65 20 63 75 72 72 65 6e ..///.is.smaller.than.the.curren
3880 74 20 65 76 65 6e 74 2c 20 74 68 65 6e 20 74 68 69 73 20 6d 65 74 68 6f 64 20 77 69 6c 6c 20 4f t.event,.then.this.method.will.O
38a0 56 45 52 57 52 49 54 45 20 70 61 72 74 73 20 6f 72 20 61 6c 6c 20 6f 66 20 74 68 65 20 63 75 72 VERWRITE.parts.or.all.of.the.cur
38c0 72 65 6e 74 20 65 76 65 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 rent.event...........///.</remar
38e0 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 76 6f 69 64 20 41 64 76 61 6e ks>..........internal.void.Advan
3900 63 65 54 6f 4e 65 78 74 45 76 65 6e 74 28 72 65 66 20 49 6e 70 75 74 45 76 65 6e 74 2a 20 63 75 ceToNextEvent(ref.InputEvent*.cu
3920 72 72 65 6e 74 52 65 61 64 50 6f 73 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 66 20 49 rrentReadPos,..............ref.I
3940 6e 70 75 74 45 76 65 6e 74 2a 20 63 75 72 72 65 6e 74 57 72 69 74 65 50 6f 73 2c 20 72 65 66 20 nputEvent*.currentWritePos,.ref.
3960 69 6e 74 20 6e 75 6d 45 76 65 6e 74 73 52 65 74 61 69 6e 65 64 49 6e 42 75 66 66 65 72 2c 0d 0a int.numEventsRetainedInBuffer,..
3980 20 20 20 20 20 20 20 20 20 20 20 20 72 65 66 20 69 6e 74 20 6e 75 6d 52 65 6d 61 69 6e 69 6e 67 ............ref.int.numRemaining
39a0 45 76 65 6e 74 73 2c 20 62 6f 6f 6c 20 6c 65 61 76 65 45 76 65 6e 74 49 6e 42 75 66 66 65 72 29 Events,.bool.leaveEventInBuffer)
39c0 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 41 ..........{..............Debug.A
39e0 73 73 65 72 74 28 43 6f 6e 74 61 69 6e 73 28 63 75 72 72 65 6e 74 52 65 61 64 50 6f 73 29 2c 20 ssert(Contains(currentReadPos),.
3a00 22 43 75 72 72 65 6e 74 20 72 65 61 64 20 70 6f 73 69 74 69 6f 6e 20 73 68 6f 75 6c 64 20 62 65 "Current.read.position.should.be
3a20 20 63 6f 6e 74 61 69 6e 65 64 20 69 6e 20 62 75 66 66 65 72 22 29 3b 0d 0a 20 20 20 20 20 20 20 .contained.in.buffer");.........
3a40 20 20 20 20 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 43 6f 6e 74 61 69 6e 73 28 63 75 72 72 65 .....Debug.Assert(Contains(curre
3a60 6e 74 57 72 69 74 65 50 6f 73 29 2c 20 22 43 75 72 72 65 6e 74 20 77 72 69 74 65 20 70 6f 73 69 ntWritePos),."Current.write.posi
3a80 74 69 6f 6e 20 73 68 6f 75 6c 64 20 62 65 20 63 6f 6e 74 61 69 6e 65 64 20 69 6e 20 62 75 66 66 tion.should.be.contained.in.buff
3aa0 65 72 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 er");..............Debug.Assert(
3ac0 63 75 72 72 65 6e 74 52 65 61 64 50 6f 73 20 3e 3d 20 63 75 72 72 65 6e 74 57 72 69 74 65 50 6f currentReadPos.>=.currentWritePo
3ae0 73 2c 20 22 43 75 72 72 65 6e 74 20 77 72 69 74 65 20 70 6f 73 69 74 69 6f 6e 20 69 73 20 62 65 s,."Current.write.position.is.be
3b00 79 6f 6e 64 20 72 65 61 64 20 70 6f 73 69 74 69 6f 6e 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 yond.read.position");...........
3b20 20 20 20 20 20 2f 2f 20 47 65 74 20 6e 65 77 20 72 65 61 64 20 70 6f 73 69 74 69 6f 6e 20 2a 62 .....//.Get.new.read.position.*b
3b40 65 66 6f 72 65 2a 20 70 6f 74 65 6e 74 69 61 6c 6c 79 20 6d 6f 76 69 6e 67 20 74 68 65 20 63 75 efore*.potentially.moving.the.cu
3b60 72 72 65 6e 74 20 65 76 65 6e 74 20 73 6f 20 74 68 61 74 20 77 65 20 64 6f 6e 27 74 0d 0a 20 20 rrent.event.so.that.we.don't....
3b80 20 20 20 20 20 20 20 20 20 20 2f 2f 20 65 6e 64 20 75 70 20 6f 76 65 72 77 72 69 74 69 6e 67 20 ..........//.end.up.overwriting.
3ba0 74 68 65 20 64 61 74 61 20 77 65 20 6e 65 65 64 20 74 6f 20 66 69 6e 64 20 74 68 65 20 6e 65 78 the.data.we.need.to.find.the.nex
3bc0 74 20 65 76 65 6e 74 20 69 6e 20 6d 65 6d 6f 72 79 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 t.event.in.memory...............
3be0 76 61 72 20 6e 65 77 52 65 61 64 50 6f 73 20 3d 20 63 75 72 72 65 6e 74 52 65 61 64 50 6f 73 3b var.newReadPos.=.currentReadPos;
3c00 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6e 75 6d 52 65 6d 61 69 6e 69 6e 67 45 76 ..............if.(numRemainingEv
3c20 65 6e 74 73 20 3e 20 31 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 77 52 65 ents.>.1)..................newRe
3c40 61 64 50 6f 73 20 3d 20 49 6e 70 75 74 45 76 65 6e 74 2e 47 65 74 4e 65 78 74 49 6e 4d 65 6d 6f adPos.=.InputEvent.GetNextInMemo
3c60 72 79 43 68 65 63 6b 65 64 28 63 75 72 72 65 6e 74 52 65 61 64 50 6f 73 2c 20 72 65 66 20 74 68 ryChecked(currentReadPos,.ref.th
3c80 69 73 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 49 66 20 74 68 65 20 63 75 is);................//.If.the.cu
3ca0 72 72 65 6e 74 20 65 76 65 6e 74 20 73 68 6f 75 6c 64 20 62 65 20 6c 65 66 74 20 69 6e 20 74 68 rrent.event.should.be.left.in.th
3cc0 65 20 62 75 66 66 65 72 2c 20 61 64 76 61 6e 63 65 20 77 72 69 74 65 20 70 6f 73 69 74 69 6f 6e e.buffer,.advance.write.position
3ce0 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6c 65 61 76 65 45 76 65 6e 74 49 6e 42 ...............if.(leaveEventInB
3d00 75 66 66 65 72 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 uffer)..............{...........
3d20 20 20 20 20 20 20 20 2f 2f 20 4d 6f 76 65 20 64 6f 77 6e 20 69 6e 20 62 75 66 66 65 72 20 69 66 .......//.Move.down.in.buffer.if
3d40 20 72 65 61 64 20 61 6e 64 20 77 72 69 74 65 20 70 6f 73 20 68 61 76 65 20 64 65 76 69 61 74 65 .read.and.write.pos.have.deviate
3d60 64 20 66 72 6f 6d 20 65 61 63 68 20 6f 74 68 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 d.from.each.other...............
3d80 20 20 20 20 76 61 72 20 6e 75 6d 42 79 74 65 73 20 3d 20 63 75 72 72 65 6e 74 52 65 61 64 50 6f ....var.numBytes.=.currentReadPo
3da0 73 2d 3e 73 69 7a 65 49 6e 42 79 74 65 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 s->sizeInBytes;.................
3dc0 20 69 66 20 28 63 75 72 72 65 6e 74 52 65 61 64 50 6f 73 20 21 3d 20 63 75 72 72 65 6e 74 57 72 .if.(currentReadPos.!=.currentWr
3de0 69 74 65 50 6f 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 55 6e 73 itePos)......................Uns
3e00 61 66 65 55 74 69 6c 69 74 79 2e 4d 65 6d 4d 6f 76 65 28 63 75 72 72 65 6e 74 57 72 69 74 65 50 afeUtility.MemMove(currentWriteP
3e20 6f 73 2c 20 63 75 72 72 65 6e 74 52 65 61 64 50 6f 73 2c 20 6e 75 6d 42 79 74 65 73 29 3b 0d 0a os,.currentReadPos,.numBytes);..
3e40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 75 72 72 65 6e 74 57 72 69 74 65 50 6f 73 20 ................currentWritePos.
3e60 3d 20 28 49 6e 70 75 74 45 76 65 6e 74 2a 29 28 28 62 79 74 65 2a 29 63 75 72 72 65 6e 74 57 72 =.(InputEvent*)((byte*)currentWr
3e80 69 74 65 50 6f 73 20 2b 20 6e 75 6d 42 79 74 65 73 2e 41 6c 69 67 6e 54 6f 4d 75 6c 74 69 70 6c itePos.+.numBytes.AlignToMultipl
3ea0 65 4f 66 28 34 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2b 2b 6e 75 6d 45 eOf(4));..................++numE
3ec0 76 65 6e 74 73 52 65 74 61 69 6e 65 64 49 6e 42 75 66 66 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 ventsRetainedInBuffer;..........
3ee0 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 75 72 72 65 6e 74 52 65 61 64 ....}................currentRead
3f00 50 6f 73 20 3d 20 6e 65 77 52 65 61 64 50 6f 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2d Pos.=.newReadPos;..............-
3f20 2d 6e 75 6d 52 65 6d 61 69 6e 69 6e 67 45 76 65 6e 74 73 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d -numRemainingEvents;..........}.
3f40 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 45 6e 75 6d 65 72 61 74 6f 72 3c 49 6e ...........public.IEnumerator<In
3f60 70 75 74 45 76 65 6e 74 50 74 72 3e 20 47 65 74 45 6e 75 6d 65 72 61 74 6f 72 28 29 0d 0a 20 20 putEventPtr>.GetEnumerator()....
3f80 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 65 77 20 ......{..............return.new.
3fa0 45 6e 75 6d 65 72 61 74 6f 72 28 74 68 69 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a Enumerator(this);..........}....
3fc0 20 20 20 20 20 20 20 20 49 45 6e 75 6d 65 72 61 74 6f 72 20 49 45 6e 75 6d 65 72 61 62 6c 65 2e ........IEnumerator.IEnumerable.
3fe0 47 65 74 45 6e 75 6d 65 72 61 74 6f 72 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 GetEnumerator()..........{......
4000 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 47 65 74 45 6e 75 6d 65 72 61 74 6f 72 28 29 3b 0d ........return.GetEnumerator();.
4020 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 .........}............public.voi
4040 64 20 44 69 73 70 6f 73 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 d.Dispose()..........{..........
4060 20 20 20 20 2f 2f 20 4e 6f 74 68 69 6e 67 20 74 6f 20 64 6f 20 69 66 20 77 65 20 64 6f 6e 27 74 ....//.Nothing.to.do.if.we.don't
4080 20 61 63 74 75 61 6c 6c 79 20 6f 77 6e 20 74 68 65 20 6d 65 6d 6f 72 79 2e 0d 0a 20 20 20 20 20 .actually.own.the.memory........
40a0 20 20 20 20 20 20 20 69 66 20 28 21 6d 5f 57 65 4f 77 6e 54 68 65 42 75 66 66 65 72 29 0d 0a 20 .......if.(!m_WeOwnTheBuffer)...
40c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 ...............return;..........
40e0 20 20 20 20 20 20 44 65 62 75 67 2e 41 73 73 65 72 74 28 6d 5f 42 75 66 66 65 72 2e 49 73 43 72 ......Debug.Assert(m_Buffer.IsCr
4100 65 61 74 65 64 2c 20 22 42 75 66 66 65 72 20 68 61 73 20 6e 6f 74 20 62 65 65 6e 20 63 72 65 61 eated,."Buffer.has.not.been.crea
4120 74 65 64 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 75 66 66 65 72 2e 44 ted");................m_Buffer.D
4140 69 73 70 6f 73 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 57 65 4f 77 6e 54 68 ispose();..............m_WeOwnTh
4160 65 42 75 66 66 65 72 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f eBuffer.=.false;..............m_
4180 53 69 7a 65 49 6e 42 79 74 65 73 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f SizeInBytes.=.0;..............m_
41a0 45 76 65 6e 74 43 6f 75 6e 74 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 EventCount.=.0;..........}......
41c0 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 45 76 65 6e 74 42 75 66 66 65 72 20 43 6c ......public.InputEventBuffer.Cl
41e0 6f 6e 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 one()..........{..............va
4200 72 20 63 6c 6f 6e 65 20 3d 20 6e 65 77 20 49 6e 70 75 74 45 76 65 6e 74 42 75 66 66 65 72 28 29 r.clone.=.new.InputEventBuffer()
4220 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 42 75 66 66 65 72 2e 49 73 43 72 ;..............if.(m_Buffer.IsCr
4240 65 61 74 65 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 eated)..............{...........
4260 20 20 20 20 20 20 20 63 6c 6f 6e 65 2e 6d 5f 42 75 66 66 65 72 20 3d 20 6e 65 77 20 4e 61 74 69 .......clone.m_Buffer.=.new.Nati
4280 76 65 41 72 72 61 79 3c 62 79 74 65 3e 28 6d 5f 42 75 66 66 65 72 2e 4c 65 6e 67 74 68 2c 20 41 veArray<byte>(m_Buffer.Length,.A
42a0 6c 6c 6f 63 61 74 6f 72 2e 50 65 72 73 69 73 74 65 6e 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 llocator.Persistent);...........
42c0 20 20 20 20 20 20 20 63 6c 6f 6e 65 2e 6d 5f 42 75 66 66 65 72 2e 43 6f 70 79 46 72 6f 6d 28 6d .......clone.m_Buffer.CopyFrom(m
42e0 5f 42 75 66 66 65 72 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6c 6f 6e 65 _Buffer);..................clone
4300 2e 6d 5f 57 65 4f 77 6e 54 68 65 42 75 66 66 65 72 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 .m_WeOwnTheBuffer.=.true;.......
4320 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 6c 6f 6e 65 2e 6d 5f 53 69 .......}..............clone.m_Si
4340 7a 65 49 6e 42 79 74 65 73 20 3d 20 6d 5f 53 69 7a 65 49 6e 42 79 74 65 73 3b 0d 0a 20 20 20 20 zeInBytes.=.m_SizeInBytes;......
4360 20 20 20 20 20 20 20 20 63 6c 6f 6e 65 2e 6d 5f 45 76 65 6e 74 43 6f 75 6e 74 20 3d 20 6d 5f 45 ........clone.m_EventCount.=.m_E
4380 76 65 6e 74 43 6f 75 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 63 ventCount;..............return.c
43a0 6c 6f 6e 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 6f 62 6a 65 lone;..........}............obje
43c0 63 74 20 49 43 6c 6f 6e 65 61 62 6c 65 2e 43 6c 6f 6e 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b ct.ICloneable.Clone()..........{
43e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 43 6c 6f 6e 65 28 29 3b 0d 0a 20 ..............return.Clone();...
4400 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 4e 61 74 69 .......}............private.Nati
4420 76 65 41 72 72 61 79 3c 62 79 74 65 3e 20 6d 5f 42 75 66 66 65 72 3b 0d 0a 20 20 20 20 20 20 20 veArray<byte>.m_Buffer;.........
4440 20 70 72 69 76 61 74 65 20 6c 6f 6e 67 20 6d 5f 53 69 7a 65 49 6e 42 79 74 65 73 3b 0d 0a 20 20 .private.long.m_SizeInBytes;....
4460 20 20 20 20 20 20 70 72 69 76 61 74 65 20 69 6e 74 20 6d 5f 45 76 65 6e 74 43 6f 75 6e 74 3b 0d ......private.int.m_EventCount;.
4480 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 57 65 4f 77 6e 54 68 65 .........private.bool.m_WeOwnThe
44a0 42 75 66 66 65 72 3b 20 2f 2f 2f 2f 46 49 58 4d 45 3a 20 77 68 61 74 20 77 65 20 72 65 61 6c 6c Buffer;.////FIXME:.what.we.reall
44c0 79 20 77 61 6e 74 20 69 73 20 61 63 63 65 73 73 20 74 6f 20 4e 61 74 69 76 65 41 72 72 61 79 27 y.want.is.access.to.NativeArray'
44e0 73 20 61 6c 6c 6f 63 61 74 6f 72 20 6c 61 62 65 6c 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 s.allocator.label............pri
4500 76 61 74 65 20 73 74 72 75 63 74 20 45 6e 75 6d 65 72 61 74 6f 72 20 3a 20 49 45 6e 75 6d 65 72 vate.struct.Enumerator.:.IEnumer
4520 61 74 6f 72 3c 49 6e 70 75 74 45 76 65 6e 74 50 74 72 3e 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a ator<InputEventPtr>..........{..
4540 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 72 65 61 64 6f 6e 6c 79 20 49 6e 70 ............private.readonly.Inp
4560 75 74 45 76 65 6e 74 2a 20 6d 5f 42 75 66 66 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 utEvent*.m_Buffer;..............
4580 70 72 69 76 61 74 65 20 72 65 61 64 6f 6e 6c 79 20 69 6e 74 20 6d 5f 45 76 65 6e 74 43 6f 75 6e private.readonly.int.m_EventCoun
45a0 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 49 6e 70 75 74 45 76 65 t;..............private.InputEve
45c0 6e 74 2a 20 6d 5f 43 75 72 72 65 6e 74 45 76 65 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 nt*.m_CurrentEvent;.............
45e0 20 70 72 69 76 61 74 65 20 69 6e 74 20 6d 5f 43 75 72 72 65 6e 74 49 6e 64 65 78 3b 0d 0a 0d 0a .private.int.m_CurrentIndex;....
4600 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 45 6e 75 6d 65 72 61 74 6f 72 28 49 6e ............public.Enumerator(In
4620 70 75 74 45 76 65 6e 74 42 75 66 66 65 72 20 62 75 66 66 65 72 29 0d 0a 20 20 20 20 20 20 20 20 putEventBuffer.buffer)..........
4640 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 42 75 66 66 65 72 20 ....{..................m_Buffer.
4660 3d 20 62 75 66 66 65 72 2e 62 75 66 66 65 72 50 74 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 =.buffer.bufferPtr;.............
4680 20 20 20 20 20 6d 5f 45 76 65 6e 74 43 6f 75 6e 74 20 3d 20 62 75 66 66 65 72 2e 6d 5f 45 76 65 .....m_EventCount.=.buffer.m_Eve
46a0 6e 74 43 6f 75 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 75 72 72 ntCount;..................m_Curr
46c0 65 6e 74 45 76 65 6e 74 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 entEvent.=.null;................
46e0 20 20 6d 5f 43 75 72 72 65 6e 74 49 6e 64 65 78 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 ..m_CurrentIndex.=.0;...........
4700 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 ...}................public.bool.
4720 4d 6f 76 65 4e 65 78 74 28 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 MoveNext()..............{.......
4740 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 43 75 72 72 65 6e 74 49 6e 64 65 78 20 3d 3d ...........if.(m_CurrentIndex.==
4760 20 6d 5f 45 76 65 6e 74 43 6f 75 6e 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .m_EventCount)..................
4780 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ....return.false;...............
47a0 20 20 20 20 20 69 66 20 28 6d 5f 43 75 72 72 65 6e 74 45 76 65 6e 74 20 3d 3d 20 6e 75 6c 6c 29 .....if.(m_CurrentEvent.==.null)
47c0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ..................{.............
47e0 20 20 20 20 20 20 20 20 20 6d 5f 43 75 72 72 65 6e 74 45 76 65 6e 74 20 3d 20 6d 5f 42 75 66 66 .........m_CurrentEvent.=.m_Buff
4800 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 er;......................return.
4820 6d 5f 43 75 72 72 65 6e 74 45 76 65 6e 74 20 21 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 m_CurrentEvent.!=.null;.........
4840 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 65 .........}....................De
4860 62 75 67 2e 41 73 73 65 72 74 28 6d 5f 43 75 72 72 65 6e 74 45 76 65 6e 74 20 21 3d 20 6e 75 6c bug.Assert(m_CurrentEvent.!=.nul
4880 6c 2c 20 22 43 75 72 72 65 6e 74 20 65 76 65 6e 74 20 6d 75 73 74 20 6e 6f 74 20 62 65 20 6e 75 l,."Current.event.must.not.be.nu
48a0 6c 6c 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2b 2b 6d 5f 43 75 72 ll");....................++m_Cur
48c0 72 65 6e 74 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 rentIndex;..................if.(
48e0 6d 5f 43 75 72 72 65 6e 74 49 6e 64 65 78 20 3d 3d 20 6d 5f 45 76 65 6e 74 43 6f 75 6e 74 29 0d m_CurrentIndex.==.m_EventCount).
4900 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 .....................return.fals
4920 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 75 72 72 65 6e 74 45 e;....................m_CurrentE
4940 76 65 6e 74 20 3d 20 49 6e 70 75 74 45 76 65 6e 74 2e 47 65 74 4e 65 78 74 49 6e 4d 65 6d 6f 72 vent.=.InputEvent.GetNextInMemor
4960 79 28 6d 5f 43 75 72 72 65 6e 74 45 76 65 6e 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 y(m_CurrentEvent);..............
4980 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d ....return.true;..............}.
49a0 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 52 65 73 65 74 ...............public.void.Reset
49c0 28 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ()..............{...............
49e0 20 20 20 6d 5f 43 75 72 72 65 6e 74 45 76 65 6e 74 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 ...m_CurrentEvent.=.null;.......
4a00 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 75 72 72 65 6e 74 49 6e 64 65 78 20 3d 20 30 3b 0d 0a ...........m_CurrentIndex.=.0;..
4a20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 ............}................pub
4a40 6c 69 63 20 76 6f 69 64 20 44 69 73 70 6f 73 65 28 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 lic.void.Dispose()..............
4a60 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 {..............}................
4a80 70 75 62 6c 69 63 20 49 6e 70 75 74 45 76 65 6e 74 50 74 72 20 43 75 72 72 65 6e 74 20 3d 3e 20 public.InputEventPtr.Current.=>.
4aa0 6d 5f 43 75 72 72 65 6e 74 45 76 65 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6f m_CurrentEvent;................o
4ac0 62 6a 65 63 74 20 49 45 6e 75 6d 65 72 61 74 6f 72 2e 43 75 72 72 65 6e 74 20 3d 3e 20 43 75 72 bject.IEnumerator.Current.=>.Cur
4ae0 72 65 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 7d 0d 0a 00 00 00 00 rent;..........}......}..}......
4b00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 00 00 00 49 6e 70 75 74 45 76 65 6e 74 42 75 ....................InputEventBu
4b20 66 66 65 72 00 00 00 00 ffer....