text stringlengths 1 1.05M |
|---|
/*
Thread Wrapper v.2.0
Copyright (C) 2017 by Sergey A Kryukov
http://www.SAKryukov.org
http://www.codeproject.com/Members/SAKryukov
Original publications:
https://www.codeproject.com/Articles/1177478/Thread-Wrapper-CPP
https://www.codeproject.com/Articles/1177869/Conveyor-Thread-Wrapper-CPP
https://www.codeproject.com/Articles/1170503/The-Impossibly-Fast-Cplusplus-Delegates-Fixed
https://www.codeproject.com/Tips/149540/Simple-Blocking-Queue-for-Thread-Communication-and
*/
#include "stdafx.h"
#include "ThreadWrapperDemo.h"
#include "ConveyorThreadWrapperDemo.h"
int main() {
auto delay = 200;
ThreadWrapperDemo::Run(delay);
std::cout << std::endl << std::endl
<< "ThreadWrapper demo complete. Now, ConveyorThreadWrapper demo:" << std::endl
<< "Enter any character: ";
ConveyorThreadWrapperDemo::Run(delay);
return 0;
} /* main */
|
; A010555: a(n) = 1 if n is the product of an even number of distinct primes, otherwise a(n) = -1.
; 1,-1,-1,-1,-1,1,-1,-1,-1,1,-1,-1,-1,1,1,-1,-1,-1,-1,-1,1,1,-1,-1,-1,1,-1,-1,-1,-1,-1,-1,1,1,1,-1,-1,1,1,-1,-1,-1,-1,-1,-1,1,-1,-1,-1,-1,1,-1,-1,-1,1,-1,1,1,-1,-1,-1,1,-1,-1,1,-1,-1,-1,1,-1,-1,-1,-1,1,-1,-1,1,-1,-1
cal $0,8683 ; Möbius (or Moebius) function mu(n). mu(1) = 1; mu(n) = (-1)^k if n is the product of k different primes; otherwise mu(n) = 0.
sub $0,3
div $0,3
mov $1,$0
mul $1,2
add $1,1
|
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Stubs Written by D Morris - 30/9/98
;
;
; $Id: lscroll.asm,v 1.3 2001/04/18 13:21:37 stefano Exp $
;
;Usage: lscroll(struct *pixels)
XLIB lscroll
LIB scroll_left
.lscroll
ld ix,0
add ix,sp
ld a,(ix+2)
ld c,(ix+4)
ld b,(ix+6)
ld l,(ix+8)
ld h,(ix+10)
jp scroll_left
|
user/_kill: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <main>:
#include "kernel/stat.h"
#include "user/user.h"
int
main(int argc, char **argv)
{
0: 1101 addi sp,sp,-32
2: ec06 sd ra,24(sp)
4: e822 sd s0,16(sp)
6: e426 sd s1,8(sp)
8: e04a sd s2,0(sp)
a: 1000 addi s0,sp,32
int i;
if(argc < 2){
c: 4785 li a5,1
e: 02a7dd63 bge a5,a0,48 <main+0x48>
12: 00858493 addi s1,a1,8
16: ffe5091b addiw s2,a0,-2
1a: 02091793 slli a5,s2,0x20
1e: 01d7d913 srli s2,a5,0x1d
22: 05c1 addi a1,a1,16
24: 992e add s2,s2,a1
fprintf(2, "usage: kill pid...\n");
exit(1);
}
for(i=1; i<argc; i++)
kill(atoi(argv[i]));
26: 6088 ld a0,0(s1)
28: 00000097 auipc ra,0x0
2c: 1ae080e7 jalr 430(ra) # 1d6 <atoi>
30: 00000097 auipc ra,0x0
34: 2d2080e7 jalr 722(ra) # 302 <kill>
for(i=1; i<argc; i++)
38: 04a1 addi s1,s1,8
3a: ff2496e3 bne s1,s2,26 <main+0x26>
exit(0);
3e: 4501 li a0,0
40: 00000097 auipc ra,0x0
44: 292080e7 jalr 658(ra) # 2d2 <exit>
fprintf(2, "usage: kill pid...\n");
48: 00000597 auipc a1,0x0
4c: 7b058593 addi a1,a1,1968 # 7f8 <malloc+0xe8>
50: 4509 li a0,2
52: 00000097 auipc ra,0x0
56: 5d2080e7 jalr 1490(ra) # 624 <fprintf>
exit(1);
5a: 4505 li a0,1
5c: 00000097 auipc ra,0x0
60: 276080e7 jalr 630(ra) # 2d2 <exit>
0000000000000064 <strcpy>:
#include "kernel/fcntl.h"
#include "user/user.h"
char*
strcpy(char *s, const char *t)
{
64: 1141 addi sp,sp,-16
66: e422 sd s0,8(sp)
68: 0800 addi s0,sp,16
char *os;
os = s;
while((*s++ = *t++) != 0)
6a: 87aa mv a5,a0
6c: 0585 addi a1,a1,1
6e: 0785 addi a5,a5,1
70: fff5c703 lbu a4,-1(a1)
74: fee78fa3 sb a4,-1(a5)
78: fb75 bnez a4,6c <strcpy+0x8>
;
return os;
}
7a: 6422 ld s0,8(sp)
7c: 0141 addi sp,sp,16
7e: 8082 ret
0000000000000080 <strcmp>:
int
strcmp(const char *p, const char *q)
{
80: 1141 addi sp,sp,-16
82: e422 sd s0,8(sp)
84: 0800 addi s0,sp,16
while(*p && *p == *q)
86: 00054783 lbu a5,0(a0)
8a: cb91 beqz a5,9e <strcmp+0x1e>
8c: 0005c703 lbu a4,0(a1)
90: 00f71763 bne a4,a5,9e <strcmp+0x1e>
p++, q++;
94: 0505 addi a0,a0,1
96: 0585 addi a1,a1,1
while(*p && *p == *q)
98: 00054783 lbu a5,0(a0)
9c: fbe5 bnez a5,8c <strcmp+0xc>
return (uchar)*p - (uchar)*q;
9e: 0005c503 lbu a0,0(a1)
}
a2: 40a7853b subw a0,a5,a0
a6: 6422 ld s0,8(sp)
a8: 0141 addi sp,sp,16
aa: 8082 ret
00000000000000ac <strlen>:
uint
strlen(const char *s)
{
ac: 1141 addi sp,sp,-16
ae: e422 sd s0,8(sp)
b0: 0800 addi s0,sp,16
int n;
for(n = 0; s[n]; n++)
b2: 00054783 lbu a5,0(a0)
b6: cf91 beqz a5,d2 <strlen+0x26>
b8: 0505 addi a0,a0,1
ba: 87aa mv a5,a0
bc: 4685 li a3,1
be: 9e89 subw a3,a3,a0
c0: 00f6853b addw a0,a3,a5
c4: 0785 addi a5,a5,1
c6: fff7c703 lbu a4,-1(a5)
ca: fb7d bnez a4,c0 <strlen+0x14>
;
return n;
}
cc: 6422 ld s0,8(sp)
ce: 0141 addi sp,sp,16
d0: 8082 ret
for(n = 0; s[n]; n++)
d2: 4501 li a0,0
d4: bfe5 j cc <strlen+0x20>
00000000000000d6 <memset>:
void*
memset(void *dst, int c, uint n)
{
d6: 1141 addi sp,sp,-16
d8: e422 sd s0,8(sp)
da: 0800 addi s0,sp,16
char *cdst = (char *) dst;
int i;
for(i = 0; i < n; i++){
dc: ca19 beqz a2,f2 <memset+0x1c>
de: 87aa mv a5,a0
e0: 1602 slli a2,a2,0x20
e2: 9201 srli a2,a2,0x20
e4: 00a60733 add a4,a2,a0
cdst[i] = c;
e8: 00b78023 sb a1,0(a5)
for(i = 0; i < n; i++){
ec: 0785 addi a5,a5,1
ee: fee79de3 bne a5,a4,e8 <memset+0x12>
}
return dst;
}
f2: 6422 ld s0,8(sp)
f4: 0141 addi sp,sp,16
f6: 8082 ret
00000000000000f8 <strchr>:
char*
strchr(const char *s, char c)
{
f8: 1141 addi sp,sp,-16
fa: e422 sd s0,8(sp)
fc: 0800 addi s0,sp,16
for(; *s; s++)
fe: 00054783 lbu a5,0(a0)
102: cb99 beqz a5,118 <strchr+0x20>
if(*s == c)
104: 00f58763 beq a1,a5,112 <strchr+0x1a>
for(; *s; s++)
108: 0505 addi a0,a0,1
10a: 00054783 lbu a5,0(a0)
10e: fbfd bnez a5,104 <strchr+0xc>
return (char*)s;
return 0;
110: 4501 li a0,0
}
112: 6422 ld s0,8(sp)
114: 0141 addi sp,sp,16
116: 8082 ret
return 0;
118: 4501 li a0,0
11a: bfe5 j 112 <strchr+0x1a>
000000000000011c <gets>:
char*
gets(char *buf, int max)
{
11c: 711d addi sp,sp,-96
11e: ec86 sd ra,88(sp)
120: e8a2 sd s0,80(sp)
122: e4a6 sd s1,72(sp)
124: e0ca sd s2,64(sp)
126: fc4e sd s3,56(sp)
128: f852 sd s4,48(sp)
12a: f456 sd s5,40(sp)
12c: f05a sd s6,32(sp)
12e: ec5e sd s7,24(sp)
130: 1080 addi s0,sp,96
132: 8baa mv s7,a0
134: 8a2e mv s4,a1
int i, cc;
char c;
for(i=0; i+1 < max; ){
136: 892a mv s2,a0
138: 4481 li s1,0
cc = read(0, &c, 1);
if(cc < 1)
break;
buf[i++] = c;
if(c == '\n' || c == '\r')
13a: 4aa9 li s5,10
13c: 4b35 li s6,13
for(i=0; i+1 < max; ){
13e: 89a6 mv s3,s1
140: 2485 addiw s1,s1,1
142: 0344d863 bge s1,s4,172 <gets+0x56>
cc = read(0, &c, 1);
146: 4605 li a2,1
148: faf40593 addi a1,s0,-81
14c: 4501 li a0,0
14e: 00000097 auipc ra,0x0
152: 19c080e7 jalr 412(ra) # 2ea <read>
if(cc < 1)
156: 00a05e63 blez a0,172 <gets+0x56>
buf[i++] = c;
15a: faf44783 lbu a5,-81(s0)
15e: 00f90023 sb a5,0(s2)
if(c == '\n' || c == '\r')
162: 01578763 beq a5,s5,170 <gets+0x54>
166: 0905 addi s2,s2,1
168: fd679be3 bne a5,s6,13e <gets+0x22>
for(i=0; i+1 < max; ){
16c: 89a6 mv s3,s1
16e: a011 j 172 <gets+0x56>
170: 89a6 mv s3,s1
break;
}
buf[i] = '\0';
172: 99de add s3,s3,s7
174: 00098023 sb zero,0(s3)
return buf;
}
178: 855e mv a0,s7
17a: 60e6 ld ra,88(sp)
17c: 6446 ld s0,80(sp)
17e: 64a6 ld s1,72(sp)
180: 6906 ld s2,64(sp)
182: 79e2 ld s3,56(sp)
184: 7a42 ld s4,48(sp)
186: 7aa2 ld s5,40(sp)
188: 7b02 ld s6,32(sp)
18a: 6be2 ld s7,24(sp)
18c: 6125 addi sp,sp,96
18e: 8082 ret
0000000000000190 <stat>:
int
stat(const char *n, struct stat *st)
{
190: 1101 addi sp,sp,-32
192: ec06 sd ra,24(sp)
194: e822 sd s0,16(sp)
196: e426 sd s1,8(sp)
198: e04a sd s2,0(sp)
19a: 1000 addi s0,sp,32
19c: 892e mv s2,a1
int fd;
int r;
fd = open(n, O_RDONLY);
19e: 4581 li a1,0
1a0: 00000097 auipc ra,0x0
1a4: 172080e7 jalr 370(ra) # 312 <open>
if(fd < 0)
1a8: 02054563 bltz a0,1d2 <stat+0x42>
1ac: 84aa mv s1,a0
return -1;
r = fstat(fd, st);
1ae: 85ca mv a1,s2
1b0: 00000097 auipc ra,0x0
1b4: 17a080e7 jalr 378(ra) # 32a <fstat>
1b8: 892a mv s2,a0
close(fd);
1ba: 8526 mv a0,s1
1bc: 00000097 auipc ra,0x0
1c0: 13e080e7 jalr 318(ra) # 2fa <close>
return r;
}
1c4: 854a mv a0,s2
1c6: 60e2 ld ra,24(sp)
1c8: 6442 ld s0,16(sp)
1ca: 64a2 ld s1,8(sp)
1cc: 6902 ld s2,0(sp)
1ce: 6105 addi sp,sp,32
1d0: 8082 ret
return -1;
1d2: 597d li s2,-1
1d4: bfc5 j 1c4 <stat+0x34>
00000000000001d6 <atoi>:
int
atoi(const char *s)
{
1d6: 1141 addi sp,sp,-16
1d8: e422 sd s0,8(sp)
1da: 0800 addi s0,sp,16
int n;
n = 0;
while('0' <= *s && *s <= '9')
1dc: 00054603 lbu a2,0(a0)
1e0: fd06079b addiw a5,a2,-48
1e4: 0ff7f793 andi a5,a5,255
1e8: 4725 li a4,9
1ea: 02f76963 bltu a4,a5,21c <atoi+0x46>
1ee: 86aa mv a3,a0
n = 0;
1f0: 4501 li a0,0
while('0' <= *s && *s <= '9')
1f2: 45a5 li a1,9
n = n*10 + *s++ - '0';
1f4: 0685 addi a3,a3,1
1f6: 0025179b slliw a5,a0,0x2
1fa: 9fa9 addw a5,a5,a0
1fc: 0017979b slliw a5,a5,0x1
200: 9fb1 addw a5,a5,a2
202: fd07851b addiw a0,a5,-48
while('0' <= *s && *s <= '9')
206: 0006c603 lbu a2,0(a3)
20a: fd06071b addiw a4,a2,-48
20e: 0ff77713 andi a4,a4,255
212: fee5f1e3 bgeu a1,a4,1f4 <atoi+0x1e>
return n;
}
216: 6422 ld s0,8(sp)
218: 0141 addi sp,sp,16
21a: 8082 ret
n = 0;
21c: 4501 li a0,0
21e: bfe5 j 216 <atoi+0x40>
0000000000000220 <memmove>:
void*
memmove(void *vdst, const void *vsrc, int n)
{
220: 1141 addi sp,sp,-16
222: e422 sd s0,8(sp)
224: 0800 addi s0,sp,16
char *dst;
const char *src;
dst = vdst;
src = vsrc;
if (src > dst) {
226: 02b57463 bgeu a0,a1,24e <memmove+0x2e>
while(n-- > 0)
22a: 00c05f63 blez a2,248 <memmove+0x28>
22e: 1602 slli a2,a2,0x20
230: 9201 srli a2,a2,0x20
232: 00c507b3 add a5,a0,a2
dst = vdst;
236: 872a mv a4,a0
*dst++ = *src++;
238: 0585 addi a1,a1,1
23a: 0705 addi a4,a4,1
23c: fff5c683 lbu a3,-1(a1)
240: fed70fa3 sb a3,-1(a4)
while(n-- > 0)
244: fee79ae3 bne a5,a4,238 <memmove+0x18>
src += n;
while(n-- > 0)
*--dst = *--src;
}
return vdst;
}
248: 6422 ld s0,8(sp)
24a: 0141 addi sp,sp,16
24c: 8082 ret
dst += n;
24e: 00c50733 add a4,a0,a2
src += n;
252: 95b2 add a1,a1,a2
while(n-- > 0)
254: fec05ae3 blez a2,248 <memmove+0x28>
258: fff6079b addiw a5,a2,-1
25c: 1782 slli a5,a5,0x20
25e: 9381 srli a5,a5,0x20
260: fff7c793 not a5,a5
264: 97ba add a5,a5,a4
*--dst = *--src;
266: 15fd addi a1,a1,-1
268: 177d addi a4,a4,-1
26a: 0005c683 lbu a3,0(a1)
26e: 00d70023 sb a3,0(a4)
while(n-- > 0)
272: fee79ae3 bne a5,a4,266 <memmove+0x46>
276: bfc9 j 248 <memmove+0x28>
0000000000000278 <memcmp>:
int
memcmp(const void *s1, const void *s2, uint n)
{
278: 1141 addi sp,sp,-16
27a: e422 sd s0,8(sp)
27c: 0800 addi s0,sp,16
const char *p1 = s1, *p2 = s2;
while (n-- > 0) {
27e: ca05 beqz a2,2ae <memcmp+0x36>
280: fff6069b addiw a3,a2,-1
284: 1682 slli a3,a3,0x20
286: 9281 srli a3,a3,0x20
288: 0685 addi a3,a3,1
28a: 96aa add a3,a3,a0
if (*p1 != *p2) {
28c: 00054783 lbu a5,0(a0)
290: 0005c703 lbu a4,0(a1)
294: 00e79863 bne a5,a4,2a4 <memcmp+0x2c>
return *p1 - *p2;
}
p1++;
298: 0505 addi a0,a0,1
p2++;
29a: 0585 addi a1,a1,1
while (n-- > 0) {
29c: fed518e3 bne a0,a3,28c <memcmp+0x14>
}
return 0;
2a0: 4501 li a0,0
2a2: a019 j 2a8 <memcmp+0x30>
return *p1 - *p2;
2a4: 40e7853b subw a0,a5,a4
}
2a8: 6422 ld s0,8(sp)
2aa: 0141 addi sp,sp,16
2ac: 8082 ret
return 0;
2ae: 4501 li a0,0
2b0: bfe5 j 2a8 <memcmp+0x30>
00000000000002b2 <memcpy>:
void *
memcpy(void *dst, const void *src, uint n)
{
2b2: 1141 addi sp,sp,-16
2b4: e406 sd ra,8(sp)
2b6: e022 sd s0,0(sp)
2b8: 0800 addi s0,sp,16
return memmove(dst, src, n);
2ba: 00000097 auipc ra,0x0
2be: f66080e7 jalr -154(ra) # 220 <memmove>
}
2c2: 60a2 ld ra,8(sp)
2c4: 6402 ld s0,0(sp)
2c6: 0141 addi sp,sp,16
2c8: 8082 ret
00000000000002ca <fork>:
# generated by usys.pl - do not edit
#include "kernel/syscall.h"
.global fork
fork:
li a7, SYS_fork
2ca: 4885 li a7,1
ecall
2cc: 00000073 ecall
ret
2d0: 8082 ret
00000000000002d2 <exit>:
.global exit
exit:
li a7, SYS_exit
2d2: 4889 li a7,2
ecall
2d4: 00000073 ecall
ret
2d8: 8082 ret
00000000000002da <wait>:
.global wait
wait:
li a7, SYS_wait
2da: 488d li a7,3
ecall
2dc: 00000073 ecall
ret
2e0: 8082 ret
00000000000002e2 <pipe>:
.global pipe
pipe:
li a7, SYS_pipe
2e2: 4891 li a7,4
ecall
2e4: 00000073 ecall
ret
2e8: 8082 ret
00000000000002ea <read>:
.global read
read:
li a7, SYS_read
2ea: 4895 li a7,5
ecall
2ec: 00000073 ecall
ret
2f0: 8082 ret
00000000000002f2 <write>:
.global write
write:
li a7, SYS_write
2f2: 48c1 li a7,16
ecall
2f4: 00000073 ecall
ret
2f8: 8082 ret
00000000000002fa <close>:
.global close
close:
li a7, SYS_close
2fa: 48d5 li a7,21
ecall
2fc: 00000073 ecall
ret
300: 8082 ret
0000000000000302 <kill>:
.global kill
kill:
li a7, SYS_kill
302: 4899 li a7,6
ecall
304: 00000073 ecall
ret
308: 8082 ret
000000000000030a <exec>:
.global exec
exec:
li a7, SYS_exec
30a: 489d li a7,7
ecall
30c: 00000073 ecall
ret
310: 8082 ret
0000000000000312 <open>:
.global open
open:
li a7, SYS_open
312: 48bd li a7,15
ecall
314: 00000073 ecall
ret
318: 8082 ret
000000000000031a <mknod>:
.global mknod
mknod:
li a7, SYS_mknod
31a: 48c5 li a7,17
ecall
31c: 00000073 ecall
ret
320: 8082 ret
0000000000000322 <unlink>:
.global unlink
unlink:
li a7, SYS_unlink
322: 48c9 li a7,18
ecall
324: 00000073 ecall
ret
328: 8082 ret
000000000000032a <fstat>:
.global fstat
fstat:
li a7, SYS_fstat
32a: 48a1 li a7,8
ecall
32c: 00000073 ecall
ret
330: 8082 ret
0000000000000332 <link>:
.global link
link:
li a7, SYS_link
332: 48cd li a7,19
ecall
334: 00000073 ecall
ret
338: 8082 ret
000000000000033a <mkdir>:
.global mkdir
mkdir:
li a7, SYS_mkdir
33a: 48d1 li a7,20
ecall
33c: 00000073 ecall
ret
340: 8082 ret
0000000000000342 <chdir>:
.global chdir
chdir:
li a7, SYS_chdir
342: 48a5 li a7,9
ecall
344: 00000073 ecall
ret
348: 8082 ret
000000000000034a <dup>:
.global dup
dup:
li a7, SYS_dup
34a: 48a9 li a7,10
ecall
34c: 00000073 ecall
ret
350: 8082 ret
0000000000000352 <getpid>:
.global getpid
getpid:
li a7, SYS_getpid
352: 48ad li a7,11
ecall
354: 00000073 ecall
ret
358: 8082 ret
000000000000035a <sbrk>:
.global sbrk
sbrk:
li a7, SYS_sbrk
35a: 48b1 li a7,12
ecall
35c: 00000073 ecall
ret
360: 8082 ret
0000000000000362 <sleep>:
.global sleep
sleep:
li a7, SYS_sleep
362: 48b5 li a7,13
ecall
364: 00000073 ecall
ret
368: 8082 ret
000000000000036a <uptime>:
.global uptime
uptime:
li a7, SYS_uptime
36a: 48b9 li a7,14
ecall
36c: 00000073 ecall
ret
370: 8082 ret
0000000000000372 <setAndGetPageFaultsNum>:
.global setAndGetPageFaultsNum
setAndGetPageFaultsNum:
li a7, SYS_setAndGetPageFaultsNum
372: 48d9 li a7,22
ecall
374: 00000073 ecall
ret
378: 8082 ret
000000000000037a <putc>:
static char digits[] = "0123456789ABCDEF";
static void
putc(int fd, char c)
{
37a: 1101 addi sp,sp,-32
37c: ec06 sd ra,24(sp)
37e: e822 sd s0,16(sp)
380: 1000 addi s0,sp,32
382: feb407a3 sb a1,-17(s0)
write(fd, &c, 1);
386: 4605 li a2,1
388: fef40593 addi a1,s0,-17
38c: 00000097 auipc ra,0x0
390: f66080e7 jalr -154(ra) # 2f2 <write>
}
394: 60e2 ld ra,24(sp)
396: 6442 ld s0,16(sp)
398: 6105 addi sp,sp,32
39a: 8082 ret
000000000000039c <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
39c: 7139 addi sp,sp,-64
39e: fc06 sd ra,56(sp)
3a0: f822 sd s0,48(sp)
3a2: f426 sd s1,40(sp)
3a4: f04a sd s2,32(sp)
3a6: ec4e sd s3,24(sp)
3a8: 0080 addi s0,sp,64
3aa: 84aa mv s1,a0
char buf[16];
int i, neg;
uint x;
neg = 0;
if(sgn && xx < 0){
3ac: c299 beqz a3,3b2 <printint+0x16>
3ae: 0805c863 bltz a1,43e <printint+0xa2>
neg = 1;
x = -xx;
} else {
x = xx;
3b2: 2581 sext.w a1,a1
neg = 0;
3b4: 4881 li a7,0
3b6: fc040693 addi a3,s0,-64
}
i = 0;
3ba: 4701 li a4,0
do{
buf[i++] = digits[x % base];
3bc: 2601 sext.w a2,a2
3be: 00000517 auipc a0,0x0
3c2: 45a50513 addi a0,a0,1114 # 818 <digits>
3c6: 883a mv a6,a4
3c8: 2705 addiw a4,a4,1
3ca: 02c5f7bb remuw a5,a1,a2
3ce: 1782 slli a5,a5,0x20
3d0: 9381 srli a5,a5,0x20
3d2: 97aa add a5,a5,a0
3d4: 0007c783 lbu a5,0(a5)
3d8: 00f68023 sb a5,0(a3)
}while((x /= base) != 0);
3dc: 0005879b sext.w a5,a1
3e0: 02c5d5bb divuw a1,a1,a2
3e4: 0685 addi a3,a3,1
3e6: fec7f0e3 bgeu a5,a2,3c6 <printint+0x2a>
if(neg)
3ea: 00088b63 beqz a7,400 <printint+0x64>
buf[i++] = '-';
3ee: fd040793 addi a5,s0,-48
3f2: 973e add a4,a4,a5
3f4: 02d00793 li a5,45
3f8: fef70823 sb a5,-16(a4)
3fc: 0028071b addiw a4,a6,2
while(--i >= 0)
400: 02e05863 blez a4,430 <printint+0x94>
404: fc040793 addi a5,s0,-64
408: 00e78933 add s2,a5,a4
40c: fff78993 addi s3,a5,-1
410: 99ba add s3,s3,a4
412: 377d addiw a4,a4,-1
414: 1702 slli a4,a4,0x20
416: 9301 srli a4,a4,0x20
418: 40e989b3 sub s3,s3,a4
putc(fd, buf[i]);
41c: fff94583 lbu a1,-1(s2)
420: 8526 mv a0,s1
422: 00000097 auipc ra,0x0
426: f58080e7 jalr -168(ra) # 37a <putc>
while(--i >= 0)
42a: 197d addi s2,s2,-1
42c: ff3918e3 bne s2,s3,41c <printint+0x80>
}
430: 70e2 ld ra,56(sp)
432: 7442 ld s0,48(sp)
434: 74a2 ld s1,40(sp)
436: 7902 ld s2,32(sp)
438: 69e2 ld s3,24(sp)
43a: 6121 addi sp,sp,64
43c: 8082 ret
x = -xx;
43e: 40b005bb negw a1,a1
neg = 1;
442: 4885 li a7,1
x = -xx;
444: bf8d j 3b6 <printint+0x1a>
0000000000000446 <vprintf>:
}
// Print to the given fd. Only understands %d, %x, %p, %s.
void
vprintf(int fd, const char *fmt, va_list ap)
{
446: 7119 addi sp,sp,-128
448: fc86 sd ra,120(sp)
44a: f8a2 sd s0,112(sp)
44c: f4a6 sd s1,104(sp)
44e: f0ca sd s2,96(sp)
450: ecce sd s3,88(sp)
452: e8d2 sd s4,80(sp)
454: e4d6 sd s5,72(sp)
456: e0da sd s6,64(sp)
458: fc5e sd s7,56(sp)
45a: f862 sd s8,48(sp)
45c: f466 sd s9,40(sp)
45e: f06a sd s10,32(sp)
460: ec6e sd s11,24(sp)
462: 0100 addi s0,sp,128
char *s;
int c, i, state;
state = 0;
for(i = 0; fmt[i]; i++){
464: 0005c903 lbu s2,0(a1)
468: 18090f63 beqz s2,606 <vprintf+0x1c0>
46c: 8aaa mv s5,a0
46e: 8b32 mv s6,a2
470: 00158493 addi s1,a1,1
state = 0;
474: 4981 li s3,0
if(c == '%'){
state = '%';
} else {
putc(fd, c);
}
} else if(state == '%'){
476: 02500a13 li s4,37
if(c == 'd'){
47a: 06400c13 li s8,100
printint(fd, va_arg(ap, int), 10, 1);
} else if(c == 'l') {
47e: 06c00c93 li s9,108
printint(fd, va_arg(ap, uint64), 10, 0);
} else if(c == 'x') {
482: 07800d13 li s10,120
printint(fd, va_arg(ap, int), 16, 0);
} else if(c == 'p') {
486: 07000d93 li s11,112
putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]);
48a: 00000b97 auipc s7,0x0
48e: 38eb8b93 addi s7,s7,910 # 818 <digits>
492: a839 j 4b0 <vprintf+0x6a>
putc(fd, c);
494: 85ca mv a1,s2
496: 8556 mv a0,s5
498: 00000097 auipc ra,0x0
49c: ee2080e7 jalr -286(ra) # 37a <putc>
4a0: a019 j 4a6 <vprintf+0x60>
} else if(state == '%'){
4a2: 01498f63 beq s3,s4,4c0 <vprintf+0x7a>
for(i = 0; fmt[i]; i++){
4a6: 0485 addi s1,s1,1
4a8: fff4c903 lbu s2,-1(s1)
4ac: 14090d63 beqz s2,606 <vprintf+0x1c0>
c = fmt[i] & 0xff;
4b0: 0009079b sext.w a5,s2
if(state == 0){
4b4: fe0997e3 bnez s3,4a2 <vprintf+0x5c>
if(c == '%'){
4b8: fd479ee3 bne a5,s4,494 <vprintf+0x4e>
state = '%';
4bc: 89be mv s3,a5
4be: b7e5 j 4a6 <vprintf+0x60>
if(c == 'd'){
4c0: 05878063 beq a5,s8,500 <vprintf+0xba>
} else if(c == 'l') {
4c4: 05978c63 beq a5,s9,51c <vprintf+0xd6>
} else if(c == 'x') {
4c8: 07a78863 beq a5,s10,538 <vprintf+0xf2>
} else if(c == 'p') {
4cc: 09b78463 beq a5,s11,554 <vprintf+0x10e>
printptr(fd, va_arg(ap, uint64));
} else if(c == 's'){
4d0: 07300713 li a4,115
4d4: 0ce78663 beq a5,a4,5a0 <vprintf+0x15a>
s = "(null)";
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
4d8: 06300713 li a4,99
4dc: 0ee78e63 beq a5,a4,5d8 <vprintf+0x192>
putc(fd, va_arg(ap, uint));
} else if(c == '%'){
4e0: 11478863 beq a5,s4,5f0 <vprintf+0x1aa>
putc(fd, c);
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
4e4: 85d2 mv a1,s4
4e6: 8556 mv a0,s5
4e8: 00000097 auipc ra,0x0
4ec: e92080e7 jalr -366(ra) # 37a <putc>
putc(fd, c);
4f0: 85ca mv a1,s2
4f2: 8556 mv a0,s5
4f4: 00000097 auipc ra,0x0
4f8: e86080e7 jalr -378(ra) # 37a <putc>
}
state = 0;
4fc: 4981 li s3,0
4fe: b765 j 4a6 <vprintf+0x60>
printint(fd, va_arg(ap, int), 10, 1);
500: 008b0913 addi s2,s6,8
504: 4685 li a3,1
506: 4629 li a2,10
508: 000b2583 lw a1,0(s6)
50c: 8556 mv a0,s5
50e: 00000097 auipc ra,0x0
512: e8e080e7 jalr -370(ra) # 39c <printint>
516: 8b4a mv s6,s2
state = 0;
518: 4981 li s3,0
51a: b771 j 4a6 <vprintf+0x60>
printint(fd, va_arg(ap, uint64), 10, 0);
51c: 008b0913 addi s2,s6,8
520: 4681 li a3,0
522: 4629 li a2,10
524: 000b2583 lw a1,0(s6)
528: 8556 mv a0,s5
52a: 00000097 auipc ra,0x0
52e: e72080e7 jalr -398(ra) # 39c <printint>
532: 8b4a mv s6,s2
state = 0;
534: 4981 li s3,0
536: bf85 j 4a6 <vprintf+0x60>
printint(fd, va_arg(ap, int), 16, 0);
538: 008b0913 addi s2,s6,8
53c: 4681 li a3,0
53e: 4641 li a2,16
540: 000b2583 lw a1,0(s6)
544: 8556 mv a0,s5
546: 00000097 auipc ra,0x0
54a: e56080e7 jalr -426(ra) # 39c <printint>
54e: 8b4a mv s6,s2
state = 0;
550: 4981 li s3,0
552: bf91 j 4a6 <vprintf+0x60>
printptr(fd, va_arg(ap, uint64));
554: 008b0793 addi a5,s6,8
558: f8f43423 sd a5,-120(s0)
55c: 000b3983 ld s3,0(s6)
putc(fd, '0');
560: 03000593 li a1,48
564: 8556 mv a0,s5
566: 00000097 auipc ra,0x0
56a: e14080e7 jalr -492(ra) # 37a <putc>
putc(fd, 'x');
56e: 85ea mv a1,s10
570: 8556 mv a0,s5
572: 00000097 auipc ra,0x0
576: e08080e7 jalr -504(ra) # 37a <putc>
57a: 4941 li s2,16
putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]);
57c: 03c9d793 srli a5,s3,0x3c
580: 97de add a5,a5,s7
582: 0007c583 lbu a1,0(a5)
586: 8556 mv a0,s5
588: 00000097 auipc ra,0x0
58c: df2080e7 jalr -526(ra) # 37a <putc>
for (i = 0; i < (sizeof(uint64) * 2); i++, x <<= 4)
590: 0992 slli s3,s3,0x4
592: 397d addiw s2,s2,-1
594: fe0914e3 bnez s2,57c <vprintf+0x136>
printptr(fd, va_arg(ap, uint64));
598: f8843b03 ld s6,-120(s0)
state = 0;
59c: 4981 li s3,0
59e: b721 j 4a6 <vprintf+0x60>
s = va_arg(ap, char*);
5a0: 008b0993 addi s3,s6,8
5a4: 000b3903 ld s2,0(s6)
if(s == 0)
5a8: 02090163 beqz s2,5ca <vprintf+0x184>
while(*s != 0){
5ac: 00094583 lbu a1,0(s2)
5b0: c9a1 beqz a1,600 <vprintf+0x1ba>
putc(fd, *s);
5b2: 8556 mv a0,s5
5b4: 00000097 auipc ra,0x0
5b8: dc6080e7 jalr -570(ra) # 37a <putc>
s++;
5bc: 0905 addi s2,s2,1
while(*s != 0){
5be: 00094583 lbu a1,0(s2)
5c2: f9e5 bnez a1,5b2 <vprintf+0x16c>
s = va_arg(ap, char*);
5c4: 8b4e mv s6,s3
state = 0;
5c6: 4981 li s3,0
5c8: bdf9 j 4a6 <vprintf+0x60>
s = "(null)";
5ca: 00000917 auipc s2,0x0
5ce: 24690913 addi s2,s2,582 # 810 <malloc+0x100>
while(*s != 0){
5d2: 02800593 li a1,40
5d6: bff1 j 5b2 <vprintf+0x16c>
putc(fd, va_arg(ap, uint));
5d8: 008b0913 addi s2,s6,8
5dc: 000b4583 lbu a1,0(s6)
5e0: 8556 mv a0,s5
5e2: 00000097 auipc ra,0x0
5e6: d98080e7 jalr -616(ra) # 37a <putc>
5ea: 8b4a mv s6,s2
state = 0;
5ec: 4981 li s3,0
5ee: bd65 j 4a6 <vprintf+0x60>
putc(fd, c);
5f0: 85d2 mv a1,s4
5f2: 8556 mv a0,s5
5f4: 00000097 auipc ra,0x0
5f8: d86080e7 jalr -634(ra) # 37a <putc>
state = 0;
5fc: 4981 li s3,0
5fe: b565 j 4a6 <vprintf+0x60>
s = va_arg(ap, char*);
600: 8b4e mv s6,s3
state = 0;
602: 4981 li s3,0
604: b54d j 4a6 <vprintf+0x60>
}
}
}
606: 70e6 ld ra,120(sp)
608: 7446 ld s0,112(sp)
60a: 74a6 ld s1,104(sp)
60c: 7906 ld s2,96(sp)
60e: 69e6 ld s3,88(sp)
610: 6a46 ld s4,80(sp)
612: 6aa6 ld s5,72(sp)
614: 6b06 ld s6,64(sp)
616: 7be2 ld s7,56(sp)
618: 7c42 ld s8,48(sp)
61a: 7ca2 ld s9,40(sp)
61c: 7d02 ld s10,32(sp)
61e: 6de2 ld s11,24(sp)
620: 6109 addi sp,sp,128
622: 8082 ret
0000000000000624 <fprintf>:
void
fprintf(int fd, const char *fmt, ...)
{
624: 715d addi sp,sp,-80
626: ec06 sd ra,24(sp)
628: e822 sd s0,16(sp)
62a: 1000 addi s0,sp,32
62c: e010 sd a2,0(s0)
62e: e414 sd a3,8(s0)
630: e818 sd a4,16(s0)
632: ec1c sd a5,24(s0)
634: 03043023 sd a6,32(s0)
638: 03143423 sd a7,40(s0)
va_list ap;
va_start(ap, fmt);
63c: fe843423 sd s0,-24(s0)
vprintf(fd, fmt, ap);
640: 8622 mv a2,s0
642: 00000097 auipc ra,0x0
646: e04080e7 jalr -508(ra) # 446 <vprintf>
}
64a: 60e2 ld ra,24(sp)
64c: 6442 ld s0,16(sp)
64e: 6161 addi sp,sp,80
650: 8082 ret
0000000000000652 <printf>:
void
printf(const char *fmt, ...)
{
652: 711d addi sp,sp,-96
654: ec06 sd ra,24(sp)
656: e822 sd s0,16(sp)
658: 1000 addi s0,sp,32
65a: e40c sd a1,8(s0)
65c: e810 sd a2,16(s0)
65e: ec14 sd a3,24(s0)
660: f018 sd a4,32(s0)
662: f41c sd a5,40(s0)
664: 03043823 sd a6,48(s0)
668: 03143c23 sd a7,56(s0)
va_list ap;
va_start(ap, fmt);
66c: 00840613 addi a2,s0,8
670: fec43423 sd a2,-24(s0)
vprintf(1, fmt, ap);
674: 85aa mv a1,a0
676: 4505 li a0,1
678: 00000097 auipc ra,0x0
67c: dce080e7 jalr -562(ra) # 446 <vprintf>
}
680: 60e2 ld ra,24(sp)
682: 6442 ld s0,16(sp)
684: 6125 addi sp,sp,96
686: 8082 ret
0000000000000688 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
688: 1141 addi sp,sp,-16
68a: e422 sd s0,8(sp)
68c: 0800 addi s0,sp,16
Header *bp, *p;
bp = (Header*)ap - 1;
68e: ff050693 addi a3,a0,-16
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
692: 00000797 auipc a5,0x0
696: 19e7b783 ld a5,414(a5) # 830 <freep>
69a: a805 j 6ca <free+0x42>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
break;
if(bp + bp->s.size == p->s.ptr){
bp->s.size += p->s.ptr->s.size;
69c: 4618 lw a4,8(a2)
69e: 9db9 addw a1,a1,a4
6a0: feb52c23 sw a1,-8(a0)
bp->s.ptr = p->s.ptr->s.ptr;
6a4: 6398 ld a4,0(a5)
6a6: 6318 ld a4,0(a4)
6a8: fee53823 sd a4,-16(a0)
6ac: a091 j 6f0 <free+0x68>
} else
bp->s.ptr = p->s.ptr;
if(p + p->s.size == bp){
p->s.size += bp->s.size;
6ae: ff852703 lw a4,-8(a0)
6b2: 9e39 addw a2,a2,a4
6b4: c790 sw a2,8(a5)
p->s.ptr = bp->s.ptr;
6b6: ff053703 ld a4,-16(a0)
6ba: e398 sd a4,0(a5)
6bc: a099 j 702 <free+0x7a>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
6be: 6398 ld a4,0(a5)
6c0: 00e7e463 bltu a5,a4,6c8 <free+0x40>
6c4: 00e6ea63 bltu a3,a4,6d8 <free+0x50>
{
6c8: 87ba mv a5,a4
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
6ca: fed7fae3 bgeu a5,a3,6be <free+0x36>
6ce: 6398 ld a4,0(a5)
6d0: 00e6e463 bltu a3,a4,6d8 <free+0x50>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
6d4: fee7eae3 bltu a5,a4,6c8 <free+0x40>
if(bp + bp->s.size == p->s.ptr){
6d8: ff852583 lw a1,-8(a0)
6dc: 6390 ld a2,0(a5)
6de: 02059813 slli a6,a1,0x20
6e2: 01c85713 srli a4,a6,0x1c
6e6: 9736 add a4,a4,a3
6e8: fae60ae3 beq a2,a4,69c <free+0x14>
bp->s.ptr = p->s.ptr;
6ec: fec53823 sd a2,-16(a0)
if(p + p->s.size == bp){
6f0: 4790 lw a2,8(a5)
6f2: 02061593 slli a1,a2,0x20
6f6: 01c5d713 srli a4,a1,0x1c
6fa: 973e add a4,a4,a5
6fc: fae689e3 beq a3,a4,6ae <free+0x26>
} else
p->s.ptr = bp;
700: e394 sd a3,0(a5)
freep = p;
702: 00000717 auipc a4,0x0
706: 12f73723 sd a5,302(a4) # 830 <freep>
}
70a: 6422 ld s0,8(sp)
70c: 0141 addi sp,sp,16
70e: 8082 ret
0000000000000710 <malloc>:
return freep;
}
void*
malloc(uint nbytes)
{
710: 7139 addi sp,sp,-64
712: fc06 sd ra,56(sp)
714: f822 sd s0,48(sp)
716: f426 sd s1,40(sp)
718: f04a sd s2,32(sp)
71a: ec4e sd s3,24(sp)
71c: e852 sd s4,16(sp)
71e: e456 sd s5,8(sp)
720: e05a sd s6,0(sp)
722: 0080 addi s0,sp,64
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
724: 02051493 slli s1,a0,0x20
728: 9081 srli s1,s1,0x20
72a: 04bd addi s1,s1,15
72c: 8091 srli s1,s1,0x4
72e: 0014899b addiw s3,s1,1
732: 0485 addi s1,s1,1
if((prevp = freep) == 0){
734: 00000517 auipc a0,0x0
738: 0fc53503 ld a0,252(a0) # 830 <freep>
73c: c515 beqz a0,768 <malloc+0x58>
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
73e: 611c ld a5,0(a0)
if(p->s.size >= nunits){
740: 4798 lw a4,8(a5)
742: 02977f63 bgeu a4,s1,780 <malloc+0x70>
746: 8a4e mv s4,s3
748: 0009871b sext.w a4,s3
74c: 6685 lui a3,0x1
74e: 00d77363 bgeu a4,a3,754 <malloc+0x44>
752: 6a05 lui s4,0x1
754: 000a0b1b sext.w s6,s4
p = sbrk(nu * sizeof(Header));
758: 004a1a1b slliw s4,s4,0x4
p->s.size = nunits;
}
freep = prevp;
return (void*)(p + 1);
}
if(p == freep){
75c: 00000917 auipc s2,0x0
760: 0d490913 addi s2,s2,212 # 830 <freep>
if(p == (char*)-1)
764: 5afd li s5,-1
766: a895 j 7da <malloc+0xca>
base.s.ptr = freep = prevp = &base;
768: 00000797 auipc a5,0x0
76c: 0d078793 addi a5,a5,208 # 838 <base>
770: 00000717 auipc a4,0x0
774: 0cf73023 sd a5,192(a4) # 830 <freep>
778: e39c sd a5,0(a5)
base.s.size = 0;
77a: 0007a423 sw zero,8(a5)
if(p->s.size >= nunits){
77e: b7e1 j 746 <malloc+0x36>
if(p->s.size == nunits)
780: 02e48c63 beq s1,a4,7b8 <malloc+0xa8>
p->s.size -= nunits;
784: 4137073b subw a4,a4,s3
788: c798 sw a4,8(a5)
p += p->s.size;
78a: 02071693 slli a3,a4,0x20
78e: 01c6d713 srli a4,a3,0x1c
792: 97ba add a5,a5,a4
p->s.size = nunits;
794: 0137a423 sw s3,8(a5)
freep = prevp;
798: 00000717 auipc a4,0x0
79c: 08a73c23 sd a0,152(a4) # 830 <freep>
return (void*)(p + 1);
7a0: 01078513 addi a0,a5,16
if((p = morecore(nunits)) == 0){
return 0;
}
}
}
}
7a4: 70e2 ld ra,56(sp)
7a6: 7442 ld s0,48(sp)
7a8: 74a2 ld s1,40(sp)
7aa: 7902 ld s2,32(sp)
7ac: 69e2 ld s3,24(sp)
7ae: 6a42 ld s4,16(sp)
7b0: 6aa2 ld s5,8(sp)
7b2: 6b02 ld s6,0(sp)
7b4: 6121 addi sp,sp,64
7b6: 8082 ret
prevp->s.ptr = p->s.ptr;
7b8: 6398 ld a4,0(a5)
7ba: e118 sd a4,0(a0)
7bc: bff1 j 798 <malloc+0x88>
hp->s.size = nu;
7be: 01652423 sw s6,8(a0)
free((void*)(hp + 1));
7c2: 0541 addi a0,a0,16
7c4: 00000097 auipc ra,0x0
7c8: ec4080e7 jalr -316(ra) # 688 <free>
return freep;
7cc: 00093503 ld a0,0(s2)
if((p = morecore(nunits)) == 0){
7d0: d971 beqz a0,7a4 <malloc+0x94>
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
7d2: 611c ld a5,0(a0)
if(p->s.size >= nunits){
7d4: 4798 lw a4,8(a5)
7d6: fa9775e3 bgeu a4,s1,780 <malloc+0x70>
if(p == freep){
7da: 00093703 ld a4,0(s2)
7de: 853e mv a0,a5
7e0: fef719e3 bne a4,a5,7d2 <malloc+0xc2>
p = sbrk(nu * sizeof(Header));
7e4: 8552 mv a0,s4
7e6: 00000097 auipc ra,0x0
7ea: b74080e7 jalr -1164(ra) # 35a <sbrk>
if(p == (char*)-1)
7ee: fd5518e3 bne a0,s5,7be <malloc+0xae>
return 0;
7f2: 4501 li a0,0
7f4: bf45 j 7a4 <malloc+0x94>
|
; A143988: Numbers congruent to {5, 13} mod 18.
; 5,13,23,31,41,49,59,67,77,85,95,103,113,121,131,139,149,157,167,175,185,193,203,211,221,229,239,247,257,265,275,283,293,301,311,319,329,337,347,355,365,373,383,391,401,409,419,427,437,445,455,463,473,481,491,499,509,517,527,535,545,553,563,571,581,589,599,607,617,625,635,643,653,661,671,679,689,697,707,715,725,733,743,751,761,769,779,787,797,805,815,823,833,841,851,859,869,877,887,895
mul $0,18
div $0,4
mul $0,2
add $0,5
|
/******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/localization/msf/msf_localization_component.h"
#include "modules/common/math/quaternion.h"
#include "modules/common/time/time.h"
#include "modules/common/adapters/adapter_gflags.h"
#include "modules/localization/common/localization_gflags.h"
namespace apollo {
namespace localization {
using apollo::common::time::Clock;
MSFLocalizationComponent::MSFLocalizationComponent() {}
bool MSFLocalizationComponent::Init() {
publisher_.reset(new LocalizationMsgPublisher(this->node_));
if (!InitConfig()) {
AERROR << "Init Config failed.";
return false;
}
if (!InitIO()) {
AERROR << "Init IO failed.";
return false;
}
return true;
}
bool MSFLocalizationComponent::InitConfig() {
lidar_topic_ = FLAGS_lidar_topic;
bestgnsspos_topic_ = FLAGS_gnss_best_pose_topic;
gnss_heading_topic_ = FLAGS_heading_topic;
gps_topic_ = FLAGS_gps_topic;
if (!publisher_->InitConfig()) {
AERROR << "Init publisher config failed.";
return false;
}
if (!localization_.Init().ok()) {
AERROR << "Init class MSFLocalization failed.";
return false;
}
return true;
}
bool MSFLocalizationComponent::InitIO() {
cyber::ReaderConfig reader_config;
reader_config.channel_name = lidar_topic_;
reader_config.pending_queue_size = 1;
std::function<void(const std::shared_ptr<drivers::PointCloud>&)>
lidar_register_call = std::bind(&MSFLocalization::OnPointCloud,
&localization_, std::placeholders::_1);
lidar_listener_ = this->node_->CreateReader<drivers::PointCloud>(
reader_config, lidar_register_call);
std::function<void(const std::shared_ptr<drivers::gnss::GnssBestPose>&)>
bestgnsspos_register_call =
std::bind(&MSFLocalization::OnGnssBestPose, &localization_,
std::placeholders::_1);
bestgnsspos_listener_ =
this->node_->CreateReader<drivers::gnss::GnssBestPose>(
bestgnsspos_topic_, bestgnsspos_register_call);
std::function<void(const std::shared_ptr<drivers::gnss::Heading>&)>
gnss_heading_call = std::bind(&MSFLocalization::OnGnssHeading,
&localization_, std::placeholders::_1);
gnss_heading_listener_ = this->node_->CreateReader<drivers::gnss::Heading>(
gnss_heading_topic_, gnss_heading_call);
std::function<void(const std::shared_ptr<Gps>& gps_msg)> gps_call =
std::bind(&MSFLocalization::OnGps, &localization_);
gps_listener_ = this->node_->CreateReader<Gps>(gps_topic_, gps_call);
// init writer
if (!publisher_->InitIO()) {
AERROR << "Init publisher io failed.";
return false;
}
localization_.SetPublisher(publisher_);
return true;
}
bool MSFLocalizationComponent::Proc(
const std::shared_ptr<drivers::gnss::Imu>& imu_msg) {
localization_.OnRawImuCache(imu_msg);
return true;
}
LocalizationMsgPublisher::LocalizationMsgPublisher(
const std::shared_ptr<cyber::Node>& node)
: node_(node), tf2_broadcaster_(node) {}
bool LocalizationMsgPublisher::InitConfig() {
localization_topic_ = FLAGS_localization_topic;
broadcast_tf_frame_id_ = FLAGS_broadcast_tf_frame_id;
broadcast_tf_child_frame_id_ = FLAGS_broadcast_tf_child_frame_id;
lidar_local_topic_ = FLAGS_localization_lidar_topic;
gnss_local_topic_ = FLAGS_localization_gnss_topic;
localization_status_topic_ = FLAGS_localization_msf_status;
return true;
}
bool LocalizationMsgPublisher::InitIO() {
localization_talker_ =
node_->CreateWriter<LocalizationEstimate>(localization_topic_);
lidar_local_talker_ =
node_->CreateWriter<LocalizationEstimate>(lidar_local_topic_);
gnss_local_talker_ =
node_->CreateWriter<LocalizationEstimate>(gnss_local_topic_);
localization_status_talker_ =
node_->CreateWriter<LocalizationStatus>(localization_status_topic_);
return true;
}
void LocalizationMsgPublisher::PublishPoseBroadcastTF(
const LocalizationEstimate& localization) {
// broadcast tf message
apollo::transform::TransformStamped tf2_msg;
auto mutable_head = tf2_msg.mutable_header();
mutable_head->set_timestamp_sec(localization.measurement_time());
mutable_head->set_frame_id(broadcast_tf_frame_id_);
tf2_msg.set_child_frame_id(broadcast_tf_child_frame_id_);
auto mutable_translation = tf2_msg.mutable_transform()->mutable_translation();
mutable_translation->set_x(localization.pose().position().x());
mutable_translation->set_y(localization.pose().position().y());
mutable_translation->set_z(localization.pose().position().z());
auto mutable_rotation = tf2_msg.mutable_transform()->mutable_rotation();
mutable_rotation->set_qx(localization.pose().orientation().qx());
mutable_rotation->set_qy(localization.pose().orientation().qy());
mutable_rotation->set_qz(localization.pose().orientation().qz());
mutable_rotation->set_qw(localization.pose().orientation().qw());
tf2_broadcaster_.SendTransform(tf2_msg);
}
void LocalizationMsgPublisher::PublishPoseBroadcastTopic(
const LocalizationEstimate& localization) {
double cur_system_time = localization.header().timestamp_sec();
if (pre_system_time_ > 0.0 && cur_system_time - pre_system_time_ > 0.02) {
AERROR << std::setprecision(16)
<< "the localization processing time enlonged more than 2 times "
"according to system time, "
<< "the pre system time and current system time: "
<< pre_system_time_ << " " << cur_system_time;
} else if (pre_system_time_ > 0.0 &&
cur_system_time - pre_system_time_ < 0.0) {
AERROR << std::setprecision(16)
<< "published localization message's time is eary than last imu "
"message "
"according to system time, "
<< "the pre system time and current system time: "
<< pre_system_time_ << " " << cur_system_time;
}
pre_system_time_ = cur_system_time;
localization_talker_->Write(localization);
}
void LocalizationMsgPublisher::PublishLocalizationMsfGnss(
const LocalizationEstimate& localization) {
gnss_local_talker_->Write(localization);
}
void LocalizationMsgPublisher::PublishLocalizationMsfLidar(
const LocalizationEstimate& localization) {
lidar_local_talker_->Write(localization);
}
void LocalizationMsgPublisher::PublishLocalizationStatus(
const LocalizationStatus& localization_status) {
localization_status_talker_->Write(localization_status);
}
} // namespace localization
} // namespace apollo |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: VidMem video driver
FILE: cmykDither.asm
AUTHOR: Jim DeFrisco, Dec 12, 1991
REVISION HISTORY:
Name Date Description
---- ---- -----------
Jim 12/12/91 Initial revision
DESCRIPTION:
This file holds the dither patterns required for CMYK vidmem module
No patterns are supplied for 0% or 100%, as these should be
optimized out.
$Id: cmykDither.asm,v 1.1 97/04/18 11:43:04 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CMYKDither segment resource
if _CMYK
ditherCyan label nptr
word offset allZeroes ; 0.00%
word offset cyan5 ; 3.13%
word offset cyan5 ; 6.25%
word offset cyan10 ; 9.38%
word offset cyan15 ; 12.50%
word offset cyan15 ; 16.63%
word offset cyan20 ; 18.75%
word offset cyan25 ; 21.88%
word offset cyan25 ; 25.00%
word offset cyan30 ; 28.13%
word offset cyan30 ; 31.25%
word offset cyan35 ; 34.38%
word offset cyan40 ; 37.50%
word offset cyan40 ; 40.63%
word offset cyan45 ; 43.75%
word offset cyan45 ; 46.88%
word offset cyan50 ; 50.00%
word offset cyan55 ; 53.13%
word offset cyan55 ; 56.25%
word offset cyan60 ; 59.38%
word offset cyan65 ; 62.50%
word offset cyan65 ; 65.63%
word offset cyan70 ; 68.75%
word offset cyan70 ; 71.88%
word offset cyan75 ; 75.00%
word offset cyan80 ; 78.13%
word offset cyan80 ; 81.25%
word offset cyan85 ; 84.38%
word offset cyan90 ; 87.50%
word offset cyan90 ; 90.63%
word offset cyan95 ; 93.75%
word offset cyan95 ; 96.88%
word offset allOnes ; 100% = 248
ditherMagenta label nptr
word offset allZeroes ; 0.00%
word offset magenta5 ; 3.13%
word offset magenta5 ; 6.25%
word offset magenta10 ; 9.38%
word offset magenta15 ; 12.50%
word offset magenta15 ; 16.63%
word offset magenta20 ; 18.75%
word offset magenta25 ; 21.88%
word offset magenta25 ; 25.00%
word offset magenta30 ; 28.13%
word offset magenta30 ; 31.25%
word offset magenta35 ; 34.38%
word offset magenta40 ; 37.50%
word offset magenta40 ; 40.63%
word offset magenta45 ; 43.75%
word offset magenta45 ; 46.88%
word offset magenta50 ; 50.00%
word offset magenta55 ; 53.13%
word offset magenta55 ; 56.25%
word offset magenta60 ; 59.38%
word offset magenta65 ; 62.50%
word offset magenta65 ; 65.63%
word offset magenta70 ; 68.75%
word offset magenta75 ; 71.88%
word offset magenta75 ; 75.00%
word offset magenta80 ; 78.13%
word offset magenta80 ; 81.25%
word offset magenta85 ; 84.38%
word offset magenta90 ; 87.50%
word offset magenta90 ; 90.63%
word offset magenta95 ; 93.75%
word offset magenta95 ; 96.88%
word offset allOnes ; 100% = 248
ditherYellow label nptr
word offset allZeroes ; 0.00%
word offset yellow6 ; 3.13%
word offset yellow6 ; 6.25%
word offset yellow13 ; 9.38%
word offset yellow13 ; 12.50%
word offset yellow19 ; 16.63%
word offset yellow19 ; 18.75%
word offset yellow25 ; 21.88%
word offset yellow25 ; 25.00%
word offset yellow31 ; 28.13%
word offset yellow31 ; 31.25%
word offset yellow38 ; 34.38%
word offset yellow38 ; 37.50%
word offset yellow44 ; 40.63%
word offset yellow44 ; 43.75%
word offset yellow50 ; 46.88%
word offset yellow50 ; 50.00%
word offset yellow56 ; 53.13%
word offset yellow56 ; 56.25%
word offset yellow63 ; 59.38%
word offset yellow63 ; 62.50%
word offset yellow69 ; 65.63%
word offset yellow69 ; 68.75%
word offset yellow75 ; 71.88%
word offset yellow75 ; 75.00%
word offset yellow81 ; 78.13%
word offset yellow81 ; 81.25%
word offset yellow88 ; 84.38%
word offset yellow88 ; 87.50%
word offset yellow94 ; 90.63%
word offset yellow94 ; 93.75%
word offset allOnes ; 96.88%
word offset allOnes ; 100.0%
endif ; if _CMYK
ditherBlack label nptr
word offset allZeroes ; 0.00%
word offset black6 ; 3.13%
word offset black6 ; 6.25%
word offset black11 ; 9.38%
word offset black11 ; 12.50%
word offset black17 ; 16.63%
word offset black17 ; 18.75%
word offset black22 ; 21.88%
word offset black28 ; 25.00%
word offset black28 ; 28.13%
word offset black33 ; 31.25%
word offset black33 ; 34.38%
word offset black39 ; 37.50%
word offset black39 ; 40.63%
word offset black44 ; 43.75%
word offset black44 ; 46.88%
word offset black50 ; 50.00%
word offset black56 ; 53.13%
word offset black56 ; 56.25%
word offset black61 ; 59.38%
word offset black61 ; 62.50%
word offset black67 ; 65.63%
word offset black67 ; 68.75%
word offset black72 ; 71.88%
word offset black78 ; 75.00%
word offset black78 ; 78.13%
word offset black83 ; 81.25%
word offset black83 ; 84.38%
word offset black89 ; 87.50%
word offset black89 ; 90.63%
word offset black94 ; 93.75%
word offset black94 ; 96.88%
word offset allOnes ; 100.0%
; any value above these represented by 100% fill...
BLACK_MAX equ 247
YELLOW_MAX equ 247
MAGENTA_MAX equ 248
CYAN_MAX equ 248
;----------------------------------------------------------------------------
; COMMON DITHER PATTERNS
; all zeroes, all ones
;----------------------------------------------------------------------------
allZeroes label byte
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
allOnes label byte
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
;----------------------------------------------------------------------------
; CYAN DITHER PATTERNS
; 4x4 superpixel, aligned at 116.5 degrees
;----------------------------------------------------------------------------
if _CMYK
cyan5 label byte
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00000000b, 10000000b, 00100000b, 00001000b, 00000010b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00001000b, 00000010b, 00000000b, 10000000b, 00100000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 10000000b, 00100000b, 00001000b, 00000010b, 00000000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00000010b, 00000000b, 10000000b, 00100000b, 00001000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00100000b, 00001000b, 00000010b, 00000000b, 10000000b
cyan10 label byte
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00000001b, 10000000b, 01100000b, 00011000b, 00000110b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00011000b, 00000110b, 00000001b, 10000000b, 01100000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 10000000b, 01100000b, 00011000b, 00000110b, 00000001b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00000110b, 00000001b, 10000000b, 01100000b, 00011000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 01100000b, 00011000b, 00000110b, 00000001b, 10000000b
cyan15 label byte
byte 00000001b, 00000000b, 01000000b, 00010000b, 00000100b
byte 00000001b, 10000000b, 01100000b, 00011000b, 00000110b
byte 00010000b, 00000100b, 00000001b, 00000000b, 01000000b
byte 00011000b, 00000110b, 00000001b, 10000000b, 01100000b
byte 00000000b, 01000000b, 00010000b, 00000100b, 00000001b
byte 10000000b, 01100000b, 00011000b, 00000110b, 00000001b
byte 00000100b, 00000001b, 00000000b, 01000000b, 00010000b
byte 00000110b, 00000001b, 10000000b, 01100000b, 00011000b
byte 01000000b, 00010000b, 00000100b, 00000001b, 00000000b
byte 01100000b, 00011000b, 00000110b, 00000001b, 10000000b
cyan20 label byte
byte 00000001b, 10000000b, 01100000b, 00011000b, 00000110b
byte 00000001b, 10000000b, 01100000b, 00011000b, 00000110b
byte 00011000b, 00000110b, 00000001b, 10000000b, 01100000b
byte 00011000b, 00000110b, 00000001b, 10000000b, 01100000b
byte 10000000b, 01100000b, 00011000b, 00000110b, 00000001b
byte 10000000b, 01100000b, 00011000b, 00000110b, 00000001b
byte 00000110b, 00000001b, 10000000b, 01100000b, 00011000b
byte 00000110b, 00000001b, 10000000b, 01100000b, 00011000b
byte 01100000b, 00011000b, 00000110b, 00000001b, 10000000b
byte 01100000b, 00011000b, 00000110b, 00000001b, 10000000b
cyan25 label byte
byte 00000001b, 11000000b, 01110000b, 00011100b, 00000111b
byte 00000001b, 10000000b, 01100000b, 00011000b, 00000110b
byte 00011100b, 00000111b, 00000001b, 11000000b, 01110000b
byte 00011000b, 00000110b, 00000001b, 10000000b, 01100000b
byte 11000000b, 01110000b, 00011100b, 00000111b, 00000001b
byte 10000000b, 01100000b, 00011000b, 00000110b, 00000001b
byte 00000111b, 00000001b, 11000000b, 01110000b, 00011100b
byte 00000110b, 00000001b, 10000000b, 01100000b, 00011000b
byte 01110000b, 00011100b, 00000111b, 00000001b, 11000000b
byte 01100000b, 00011000b, 00000110b, 00000001b, 10000000b
cyan30 label byte
byte 00000001b, 11000000b, 01110000b, 00011100b, 00000111b
byte 00000001b, 11000000b, 01110000b, 00011100b, 00000111b
byte 00011100b, 00000111b, 00000001b, 11000000b, 01110000b
byte 00011100b, 00000111b, 00000001b, 11000000b, 01110000b
byte 11000000b, 01110000b, 00011100b, 00000111b, 00000001b
byte 11000000b, 01110000b, 00011100b, 00000111b, 00000001b
byte 00000111b, 00000001b, 11000000b, 01110000b, 00011100b
byte 00000111b, 00000001b, 11000000b, 01110000b, 00011100b
byte 01110000b, 00011100b, 00000111b, 00000001b, 11000000b
byte 01110000b, 00011100b, 00000111b, 00000001b, 11000000b
cyan35 label byte
byte 00100001b, 11001000b, 01110010b, 00011100b, 10000111b
byte 00000001b, 11000000b, 01110000b, 00011100b, 00000111b
byte 00011100b, 10000111b, 00100001b, 11001000b, 01110010b
byte 00011100b, 00000111b, 00000001b, 11000000b, 01110000b
byte 11001000b, 01110010b, 00011100b, 10000111b, 00100001b
byte 11000000b, 01110000b, 00011100b, 00000111b, 00000001b
byte 10000111b, 00100001b, 11001000b, 01110010b, 00011100b
byte 00000111b, 00000001b, 11000000b, 01110000b, 00011100b
byte 01110010b, 00011100b, 10000111b, 00100001b, 11001000b
byte 01110000b, 00011100b, 00000111b, 00000001b, 11000000b
cyan40 label byte
byte 01100001b, 11011000b, 01110110b, 00011101b, 10000111b
byte 00000001b, 11000000b, 01110000b, 00011100b, 00000111b
byte 00011101b, 10000111b, 01100001b, 11011000b, 01110110b
byte 00011100b, 00000111b, 00000001b, 11000000b, 01110000b
byte 11011000b, 01110110b, 00011101b, 10000111b, 01100001b
byte 11000000b, 01110000b, 00011100b, 00000111b, 00000001b
byte 10000111b, 01100001b, 11011000b, 01110110b, 00011101b
byte 00000111b, 00000001b, 11000000b, 01110000b, 00011100b
byte 01110110b, 00011101b, 10000111b, 01100001b, 11011000b
byte 01110000b, 00011100b, 00000111b, 00000001b, 11000000b
cyan45 label byte
byte 01110001b, 11011100b, 01110111b, 00011101b, 11000111b
byte 00000001b, 11000000b, 01110000b, 00011100b, 00000111b
byte 00011101b, 11000111b, 01110001b, 11011100b, 01110111b
byte 00011100b, 00000111b, 00000001b, 11000000b, 01110000b
byte 11011100b, 01110111b, 00011101b, 11000111b, 01110001b
byte 11000000b, 01110000b, 00011100b, 00000111b, 00000001b
byte 11000111b, 01110001b, 11011100b, 01110111b, 00011101b
byte 00000111b, 00000001b, 11000000b, 01110000b, 00011100b
byte 01110111b, 00011101b, 11000111b, 01110001b, 11011100b
byte 01110000b, 00011100b, 00000111b, 00000001b, 11000000b
cyan50 label byte
byte 01110011b, 11011100b, 11110111b, 00111101b, 11001111b
byte 00000001b, 11000000b, 01110000b, 00011100b, 00000111b
byte 00111101b, 11001111b, 01110011b, 11011100b, 11110111b
byte 00011100b, 00000111b, 00000001b, 11000000b, 01110000b
byte 11011100b, 11110111b, 00111101b, 11001111b, 01110011b
byte 11000000b, 01110000b, 00011100b, 00000111b, 00000001b
byte 11001111b, 01110011b, 11011100b, 11110111b, 00111101b
byte 00000111b, 00000001b, 11000000b, 01110000b, 00011100b
byte 11110111b, 00111101b, 11001111b, 01110011b, 11011100b
byte 01110000b, 00011100b, 00000111b, 00000001b, 11000000b
cyan55 label byte
byte 01110011b, 11011100b, 11110111b, 00111101b, 11001111b
byte 00000011b, 11000000b, 11110000b, 00111100b, 00001111b
byte 00111101b, 11001111b, 01110011b, 11011100b, 11110111b
byte 00111100b, 00001111b, 00000011b, 11000000b, 11110000b
byte 11011100b, 11110111b, 00111101b, 11001111b, 01110011b
byte 11000000b, 11110000b, 00111100b, 00001111b, 00000011b
byte 11001111b, 01110011b, 11011100b, 11110111b, 00111101b
byte 00001111b, 00000011b, 11000000b, 11110000b, 00111100b
byte 11110111b, 00111101b, 11001111b, 01110011b, 11011100b
byte 11110000b, 00111100b, 00001111b, 00000011b, 11000000b
cyan60 label byte
byte 01110011b, 11011100b, 11110111b, 00111101b, 11001111b
byte 00001011b, 11000010b, 11110000b, 10111100b, 00101111b
byte 00111101b, 11001111b, 01110011b, 11011100b, 11110111b
byte 10111100b, 00101111b, 00001011b, 11000010b, 11110000b
byte 11011100b, 11110111b, 00111101b, 11001111b, 01110011b
byte 11000010b, 11110000b, 10111100b, 00101111b, 00001011b
byte 11001111b, 01110011b, 11011100b, 11110111b, 00111101b
byte 00101111b, 00001011b, 11000010b, 11110000b, 10111100b
byte 11110111b, 00111101b, 11001111b, 01110011b, 11011100b
byte 11110000b, 10111100b, 00101111b, 00001011b, 11000010b
cyan65 label byte
byte 01110011b, 11011100b, 11110111b, 00111101b, 11001111b
byte 00011011b, 11000110b, 11110001b, 10111100b, 01101111b
byte 00111101b, 11001111b, 01110011b, 11011100b, 11110111b
byte 10111100b, 01101111b, 00011011b, 11000110b, 11110001b
byte 11011100b, 11110111b, 00111101b, 11001111b, 01110011b
byte 11000110b, 11110001b, 10111100b, 01101111b, 00011011b
byte 11001111b, 01110011b, 11011100b, 11110111b, 00111101b
byte 01101111b, 00011011b, 11000110b, 11110001b, 10111100b
byte 11110111b, 00111101b, 11001111b, 01110011b, 11011100b
byte 11110001b, 10111100b, 01101111b, 00011011b, 11000110b
cyan70 label byte
byte 01110011b, 11011100b, 11110111b, 00111101b, 11001111b
byte 00011111b, 11000111b, 11110001b, 11111100b, 01111111b
byte 00111101b, 11001111b, 01110011b, 11011100b, 11110111b
byte 11111100b, 01111111b, 00011111b, 11000111b, 11110001b
byte 11011100b, 11110111b, 00111101b, 11001111b, 01110011b
byte 11000111b, 11110001b, 11111100b, 01111111b, 00011111b
byte 11001111b, 01110011b, 11011100b, 11110111b, 00111101b
byte 01111111b, 00011111b, 11000111b, 11110001b, 11111100b
byte 11110111b, 00111101b, 11001111b, 01110011b, 11011100b
byte 11110001b, 11111100b, 01111111b, 00011111b, 11000111b
cyan75 label byte
byte 11110011b, 11111100b, 11111111b, 00111111b, 11001111b
byte 00011111b, 11000111b, 11110001b, 11111100b, 01111111b
byte 00111111b, 11001111b, 11110011b, 11111100b, 11111111b
byte 11111100b, 01111111b, 00011111b, 11000111b, 11110001b
byte 11111100b, 11111111b, 00111111b, 11001111b, 11110011b
byte 11000111b, 11110001b, 11111100b, 01111111b, 00011111b
byte 11001111b, 11110011b, 11111100b, 11111111b, 00111111b
byte 01111111b, 00011111b, 11000111b, 11110001b, 11111100b
byte 11111111b, 00111111b, 11001111b, 11110011b, 11111100b
byte 11110001b, 11111100b, 01111111b, 00011111b, 11000111b
cyan80 label byte
byte 11110011b, 11111100b, 11111111b, 00111111b, 11001111b
byte 00111111b, 11001111b, 11110011b, 11111100b, 11111111b
byte 00111111b, 11001111b, 11110011b, 11111100b, 11111111b
byte 11111100b, 11111111b, 00111111b, 11001111b, 11110011b
byte 11111100b, 11111111b, 00111111b, 11001111b, 11110011b
byte 11001111b, 11110011b, 11111100b, 11111111b, 00111111b
byte 11001111b, 11110011b, 11111100b, 11111111b, 00111111b
byte 11111111b, 00111111b, 11001111b, 11110011b, 11111100b
byte 11111111b, 00111111b, 11001111b, 11110011b, 11111100b
byte 11110011b, 11111100b, 11111111b, 00111111b, 11001111b
cyan85 label byte
byte 11110011b, 11111100b, 11111111b, 00111111b, 11001111b
byte 10111111b, 11101111b, 11111011b, 11111110b, 11111111b
byte 00111111b, 11001111b, 11110011b, 11111100b, 11111111b
byte 11111110b, 11111111b, 10111111b, 11101111b, 11111011b
byte 11111100b, 11111111b, 00111111b, 11001111b, 11110011b
byte 11101111b, 11111011b, 11111110b, 11111111b, 10111111b
byte 11001111b, 11110011b, 11111100b, 11111111b, 00111111b
byte 11111111b, 10111111b, 11101111b, 11111011b, 11111110b
byte 11111111b, 00111111b, 11001111b, 11110011b, 11111100b
byte 11111011b, 11111110b, 11111111b, 10111111b, 11101111b
cyan90 label byte
byte 11111011b, 11111110b, 11111111b, 10111111b, 11101111b
byte 10111111b, 11101111b, 11111011b, 11111110b, 11111111b
byte 10111111b, 11101111b, 11111011b, 11111110b, 11111111b
byte 11111110b, 11111111b, 10111111b, 11101111b, 11111011b
byte 11111110b, 11111111b, 10111111b, 11101111b, 11111011b
byte 11101111b, 11111011b, 11111110b, 11111111b, 10111111b
byte 11101111b, 11111011b, 11111110b, 11111111b, 10111111b
byte 11111111b, 10111111b, 11101111b, 11111011b, 11111110b
byte 11111111b, 10111111b, 11101111b, 11111011b, 11111110b
byte 11111011b, 11111110b, 11111111b, 10111111b, 11101111b
cyan95 label byte
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 10111111b, 11101111b, 11111011b, 11111110b, 11111111b
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 11111110b, 11111111b, 10111111b, 11101111b, 11111011b
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 11101111b, 11111011b, 11111110b, 11111111b, 10111111b
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 11111111b, 10111111b, 11101111b, 11111011b, 11111110b
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 11111011b, 11111110b, 11111111b, 10111111b, 11101111b
;----------------------------------------------------------------------------
; MAGENTA DITHER PATTERNS
; 4x4 superpixel, aligned at 63.5 degrees
;----------------------------------------------------------------------------
magenta5 label byte
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00000000b, 10000000b, 00100000b, 00001000b, 00000010b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00100000b, 00001000b, 00000010b, 00000000b, 10000000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00000010b, 00000000b, 10000000b, 00100000b, 00001000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 10000000b, 00100000b, 00001000b, 00000010b, 00000000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00001000b, 00000010b, 00000000b, 10000000b, 00100000b
magenta10 label byte
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00000000b, 11000000b, 00110000b, 00001100b, 00000011b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00110000b, 00001100b, 00000011b, 00000000b, 11000000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00000011b, 00000000b, 11000000b, 00110000b, 00001100b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 11000000b, 00110000b, 00001100b, 00000011b, 00000000b
byte 00000000b, 00000000b, 00000000b, 00000000b, 00000000b
byte 00001100b, 00000011b, 00000000b, 11000000b, 00110000b
magenta15 label byte
byte 00000000b, 01000000b, 00010000b, 00000100b, 00000001b
byte 00000000b, 11000000b, 00110000b, 00001100b, 00000011b
byte 00010000b, 00000100b, 00000001b, 00000000b, 01000000b
byte 00110000b, 00001100b, 00000011b, 00000000b, 11000000b
byte 00000001b, 00000000b, 01000000b, 00010000b, 00000100b
byte 00000011b, 00000000b, 11000000b, 00110000b, 00001100b
byte 01000000b, 00010000b, 00000100b, 00000001b, 00000000b
byte 11000000b, 00110000b, 00001100b, 00000011b, 00000000b
byte 00000100b, 00000001b, 00000000b, 01000000b, 00010000b
byte 00001100b, 00000011b, 00000000b, 11000000b, 00110000b
magenta20 label byte
byte 00000000b, 11000000b, 00110000b, 00001100b, 00000011b
byte 00000000b, 11000000b, 00110000b, 00001100b, 00000011b
byte 00110000b, 00001100b, 00000011b, 00000000b, 11000000b
byte 00110000b, 00001100b, 00000011b, 00000000b, 11000000b
byte 00000011b, 00000000b, 11000000b, 00110000b, 00001100b
byte 00000011b, 00000000b, 11000000b, 00110000b, 00001100b
byte 11000000b, 00110000b, 00001100b, 00000011b, 00000000b
byte 11000000b, 00110000b, 00001100b, 00000011b, 00000000b
byte 00001100b, 00000011b, 00000000b, 11000000b, 00110000b
byte 00001100b, 00000011b, 00000000b, 11000000b, 00110000b
magenta25 label byte
byte 00000001b, 11000000b, 01110000b, 00011100b, 00000111b
byte 00000000b, 11000000b, 00110000b, 00001100b, 00000011b
byte 01110000b, 00011100b, 00000111b, 00000001b, 11000000b
byte 00110000b, 00001100b, 00000011b, 00000000b, 11000000b
byte 00000111b, 00000001b, 11000000b, 01110000b, 00011100b
byte 00000011b, 00000000b, 11000000b, 00110000b, 00001100b
byte 11000000b, 01110000b, 00011100b, 00000111b, 00000001b
byte 11000000b, 00110000b, 00001100b, 00000011b, 00000000b
byte 00011100b, 00000111b, 00000001b, 11000000b, 01110000b
byte 00001100b, 00000011b, 00000000b, 11000000b, 00110000b
magenta30 label byte
byte 00000001b, 11000000b, 01110000b, 00011100b, 00000111b
byte 00000001b, 11000000b, 01110000b, 00011100b, 00000111b
byte 01110000b, 00011100b, 00000111b, 00000001b, 11000000b
byte 01110000b, 00011100b, 00000111b, 00000001b, 11000000b
byte 00000111b, 00000001b, 11000000b, 01110000b, 00011100b
byte 00000111b, 00000001b, 11000000b, 01110000b, 00011100b
byte 11000000b, 01110000b, 00011100b, 00000111b, 00000001b
byte 11000000b, 01110000b, 00011100b, 00000111b, 00000001b
byte 00011100b, 00000111b, 00000001b, 11000000b, 01110000b
byte 00011100b, 00000111b, 00000001b, 11000000b, 01110000b
magenta35 label byte
byte 00001001b, 11000010b, 01110000b, 10011100b, 00100111b
byte 00000001b, 11000000b, 01110000b, 00011100b, 00000111b
byte 01110000b, 10011100b, 00100111b, 00001001b, 11000010b
byte 01110000b, 00011100b, 00000111b, 00000001b, 11000000b
byte 00100111b, 00001001b, 11000010b, 01110000b, 10011100b
byte 00000111b, 00000001b, 11000000b, 01110000b, 00011100b
byte 11000010b, 01110000b, 10011100b, 00100111b, 00001001b
byte 11000000b, 01110000b, 00011100b, 00000111b, 00000001b
byte 10011100b, 00100111b, 00001001b, 11000010b, 01110000b
byte 00011100b, 00000111b, 00000001b, 11000000b, 01110000b
magenta40 label byte
byte 00001101b, 11000011b, 01110000b, 11011100b, 00110111b
byte 00000001b, 11000000b, 01110000b, 00011100b, 00000111b
byte 01110000b, 11011100b, 00110111b, 00001101b, 11000011b
byte 01110000b, 00011100b, 00000111b, 00000001b, 11000000b
byte 00110111b, 00001101b, 11000011b, 01110000b, 11011100b
byte 00000111b, 00000001b, 11000000b, 01110000b, 00011100b
byte 11000011b, 01110000b, 11011100b, 00110111b, 00001101b
byte 11000000b, 01110000b, 00011100b, 00000111b, 00000001b
byte 11011100b, 00110111b, 00001101b, 11000011b, 01110000b
byte 00011100b, 00000111b, 00000001b, 11000000b, 01110000b
magenta45 label byte
byte 00011101b, 11000111b, 01110001b, 11011100b, 01110111b
byte 00000001b, 11000000b, 01110000b, 00011100b, 00000111b
byte 01110001b, 11011100b, 01110111b, 00011101b, 11000111b
byte 01110000b, 00011100b, 00000111b, 00000001b, 11000000b
byte 01110111b, 00011101b, 11000111b, 01110001b, 11011100b
byte 00000111b, 00000001b, 11000000b, 01110000b, 00011100b
byte 11000111b, 01110001b, 11011100b, 01110111b, 00011101b
byte 11000000b, 01110000b, 00011100b, 00000111b, 00000001b
byte 11011100b, 01110111b, 00011101b, 11000111b, 01110001b
byte 00011100b, 00000111b, 00000001b, 11000000b, 01110000b
magenta50 label byte
byte 10011101b, 11100111b, 01111001b, 11011110b, 01110111b
byte 00000001b, 11000000b, 01110000b, 00011100b, 00000111b
byte 01111001b, 11011110b, 01110111b, 10011101b, 11100111b
byte 01110000b, 00011100b, 00000111b, 00000001b, 11000000b
byte 01110111b, 10011101b, 11100111b, 01111001b, 11011110b
byte 00000111b, 00000001b, 11000000b, 01110000b, 00011100b
byte 11100111b, 01111001b, 11011110b, 01110111b, 10011101b
byte 11000000b, 01110000b, 00011100b, 00000111b, 00000001b
byte 11011110b, 01110111b, 10011101b, 11100111b, 01111001b
byte 00011100b, 00000111b, 00000001b, 11000000b, 01110000b
magenta55 label byte
byte 10011101b, 11100111b, 01111001b, 11011110b, 01110111b
byte 10000001b, 11100000b, 01111000b, 00011110b, 00000111b
byte 01111001b, 11011110b, 01110111b, 10011101b, 11100111b
byte 01111000b, 00011110b, 00000111b, 10000001b, 11100000b
byte 01110111b, 10011101b, 11100111b, 01111001b, 11011110b
byte 00000111b, 10000001b, 11100000b, 01111000b, 00011110b
byte 11100111b, 01111001b, 11011110b, 01110111b, 10011101b
byte 11100000b, 01111000b, 00011110b, 00000111b, 10000001b
byte 11011110b, 01110111b, 10011101b, 11100111b, 01111001b
byte 00011110b, 00000111b, 10000001b, 11100000b, 01111000b
magenta60 label byte
byte 10011101b, 11100111b, 01111001b, 11011110b, 01110111b
byte 10100001b, 11101000b, 01111010b, 00011110b, 10000111b
byte 01111001b, 11011110b, 01110111b, 10011101b, 11100111b
byte 01111010b, 00011110b, 10000111b, 10100001b, 11101000b
byte 01110111b, 10011101b, 11100111b, 01111001b, 11011110b
byte 10000111b, 10100001b, 11101000b, 01111010b, 00011110b
byte 11100111b, 01111001b, 11011110b, 01110111b, 10011101b
byte 11101000b, 01111010b, 00011110b, 10000111b, 10100001b
byte 11011110b, 01110111b, 10011101b, 11100111b, 01111001b
byte 00011110b, 10000111b, 10100001b, 11101000b, 01111010b
magenta65 label byte
byte 10011101b, 11100111b, 01111001b, 11011110b, 01110111b
byte 10110001b, 11101100b, 01111011b, 00011110b, 11000111b
byte 01111001b, 11011110b, 01110111b, 10011101b, 11100111b
byte 01111011b, 00011110b, 11000111b, 10110001b, 11101100b
byte 01110111b, 10011101b, 11100111b, 01111001b, 11011110b
byte 11000111b, 10110001b, 11101100b, 01111011b, 00011110b
byte 11100111b, 01111001b, 11011110b, 01110111b, 10011101b
byte 11101100b, 01111011b, 00011110b, 11000111b, 10110001b
byte 11011110b, 01110111b, 10011101b, 11100111b, 01111001b
byte 00011110b, 11000111b, 10110001b, 11101100b, 01111011b
magenta70 label byte
byte 10011101b, 11100111b, 01111001b, 11011110b, 01110111b
byte 11110001b, 11111100b, 01111111b, 00011111b, 11000111b
byte 01111001b, 11011110b, 01110111b, 10011101b, 11100111b
byte 01111111b, 00011111b, 11000111b, 11110001b, 11111100b
byte 01110111b, 10011101b, 11100111b, 01111001b, 11011110b
byte 11000111b, 11110001b, 11111100b, 01111111b, 00011111b
byte 11100111b, 01111001b, 11011110b, 01110111b, 10011101b
byte 11111100b, 01111111b, 00011111b, 11000111b, 11110001b
byte 11011110b, 01110111b, 10011101b, 11100111b, 01111001b
byte 00011111b, 11000111b, 11110001b, 11111100b, 01111111b
magenta75 label byte
byte 10011111b, 11100111b, 11111001b, 11111110b, 01111111b
byte 11110001b, 11111100b, 01111111b, 00011111b, 11000111b
byte 11111001b, 11111110b, 01111111b, 10011111b, 11100111b
byte 01111111b, 00011111b, 11000111b, 11110001b, 11111100b
byte 01111111b, 10011111b, 11100111b, 11111001b, 11111110b
byte 11000111b, 11110001b, 11111100b, 01111111b, 00011111b
byte 11100111b, 11111001b, 11111110b, 01111111b, 10011111b
byte 11111100b, 01111111b, 00011111b, 11000111b, 11110001b
byte 11111110b, 01111111b, 10011111b, 11100111b, 11111001b
byte 00011111b, 11000111b, 11110001b, 11111100b, 01111111b
magenta80 label byte
byte 10011111b, 11100111b, 11111001b, 11111110b, 01111111b
byte 11111001b, 11111110b, 01111111b, 10011111b, 11100111b
byte 11111001b, 11111110b, 01111111b, 10011111b, 11100111b
byte 01111111b, 10011111b, 11100111b, 11111001b, 11111110b
byte 01111111b, 10011111b, 11100111b, 11111001b, 11111110b
byte 11100111b, 11111001b, 11111110b, 01111111b, 10011111b
byte 11100111b, 11111001b, 11111110b, 01111111b, 10011111b
byte 11111110b, 01111111b, 10011111b, 11100111b, 11111001b
byte 11111110b, 01111111b, 10011111b, 11100111b, 11111001b
byte 10011111b, 11100111b, 11111001b, 11111110b, 01111111b
magenta85 label byte
byte 10011111b, 11100111b, 11111001b, 11111110b, 01111111b
byte 11111011b, 11111110b, 11111111b, 10111111b, 11101111b
byte 11111001b, 11111110b, 01111111b, 10011111b, 11100111b
byte 11111111b, 10111111b, 11101111b, 11111011b, 11111110b
byte 01111111b, 10011111b, 11100111b, 11111001b, 11111110b
byte 11101111b, 11111011b, 11111110b, 11111111b, 10111111b
byte 11100111b, 11111001b, 11111110b, 01111111b, 10011111b
byte 11111110b, 11111111b, 10111111b, 11101111b, 11111011b
byte 11111110b, 01111111b, 10011111b, 11100111b, 11111001b
byte 10111111b, 11101111b, 11111011b, 11111110b, 11111111b
magenta90 label byte
byte 10111111b, 11101111b, 11111011b, 11111110b, 11111111b
byte 11111011b, 11111110b, 11111111b, 10111111b, 11101111b
byte 11111011b, 11111110b, 11111111b, 10111111b, 11101111b
byte 11111111b, 10111111b, 11101111b, 11111011b, 11111110b
byte 11111111b, 10111111b, 11101111b, 11111011b, 11111110b
byte 11101111b, 11111011b, 11111110b, 11111111b, 10111111b
byte 11101111b, 11111011b, 11111110b, 11111111b, 10111111b
byte 11111110b, 11111111b, 10111111b, 11101111b, 11111011b
byte 11111110b, 11111111b, 10111111b, 11101111b, 11111011b
byte 10111111b, 11101111b, 11111011b, 11111110b, 11111111b
magenta95 label byte
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 11111011b, 11111110b, 11111111b, 10111111b, 11101111b
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 11111111b, 10111111b, 11101111b, 11111011b, 11111110b
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 11101111b, 11111011b, 11111110b, 11111111b, 10111111b
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 11111110b, 11111111b, 10111111b, 11101111b, 11111011b
byte 11111111b, 11111111b, 11111111b, 11111111b, 11111111b
byte 10111111b, 11101111b, 11111011b, 11111110b, 11111111b
;----------------------------------------------------------------------------
; C_YELLOW DITHER PATTERNS
; 4x4 superpixel, aligned at 90 degrees
;----------------------------------------------------------------------------
yellow6 label byte ; 6.25%
byte 00000000b
byte 00000000b
byte 01000100b
byte 00000000b
yellow13 label byte ; 12.50%
byte 00000000b
byte 01000100b
byte 01000100b
byte 00000000b
yellow19 label byte ; 18.75%
byte 00000000b
byte 01000100b
byte 01100110b
byte 00000000b
yellow25 label byte ; 25.00%
byte 00000000b
byte 01000100b
byte 01100110b
byte 01000100b
yellow31 label byte ; 31.25%
byte 00000000b
byte 01000100b
byte 11101110b
byte 01000100b
yellow38 label byte ; 37.50%
byte 00000000b
byte 01000100b
byte 11101110b
byte 01100110b
yellow44 label byte ; 43.75%
byte 00000000b
byte 01000100b
byte 11101110b
byte 11101110b
yellow50 label byte ; 50.00%
byte 00000000b
byte 11001100b
byte 11101110b
byte 11101110b
yellow56 label byte ; 56.25%
byte 00000000b
byte 11001100b
byte 11101110b
byte 11111111b
yellow63 label byte ; 62.50%
byte 10001000b
byte 11001100b
byte 11101110b
byte 11111111b
yellow69 label byte ; 68.75%
byte 11001100b
byte 11001100b
byte 11101110b
byte 11111111b
yellow75 label byte ; 75.00%
byte 11001100b
byte 11001100b
byte 11111111b
byte 11111111b
yellow81 label byte ; 81.25%
byte 11001100b
byte 11101110b
byte 11111111b
byte 11111111b
yellow88 label byte ; 87.50%
byte 11001100b
byte 11111111b
byte 11111111b
byte 11111111b
yellow94 label byte ; 93.75%
byte 11101110b
byte 11111111b
byte 11111111b
byte 11111111b
endif ; if _CMYK
;----------------------------------------------------------------------------
; C_BLACK DITHER PATTERNS
; 4x4 superpixel, aligned at 45 degrees
;----------------------------------------------------------------------------
black6 label byte ; 5.56%
byte 00000000b, 00000000b, 00000000b
byte 01000001b, 00000100b, 00010000b
byte 00000000b, 00000000b, 00000000b
byte 00000000b, 00000000b, 00000000b
byte 00001000b, 00100000b, 10000010b
byte 00000000b, 00000000b, 00000000b
black11 label byte ; 11.11%
byte 00000000b, 00000000b, 00000000b
byte 01100001b, 10000110b, 00011000b
byte 00000000b, 00000000b, 00000000b
byte 00000000b, 00000000b, 00000000b
byte 00001100b, 00110000b, 11000011b
byte 00000000b, 00000000b, 00000000b
black17 label byte ; 16.67%
byte 00000000b, 00000000b, 00000000b
byte 01100001b, 10000110b, 00011000b
byte 00100000b, 10000010b, 00001000b
byte 00000000b, 00000000b, 00000000b
byte 00001100b, 00110000b, 11000011b
byte 00000100b, 00010000b, 01000001b
black22 label byte ; 22.22%
byte 00000000b, 00000000b, 00000000b
byte 01100001b, 10000110b, 00011000b
byte 01100001b, 10000110b, 00011000b
byte 00000000b, 00000000b, 00000000b
byte 00001100b, 00110000b, 11000011b
byte 00001100b, 00110000b, 11000011b
black28 label byte ; 27.78%
byte 00000000b, 00000000b, 00000000b
byte 01100001b, 10000110b, 00011000b
byte 11100011b, 10001110b, 00111000b
byte 00000000b, 00000000b, 00000000b
byte 00001100b, 00110000b, 11000011b
byte 00011100b, 01110001b, 11000111b
black33 label byte ; 33.33%
byte 00000000b, 00000000b, 00000000b
byte 11100011b, 10001110b, 00111000b
byte 11100011b, 10001110b, 00111000b
byte 00000000b, 00000000b, 00000000b
byte 00011100b, 01110001b, 11000111b
byte 00011100b, 01110001b, 11000111b
black39 label byte ; 38.89%
byte 01000001b, 00000100b, 00010000b
byte 11100011b, 10001110b, 00111000b
byte 11100011b, 10001110b, 00111000b
byte 00001000b, 00100000b, 10000010b
byte 00011100b, 01110001b, 11000111b
byte 00011100b, 01110001b, 11000111b
black44 label byte ; 44.44%
byte 01100001b, 10000110b, 00011000b
byte 11100011b, 10001110b, 00111000b
byte 11100011b, 10001110b, 00111000b
byte 00001100b, 00110000b, 11000011b
byte 00011100b, 01110001b, 11000111b
byte 00011100b, 01110001b, 11000111b
black50 label byte ; 50.00%
byte 11100011b, 10001110b, 00111000b
byte 11100011b, 10001110b, 00111000b
byte 11100011b, 10001110b, 00111000b
byte 00011100b, 01110001b, 11000111b
byte 00011100b, 01110001b, 11000111b
byte 00011100b, 01110001b, 11000111b
black56 label byte ; 55.56%
byte 11110011b, 11001111b, 00111100b
byte 11100011b, 10001110b, 00111000b
byte 11100011b, 10001110b, 00111000b
byte 10011110b, 01111001b, 11100111b
byte 00011100b, 01110001b, 11000111b
byte 00011100b, 01110001b, 11000111b
black61 label byte ; 61.11%
byte 11110111b, 11011111b, 01111101b
byte 11100011b, 10001110b, 00111000b
byte 11100011b, 10001110b, 00111000b
byte 10111110b, 11111011b, 11101111b
byte 00011100b, 01110001b, 11000111b
byte 00011100b, 01110001b, 11000111b
black67 label byte ; 66.67%
byte 11111111b, 11111111b, 11111111b
byte 11100011b, 10001110b, 00111000b
byte 11100011b, 10001110b, 00111000b
byte 11111111b, 11111111b, 11111111b
byte 00011100b, 01110001b, 11000111b
byte 00011100b, 01110001b, 11000111b
black72 label byte ; 72.22%
byte 11111111b, 11111111b, 11111111b
byte 11110011b, 11001111b, 00111100b
byte 11100011b, 10001110b, 00111000b
byte 11111111b, 11111111b, 11111111b
byte 10011110b, 01111001b, 11100111b
byte 00011100b, 01110001b, 11000111b
black78 label byte ; 77.78%
byte 11111111b, 11111111b, 11111111b
byte 11110011b, 11001111b, 00111100b
byte 11110011b, 11001111b, 00111100b
byte 11111111b, 11111111b, 11111111b
byte 10011110b, 01111001b, 11100111b
byte 10011110b, 01111001b, 11100111b
black83 label byte ; 83.33%
byte 11111111b, 11111111b, 11111111b
byte 11110011b, 11001111b, 00111100b
byte 11111011b, 11101111b, 10111110b
byte 11111111b, 11111111b, 11111111b
byte 10011110b, 01111001b, 11100111b
byte 11011111b, 01111101b, 11110111b
black89 label byte ; 88.89%
byte 11111111b, 11111111b, 11111111b
byte 11110011b, 11001111b, 00111100b
byte 11111111b, 11111111b, 11111111b
byte 11111111b, 11111111b, 11111111b
byte 10011110b, 01111001b, 11100111b
byte 11111111b, 11111111b, 11111111b
black94 label byte ; 94.44%
byte 11111111b, 11111111b, 11111111b
byte 11110111b, 11011111b, 01111101b
byte 11111111b, 11111111b, 11111111b
byte 11111111b, 11111111b, 11111111b
byte 10111110b, 11111011b, 11101111b
byte 11111111b, 11111111b, 11111111b
CMYKDither ends
|
INCLUDE "constants.asm"
INCLUDE "code/int.asm"
INCLUDE "code/rst.asm"
INCLUDE "code/header.asm"
INCLUDE "code/init.asm"
INCLUDE "code/alias.asm"
INCLUDE "code/joypad.asm"
INCLUDE "code/video/copy.asm"
INCLUDE "code/task.asm"
INCLUDE "code/lcd.asm"
INCLUDE "code/oam.asm"
INCLUDE "code/math.asm"
INCLUDE "code/sound.asm"
INCLUDE "code/save.asm"
INCLUDE "code/menu.asm"
|
#include "RotatingCredentialProvider.h"
#include <iostream>
#include <fstream>
#include <vector>
LOGGER_TAG("com.amazonaws.kinesis.video");
using namespace com::amazonaws::kinesis::video;
using namespace std;
RotatingCredentialProvider::callback_t RotatingCredentialProvider::getCallbacks(PClientCallbacks client_callbacks) {
STATUS retStatus = STATUS_SUCCESS;
if (STATUS_FAILED(retStatus = createFileAuthCallbacks(client_callbacks,
STRING_TO_PCHAR(credential_file_path_),
&rotating_callbacks))) {
std::stringstream status_strstrm;
status_strstrm << std::hex << retStatus;
LOG_AND_THROW("Unable to create Rotating Credential provider. Error status: 0x" + status_strstrm.str());
}
return *rotating_callbacks;
}
|
; A085939: Horadam sequence (0,1,6,4).
; Submitted by Jon Maiga
; 0,1,4,22,112,580,2992,15448,79744,411664,2125120,10970464,56632576,292353088,1509207808,7790949760,40219045888,207621882112,1071801803776,5532938507776,28562564853760,147447890461696,761166950969344,3929355146647552,20284422292406272,104713820049510400,540561813952479232,2790530176106979328,14405491588142792704,74365147409213046784,383893539165708943360,1981765041118114054144,10230421399466709876736,52812275844575523831808,272631631775102354587648,1407400182167862561341440
mov $1,1
lpb $0
sub $0,1
mov $3,$1
mov $1,$2
mul $1,6
mul $2,4
add $2,$3
lpe
mov $0,$2
|
; Copyright (C) 2009 Ubixum, Inc.
;
; This library is free software; you can redistribute it and/or
; modify it under the terms of the GNU Lesser General Public
; License as published by the Free Software Foundation; either
; version 2.1 of the License, or (at your option) any later version.
;
; This library is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
; Lesser General Public License for more details.
;
; You should have received a copy of the GNU Lesser General Public
; License along with this library; if not, write to the Free Software
; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
; this is a the default
; full speed and high speed
; descriptors found in the TRM
; change however you want but leave
; the descriptor pointers so the setupdat.c file works right
.module DEV_DSCR
; descriptor types
; same as setupdat.h
DSCR_DEVICE_TYPE=1
DSCR_CONFIG_TYPE=2
DSCR_STRING_TYPE=3
DSCR_INTERFACE_TYPE=4
DSCR_ENDPOINT_TYPE=5
DSCR_DEVQUAL_TYPE=6
DSCR_CDC_TYPE=0x24
; descriptor subtypes
DSCR_CDC_HEADER_SUBTYPE=0x00
DSCR_CDC_CALL_MGMT_SUBTYPE=0x01
DSCR_CDC_ACM_SUBTYPE=0x02
DSCR_CDC_UNION_SUBTYPE=0x06
; for the repeating interfaces
DSCR_INTERFACE_LEN=9
DSCR_ENDPOINT_LEN=7
DSCR_CDC_HEADER_LEN=5
DSCR_CDC_CALL_MGMT_LEN=5
DSCR_CDC_ACM_LEN=4
DSCR_CDC_UNION_LEN=5
; endpoint types
ENDPOINT_TYPE_CONTROL=0
ENDPOINT_TYPE_ISO=1
ENDPOINT_TYPE_BULK=2
ENDPOINT_TYPE_INT=3
.globl _dev_dscr, _dev_qual_dscr, _highspd_dscr, _fullspd_dscr, _dev_strings, _dev_strings_end
; These need to be in code memory. If
; they aren't you'll have to manully copy them somewhere
; in code memory otherwise SUDPTRH:L don't work right
.area DSCR_AREA (CODE)
_dev_dscr:
.db dev_dscr_end-_dev_dscr ; len
.db DSCR_DEVICE_TYPE ; type
.dw 0x0002 ; usb 2.0
.db 0x02 ; class (CDC)
.db 0x00 ; subclass
.db 0x00 ; protocol
.db 64 ; packet size (ep0)
.dw 0x6666 ; vendor id
.dw 0x2707 ; product id
.dw 0x0001 ; version id
.db 1 ; manufacturure str idx
.db 2 ; product str idx
.db 3 ; serial str idx
.db 1 ; n configurations
dev_dscr_end:
_dev_qual_dscr:
.db dev_qualdscr_end-_dev_qual_dscr
.db DSCR_DEVQUAL_TYPE
.dw 0x0002 ; usb 2.0
.db 0x02 ; class (CDC)
.db 0x00 ; subclass
.db 0x00 ; protocol
.db 64 ; max packet
.db 1 ; n configs
.db 0 ; extra reserved byte
dev_qualdscr_end:
_highspd_dscr:
.db highspd_dscr_end-_highspd_dscr ; dscr len
.db DSCR_CONFIG_TYPE
; can't use .dw because byte order is different
.db (highspd_dscr_realend-_highspd_dscr) % 256 ; total length of config lsb
.db (highspd_dscr_realend-_highspd_dscr) / 256 ; total length of config msb
.db 3 ; n interfaces
.db 1 ; config number
.db 0 ; config string
.db 0x80 ; attrs = bus powered, no wakeup
.db 0xfa ; max power = 500ma
highspd_dscr_end:
; all the interfaces next
; NOTE the default TRM actually has more alt interfaces
; but you can add them back in if you need them.
; here, we just use the default alt setting 1 from the trm
; CDC control interface
.db DSCR_INTERFACE_LEN
.db DSCR_INTERFACE_TYPE
.db 0 ; index
.db 0 ; alt setting idx
.db 1 ; n endpoints
.db 0x02 ; class (CDC)
.db 0x02 ; subclass (ACM)
.db 0x01 ; protocol (AT)
.db 0 ; string index
; CDC header
.db DSCR_CDC_HEADER_LEN
.db DSCR_CDC_TYPE
.db DSCR_CDC_HEADER_SUBTYPE
.dw 0x1001 ; CDC 1.10
; call management
.db DSCR_CDC_CALL_MGMT_LEN
.db DSCR_CDC_TYPE
.db DSCR_CDC_CALL_MGMT_SUBTYPE
.db 0x00 ; capabilities
.db 1 ; data interface
; ACM
.db DSCR_CDC_ACM_LEN
.db DSCR_CDC_TYPE
.db DSCR_CDC_ACM_SUBTYPE
.db 0x02 ; capabilities (line coding and state)
; CDC union
.db DSCR_CDC_UNION_LEN
.db DSCR_CDC_TYPE
.db DSCR_CDC_UNION_SUBTYPE
.db 0 ; master interface
.db 1 ; slave interface
; ACM endpoint
.db DSCR_ENDPOINT_LEN
.db DSCR_ENDPOINT_TYPE
.db 0x81 ; ep1 dir=in and address
.db ENDPOINT_TYPE_INT ; type
.db 0x08 ; max packet LSB
.db 0x00 ; max packet size=8 bytes
.db 16 ; polling interval
; CDC data interface
.db DSCR_INTERFACE_LEN
.db DSCR_INTERFACE_TYPE
.db 1 ; index
.db 0 ; alt setting idx
.db 2 ; n endpoints
.db 0x0A ; class (CDC data)
.db 0x00 ; subclass
.db 0x00 ; protocol
.db 0 ; string index
; endpoint 4 out
.db DSCR_ENDPOINT_LEN
.db DSCR_ENDPOINT_TYPE
.db 0x04 ; ep4 dir=OUT and address
.db ENDPOINT_TYPE_BULK ; type
.db 0x00 ; max packet LSB
.db 0x02 ; max packet size=512 bytes
.db 0x00 ; polling interval
; endpoint 8 in
.db DSCR_ENDPOINT_LEN
.db DSCR_ENDPOINT_TYPE
.db 0x88 ; ep8 dir=in and address
.db ENDPOINT_TYPE_BULK ; type
.db 0x00 ; max packet LSB
.db 0x02 ; max packet size=512 bytes
.db 0x00 ; polling interval
; camera interface
.db DSCR_INTERFACE_LEN
.db DSCR_INTERFACE_TYPE
.db 2 ; index
.db 0 ; alt setting idx
.db 1 ; n endpoints
.db 0xFF ; class (vendor-specific)
.db 0x00 ; subclass
.db 0x00 ; protocol
.db 0 ; string index
; endpoint 2 in
.db DSCR_ENDPOINT_LEN
.db DSCR_ENDPOINT_TYPE
.db 0x82 ; ep2 dir=in and address
.db ENDPOINT_TYPE_BULK ; type
.db 0x00 ; max packet LSB
.db 0x02 ; max packet size=512 bytes
.db 0x00 ; polling interval
highspd_dscr_realend:
.even
_fullspd_dscr:
.db fullspd_dscr_end-_fullspd_dscr ; dscr len
.db DSCR_CONFIG_TYPE
; can't use .dw because byte order is different
.db (fullspd_dscr_realend-_fullspd_dscr) % 256 ; total length of config lsb
.db (fullspd_dscr_realend-_fullspd_dscr) / 256 ; total length of config msb
.db 3 ; n interfaces
.db 1 ; config number
.db 0 ; config string
.db 0x80 ; attrs = bus powered, no wakeup
.db 0xfa ; max power = 500ma
fullspd_dscr_end:
; all the interfaces next
; NOTE the default TRM actually has more alt interfaces
; but you can add them back in if you need them.
; here, we just use the default alt setting 1 from the trm
; CDC control interface
.db DSCR_INTERFACE_LEN
.db DSCR_INTERFACE_TYPE
.db 0 ; index
.db 0 ; alt setting idx
.db 1 ; n endpoints
.db 0x02 ; class (CDC)
.db 0x02 ; subclass (ACM)
.db 0x01 ; protocol (AT)
.db 0 ; string index
; CDC header
.db DSCR_CDC_HEADER_LEN
.db DSCR_CDC_TYPE
.db DSCR_CDC_HEADER_SUBTYPE
.dw 0x1001 ; CDC 1.1.0
; call management
.db DSCR_CDC_CALL_MGMT_LEN
.db DSCR_CDC_TYPE
.db DSCR_CDC_CALL_MGMT_SUBTYPE
.db 0x00 ; capabilities
.db 1 ; data interface
; ACM
.db DSCR_CDC_ACM_LEN
.db DSCR_CDC_TYPE
.db DSCR_CDC_ACM_SUBTYPE
.db 0x02 ; capabilities (line coding and state)
; CDC union
.db DSCR_CDC_UNION_LEN
.db DSCR_CDC_TYPE
.db DSCR_CDC_UNION_SUBTYPE
.db 0 ; master interface
.db 1 ; slave interface
; ACM endpoint
.db DSCR_ENDPOINT_LEN
.db DSCR_ENDPOINT_TYPE
.db 0x81 ; ep1 dir=in and address
.db ENDPOINT_TYPE_INT ; type
.db 0x08 ; max packet LSB
.db 0x00 ; max packet size=8 bytes
.db 64 ; polling interval
; CDC data interface
.db DSCR_INTERFACE_LEN
.db DSCR_INTERFACE_TYPE
.db 1 ; index
.db 0 ; alt setting idx
.db 2 ; n endpoints
.db 0x0A ; class (CDC data)
.db 0x00 ; subclass
.db 0x00 ; protocol
.db 0 ; string index
; endpoint 4 out
.db DSCR_ENDPOINT_LEN
.db DSCR_ENDPOINT_TYPE
.db 0x04 ; ep4 dir=OUT and address
.db ENDPOINT_TYPE_BULK ; type
.db 0x40 ; max packet LSB
.db 0x00 ; max packet size=64 bytes
.db 0x00 ; polling interval
; endpoint 8 in
.db DSCR_ENDPOINT_LEN
.db DSCR_ENDPOINT_TYPE
.db 0x88 ; ep8 dir=in and address
.db ENDPOINT_TYPE_BULK ; type
.db 0x40 ; max packet LSB
.db 0x00 ; max packet size=64 bytes
.db 0x00 ; polling interval
; camera interface
.db DSCR_INTERFACE_LEN
.db DSCR_INTERFACE_TYPE
.db 2 ; index
.db 0 ; alt setting idx
.db 1 ; n endpoints
.db 0xFF ; class (vendor-specific)
.db 0x00 ; subclass
.db 0x00 ; protocol
.db 0 ; string index
; endpoint 2 in
.db DSCR_ENDPOINT_LEN
.db DSCR_ENDPOINT_TYPE
.db 0x82 ; ep2 dir=in and address
.db ENDPOINT_TYPE_BULK ; type
.db 0x40 ; max packet LSB
.db 0x00 ; max packet size=64 bytes
.db 0x00 ; polling interval
fullspd_dscr_realend:
.even
_dev_strings:
; sample string
_string0:
.db string0end-_string0 ; len
.db DSCR_STRING_TYPE
.db 0x09, 0x04 ; 0x0409 is the language code for English. Possible to add more codes after this.
string0end:
_string1:
.db string1end-_string1 ; len
.db DSCR_STRING_TYPE
.ascii 'o'
.db 0
.ascii 'p'
.db 0
.ascii 'e'
.db 0
.ascii 'n'
.db 0
.ascii 'l'
.db 0
.ascii 'u'
.db 0
.ascii 'x'
.db 0
string1end:
_string2:
.db string2end-_string2 ; len
.db DSCR_STRING_TYPE
.ascii 'm'
.db 0
.ascii 'i'
.db 0
.ascii 'c'
.db 0
.ascii 'r'
.db 0
.ascii 'o'
.db 0
.ascii 'l'
.db 0
.ascii 'u'
.db 0
.ascii 'x'
.db 0
string2end:
_string3:
.db string3end-_string3 ; len
.db DSCR_STRING_TYPE
.ascii 'A'
.db 0
.ascii '5'
.db 0
.ascii '3'
.db 0
.ascii 'B'
.db 0
.ascii 'F'
.db 0
.ascii '6'
.db 0
.ascii '0'
.db 0
.ascii '9'
.db 0
string3end:
; add more strings here
_dev_strings_end:
.dw 0x0000 ; in case you wanted to look at memory between _dev_strings and _dev_strings_end
|
_zombie: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(void)
{
0: f3 0f 1e fb endbr32
4: 8d 4c 24 04 lea 0x4(%esp),%ecx
8: 83 e4 f0 and $0xfffffff0,%esp
b: ff 71 fc pushl -0x4(%ecx)
e: 55 push %ebp
f: 89 e5 mov %esp,%ebp
11: 51 push %ecx
12: 83 ec 04 sub $0x4,%esp
if(fork() > 0)
15: e8 71 02 00 00 call 28b <fork>
1a: 85 c0 test %eax,%eax
1c: 7e 0d jle 2b <main+0x2b>
sleep(5); // Let child exit before parent.
1e: 83 ec 0c sub $0xc,%esp
21: 6a 05 push $0x5
23: e8 fb 02 00 00 call 323 <sleep>
28: 83 c4 10 add $0x10,%esp
exit();
2b: e8 63 02 00 00 call 293 <exit>
00000030 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, const char *t)
{
30: f3 0f 1e fb endbr32
34: 55 push %ebp
char *os;
os = s;
while((*s++ = *t++) != 0)
35: 31 c0 xor %eax,%eax
{
37: 89 e5 mov %esp,%ebp
39: 53 push %ebx
3a: 8b 4d 08 mov 0x8(%ebp),%ecx
3d: 8b 5d 0c mov 0xc(%ebp),%ebx
while((*s++ = *t++) != 0)
40: 0f b6 14 03 movzbl (%ebx,%eax,1),%edx
44: 88 14 01 mov %dl,(%ecx,%eax,1)
47: 83 c0 01 add $0x1,%eax
4a: 84 d2 test %dl,%dl
4c: 75 f2 jne 40 <strcpy+0x10>
;
return os;
}
4e: 89 c8 mov %ecx,%eax
50: 5b pop %ebx
51: 5d pop %ebp
52: c3 ret
53: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
5a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
00000060 <strcmp>:
int
strcmp(const char *p, const char *q)
{
60: f3 0f 1e fb endbr32
64: 55 push %ebp
65: 89 e5 mov %esp,%ebp
67: 53 push %ebx
68: 8b 4d 08 mov 0x8(%ebp),%ecx
6b: 8b 55 0c mov 0xc(%ebp),%edx
while(*p && *p == *q)
6e: 0f b6 01 movzbl (%ecx),%eax
71: 0f b6 1a movzbl (%edx),%ebx
74: 84 c0 test %al,%al
76: 75 19 jne 91 <strcmp+0x31>
78: eb 26 jmp a0 <strcmp+0x40>
7a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80: 0f b6 41 01 movzbl 0x1(%ecx),%eax
p++, q++;
84: 83 c1 01 add $0x1,%ecx
87: 83 c2 01 add $0x1,%edx
while(*p && *p == *q)
8a: 0f b6 1a movzbl (%edx),%ebx
8d: 84 c0 test %al,%al
8f: 74 0f je a0 <strcmp+0x40>
91: 38 d8 cmp %bl,%al
93: 74 eb je 80 <strcmp+0x20>
return (uchar)*p - (uchar)*q;
95: 29 d8 sub %ebx,%eax
}
97: 5b pop %ebx
98: 5d pop %ebp
99: c3 ret
9a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
a0: 31 c0 xor %eax,%eax
return (uchar)*p - (uchar)*q;
a2: 29 d8 sub %ebx,%eax
}
a4: 5b pop %ebx
a5: 5d pop %ebp
a6: c3 ret
a7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
ae: 66 90 xchg %ax,%ax
000000b0 <strlen>:
uint
strlen(const char *s)
{
b0: f3 0f 1e fb endbr32
b4: 55 push %ebp
b5: 89 e5 mov %esp,%ebp
b7: 8b 55 08 mov 0x8(%ebp),%edx
int n;
for(n = 0; s[n]; n++)
ba: 80 3a 00 cmpb $0x0,(%edx)
bd: 74 21 je e0 <strlen+0x30>
bf: 31 c0 xor %eax,%eax
c1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
c8: 83 c0 01 add $0x1,%eax
cb: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1)
cf: 89 c1 mov %eax,%ecx
d1: 75 f5 jne c8 <strlen+0x18>
;
return n;
}
d3: 89 c8 mov %ecx,%eax
d5: 5d pop %ebp
d6: c3 ret
d7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
de: 66 90 xchg %ax,%ax
for(n = 0; s[n]; n++)
e0: 31 c9 xor %ecx,%ecx
}
e2: 5d pop %ebp
e3: 89 c8 mov %ecx,%eax
e5: c3 ret
e6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
ed: 8d 76 00 lea 0x0(%esi),%esi
000000f0 <memset>:
void*
memset(void *dst, int c, uint n)
{
f0: f3 0f 1e fb endbr32
f4: 55 push %ebp
f5: 89 e5 mov %esp,%ebp
f7: 57 push %edi
f8: 8b 55 08 mov 0x8(%ebp),%edx
}
static inline void
stosb(void *addr, int data, int cnt)
{
asm volatile("cld; rep stosb" :
fb: 8b 4d 10 mov 0x10(%ebp),%ecx
fe: 8b 45 0c mov 0xc(%ebp),%eax
101: 89 d7 mov %edx,%edi
103: fc cld
104: f3 aa rep stos %al,%es:(%edi)
stosb(dst, c, n);
return dst;
}
106: 89 d0 mov %edx,%eax
108: 5f pop %edi
109: 5d pop %ebp
10a: c3 ret
10b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
10f: 90 nop
00000110 <strchr>:
char*
strchr(const char *s, char c)
{
110: f3 0f 1e fb endbr32
114: 55 push %ebp
115: 89 e5 mov %esp,%ebp
117: 8b 45 08 mov 0x8(%ebp),%eax
11a: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx
for(; *s; s++)
11e: 0f b6 10 movzbl (%eax),%edx
121: 84 d2 test %dl,%dl
123: 75 16 jne 13b <strchr+0x2b>
125: eb 21 jmp 148 <strchr+0x38>
127: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
12e: 66 90 xchg %ax,%ax
130: 0f b6 50 01 movzbl 0x1(%eax),%edx
134: 83 c0 01 add $0x1,%eax
137: 84 d2 test %dl,%dl
139: 74 0d je 148 <strchr+0x38>
if(*s == c)
13b: 38 d1 cmp %dl,%cl
13d: 75 f1 jne 130 <strchr+0x20>
return (char*)s;
return 0;
}
13f: 5d pop %ebp
140: c3 ret
141: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
return 0;
148: 31 c0 xor %eax,%eax
}
14a: 5d pop %ebp
14b: c3 ret
14c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
00000150 <gets>:
char*
gets(char *buf, int max)
{
150: f3 0f 1e fb endbr32
154: 55 push %ebp
155: 89 e5 mov %esp,%ebp
157: 57 push %edi
158: 56 push %esi
int i, cc;
char c;
for(i=0; i+1 < max; ){
159: 31 f6 xor %esi,%esi
{
15b: 53 push %ebx
15c: 89 f3 mov %esi,%ebx
15e: 83 ec 1c sub $0x1c,%esp
161: 8b 7d 08 mov 0x8(%ebp),%edi
for(i=0; i+1 < max; ){
164: eb 33 jmp 199 <gets+0x49>
166: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
16d: 8d 76 00 lea 0x0(%esi),%esi
cc = read(0, &c, 1);
170: 83 ec 04 sub $0x4,%esp
173: 8d 45 e7 lea -0x19(%ebp),%eax
176: 6a 01 push $0x1
178: 50 push %eax
179: 6a 00 push $0x0
17b: e8 2b 01 00 00 call 2ab <read>
if(cc < 1)
180: 83 c4 10 add $0x10,%esp
183: 85 c0 test %eax,%eax
185: 7e 1c jle 1a3 <gets+0x53>
break;
buf[i++] = c;
187: 0f b6 45 e7 movzbl -0x19(%ebp),%eax
18b: 83 c7 01 add $0x1,%edi
18e: 88 47 ff mov %al,-0x1(%edi)
if(c == '\n' || c == '\r')
191: 3c 0a cmp $0xa,%al
193: 74 23 je 1b8 <gets+0x68>
195: 3c 0d cmp $0xd,%al
197: 74 1f je 1b8 <gets+0x68>
for(i=0; i+1 < max; ){
199: 83 c3 01 add $0x1,%ebx
19c: 89 fe mov %edi,%esi
19e: 3b 5d 0c cmp 0xc(%ebp),%ebx
1a1: 7c cd jl 170 <gets+0x20>
1a3: 89 f3 mov %esi,%ebx
break;
}
buf[i] = '\0';
return buf;
}
1a5: 8b 45 08 mov 0x8(%ebp),%eax
buf[i] = '\0';
1a8: c6 03 00 movb $0x0,(%ebx)
}
1ab: 8d 65 f4 lea -0xc(%ebp),%esp
1ae: 5b pop %ebx
1af: 5e pop %esi
1b0: 5f pop %edi
1b1: 5d pop %ebp
1b2: c3 ret
1b3: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
1b7: 90 nop
1b8: 8b 75 08 mov 0x8(%ebp),%esi
1bb: 8b 45 08 mov 0x8(%ebp),%eax
1be: 01 de add %ebx,%esi
1c0: 89 f3 mov %esi,%ebx
buf[i] = '\0';
1c2: c6 03 00 movb $0x0,(%ebx)
}
1c5: 8d 65 f4 lea -0xc(%ebp),%esp
1c8: 5b pop %ebx
1c9: 5e pop %esi
1ca: 5f pop %edi
1cb: 5d pop %ebp
1cc: c3 ret
1cd: 8d 76 00 lea 0x0(%esi),%esi
000001d0 <stat>:
int
stat(const char *n, struct stat *st)
{
1d0: f3 0f 1e fb endbr32
1d4: 55 push %ebp
1d5: 89 e5 mov %esp,%ebp
1d7: 56 push %esi
1d8: 53 push %ebx
int fd;
int r;
fd = open(n, O_RDONLY);
1d9: 83 ec 08 sub $0x8,%esp
1dc: 6a 00 push $0x0
1de: ff 75 08 pushl 0x8(%ebp)
1e1: e8 ed 00 00 00 call 2d3 <open>
if(fd < 0)
1e6: 83 c4 10 add $0x10,%esp
1e9: 85 c0 test %eax,%eax
1eb: 78 2b js 218 <stat+0x48>
return -1;
r = fstat(fd, st);
1ed: 83 ec 08 sub $0x8,%esp
1f0: ff 75 0c pushl 0xc(%ebp)
1f3: 89 c3 mov %eax,%ebx
1f5: 50 push %eax
1f6: e8 f0 00 00 00 call 2eb <fstat>
close(fd);
1fb: 89 1c 24 mov %ebx,(%esp)
r = fstat(fd, st);
1fe: 89 c6 mov %eax,%esi
close(fd);
200: e8 b6 00 00 00 call 2bb <close>
return r;
205: 83 c4 10 add $0x10,%esp
}
208: 8d 65 f8 lea -0x8(%ebp),%esp
20b: 89 f0 mov %esi,%eax
20d: 5b pop %ebx
20e: 5e pop %esi
20f: 5d pop %ebp
210: c3 ret
211: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
return -1;
218: be ff ff ff ff mov $0xffffffff,%esi
21d: eb e9 jmp 208 <stat+0x38>
21f: 90 nop
00000220 <atoi>:
int
atoi(const char *s)
{
220: f3 0f 1e fb endbr32
224: 55 push %ebp
225: 89 e5 mov %esp,%ebp
227: 53 push %ebx
228: 8b 55 08 mov 0x8(%ebp),%edx
int n;
n = 0;
while('0' <= *s && *s <= '9')
22b: 0f be 02 movsbl (%edx),%eax
22e: 8d 48 d0 lea -0x30(%eax),%ecx
231: 80 f9 09 cmp $0x9,%cl
n = 0;
234: b9 00 00 00 00 mov $0x0,%ecx
while('0' <= *s && *s <= '9')
239: 77 1a ja 255 <atoi+0x35>
23b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
23f: 90 nop
n = n*10 + *s++ - '0';
240: 83 c2 01 add $0x1,%edx
243: 8d 0c 89 lea (%ecx,%ecx,4),%ecx
246: 8d 4c 48 d0 lea -0x30(%eax,%ecx,2),%ecx
while('0' <= *s && *s <= '9')
24a: 0f be 02 movsbl (%edx),%eax
24d: 8d 58 d0 lea -0x30(%eax),%ebx
250: 80 fb 09 cmp $0x9,%bl
253: 76 eb jbe 240 <atoi+0x20>
return n;
}
255: 89 c8 mov %ecx,%eax
257: 5b pop %ebx
258: 5d pop %ebp
259: c3 ret
25a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
00000260 <memmove>:
void*
memmove(void *vdst, const void *vsrc, int n)
{
260: f3 0f 1e fb endbr32
264: 55 push %ebp
265: 89 e5 mov %esp,%ebp
267: 57 push %edi
268: 8b 45 10 mov 0x10(%ebp),%eax
26b: 8b 55 08 mov 0x8(%ebp),%edx
26e: 56 push %esi
26f: 8b 75 0c mov 0xc(%ebp),%esi
char *dst;
const char *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
272: 85 c0 test %eax,%eax
274: 7e 0f jle 285 <memmove+0x25>
276: 01 d0 add %edx,%eax
dst = vdst;
278: 89 d7 mov %edx,%edi
27a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
*dst++ = *src++;
280: a4 movsb %ds:(%esi),%es:(%edi)
while(n-- > 0)
281: 39 f8 cmp %edi,%eax
283: 75 fb jne 280 <memmove+0x20>
return vdst;
}
285: 5e pop %esi
286: 89 d0 mov %edx,%eax
288: 5f pop %edi
289: 5d pop %ebp
28a: c3 ret
0000028b <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
28b: b8 01 00 00 00 mov $0x1,%eax
290: cd 40 int $0x40
292: c3 ret
00000293 <exit>:
SYSCALL(exit)
293: b8 02 00 00 00 mov $0x2,%eax
298: cd 40 int $0x40
29a: c3 ret
0000029b <wait>:
SYSCALL(wait)
29b: b8 03 00 00 00 mov $0x3,%eax
2a0: cd 40 int $0x40
2a2: c3 ret
000002a3 <pipe>:
SYSCALL(pipe)
2a3: b8 04 00 00 00 mov $0x4,%eax
2a8: cd 40 int $0x40
2aa: c3 ret
000002ab <read>:
SYSCALL(read)
2ab: b8 05 00 00 00 mov $0x5,%eax
2b0: cd 40 int $0x40
2b2: c3 ret
000002b3 <write>:
SYSCALL(write)
2b3: b8 10 00 00 00 mov $0x10,%eax
2b8: cd 40 int $0x40
2ba: c3 ret
000002bb <close>:
SYSCALL(close)
2bb: b8 15 00 00 00 mov $0x15,%eax
2c0: cd 40 int $0x40
2c2: c3 ret
000002c3 <kill>:
SYSCALL(kill)
2c3: b8 06 00 00 00 mov $0x6,%eax
2c8: cd 40 int $0x40
2ca: c3 ret
000002cb <exec>:
SYSCALL(exec)
2cb: b8 07 00 00 00 mov $0x7,%eax
2d0: cd 40 int $0x40
2d2: c3 ret
000002d3 <open>:
SYSCALL(open)
2d3: b8 0f 00 00 00 mov $0xf,%eax
2d8: cd 40 int $0x40
2da: c3 ret
000002db <mknod>:
SYSCALL(mknod)
2db: b8 11 00 00 00 mov $0x11,%eax
2e0: cd 40 int $0x40
2e2: c3 ret
000002e3 <unlink>:
SYSCALL(unlink)
2e3: b8 12 00 00 00 mov $0x12,%eax
2e8: cd 40 int $0x40
2ea: c3 ret
000002eb <fstat>:
SYSCALL(fstat)
2eb: b8 08 00 00 00 mov $0x8,%eax
2f0: cd 40 int $0x40
2f2: c3 ret
000002f3 <link>:
SYSCALL(link)
2f3: b8 13 00 00 00 mov $0x13,%eax
2f8: cd 40 int $0x40
2fa: c3 ret
000002fb <mkdir>:
SYSCALL(mkdir)
2fb: b8 14 00 00 00 mov $0x14,%eax
300: cd 40 int $0x40
302: c3 ret
00000303 <chdir>:
SYSCALL(chdir)
303: b8 09 00 00 00 mov $0x9,%eax
308: cd 40 int $0x40
30a: c3 ret
0000030b <dup>:
SYSCALL(dup)
30b: b8 0a 00 00 00 mov $0xa,%eax
310: cd 40 int $0x40
312: c3 ret
00000313 <getpid>:
SYSCALL(getpid)
313: b8 0b 00 00 00 mov $0xb,%eax
318: cd 40 int $0x40
31a: c3 ret
0000031b <sbrk>:
SYSCALL(sbrk)
31b: b8 0c 00 00 00 mov $0xc,%eax
320: cd 40 int $0x40
322: c3 ret
00000323 <sleep>:
SYSCALL(sleep)
323: b8 0d 00 00 00 mov $0xd,%eax
328: cd 40 int $0x40
32a: c3 ret
0000032b <uptime>:
SYSCALL(uptime)
32b: b8 0e 00 00 00 mov $0xe,%eax
330: cd 40 int $0x40
332: c3 ret
00000333 <waitx>:
//my insert begins
SYSCALL(waitx)
333: b8 16 00 00 00 mov $0x16,%eax
338: cd 40 int $0x40
33a: c3 ret
0000033b <psinfo>:
SYSCALL(psinfo)
33b: b8 17 00 00 00 mov $0x17,%eax
340: cd 40 int $0x40
342: c3 ret
00000343 <set_priority>:
SYSCALL(set_priority)
343: b8 18 00 00 00 mov $0x18,%eax
348: cd 40 int $0x40
34a: c3 ret
34b: 66 90 xchg %ax,%ax
34d: 66 90 xchg %ax,%ax
34f: 90 nop
00000350 <printint>:
write(fd, &c, 1);
}
static void
printint(int fd, int xx, int base, int sgn)
{
350: 55 push %ebp
351: 89 e5 mov %esp,%ebp
353: 57 push %edi
354: 56 push %esi
355: 53 push %ebx
356: 83 ec 3c sub $0x3c,%esp
359: 89 4d c4 mov %ecx,-0x3c(%ebp)
uint x;
neg = 0;
if(sgn && xx < 0){
neg = 1;
x = -xx;
35c: 89 d1 mov %edx,%ecx
{
35e: 89 45 b8 mov %eax,-0x48(%ebp)
if(sgn && xx < 0){
361: 85 d2 test %edx,%edx
363: 0f 89 7f 00 00 00 jns 3e8 <printint+0x98>
369: f6 45 08 01 testb $0x1,0x8(%ebp)
36d: 74 79 je 3e8 <printint+0x98>
neg = 1;
36f: c7 45 bc 01 00 00 00 movl $0x1,-0x44(%ebp)
x = -xx;
376: f7 d9 neg %ecx
} else {
x = xx;
}
i = 0;
378: 31 db xor %ebx,%ebx
37a: 8d 75 d7 lea -0x29(%ebp),%esi
37d: 8d 76 00 lea 0x0(%esi),%esi
do{
buf[i++] = digits[x % base];
380: 89 c8 mov %ecx,%eax
382: 31 d2 xor %edx,%edx
384: 89 cf mov %ecx,%edi
386: f7 75 c4 divl -0x3c(%ebp)
389: 0f b6 92 70 07 00 00 movzbl 0x770(%edx),%edx
390: 89 45 c0 mov %eax,-0x40(%ebp)
393: 89 d8 mov %ebx,%eax
395: 8d 5b 01 lea 0x1(%ebx),%ebx
}while((x /= base) != 0);
398: 8b 4d c0 mov -0x40(%ebp),%ecx
buf[i++] = digits[x % base];
39b: 88 14 1e mov %dl,(%esi,%ebx,1)
}while((x /= base) != 0);
39e: 39 7d c4 cmp %edi,-0x3c(%ebp)
3a1: 76 dd jbe 380 <printint+0x30>
if(neg)
3a3: 8b 4d bc mov -0x44(%ebp),%ecx
3a6: 85 c9 test %ecx,%ecx
3a8: 74 0c je 3b6 <printint+0x66>
buf[i++] = '-';
3aa: c6 44 1d d8 2d movb $0x2d,-0x28(%ebp,%ebx,1)
buf[i++] = digits[x % base];
3af: 89 d8 mov %ebx,%eax
buf[i++] = '-';
3b1: ba 2d 00 00 00 mov $0x2d,%edx
while(--i >= 0)
3b6: 8b 7d b8 mov -0x48(%ebp),%edi
3b9: 8d 5c 05 d7 lea -0x29(%ebp,%eax,1),%ebx
3bd: eb 07 jmp 3c6 <printint+0x76>
3bf: 90 nop
3c0: 0f b6 13 movzbl (%ebx),%edx
3c3: 83 eb 01 sub $0x1,%ebx
write(fd, &c, 1);
3c6: 83 ec 04 sub $0x4,%esp
3c9: 88 55 d7 mov %dl,-0x29(%ebp)
3cc: 6a 01 push $0x1
3ce: 56 push %esi
3cf: 57 push %edi
3d0: e8 de fe ff ff call 2b3 <write>
while(--i >= 0)
3d5: 83 c4 10 add $0x10,%esp
3d8: 39 de cmp %ebx,%esi
3da: 75 e4 jne 3c0 <printint+0x70>
putc(fd, buf[i]);
}
3dc: 8d 65 f4 lea -0xc(%ebp),%esp
3df: 5b pop %ebx
3e0: 5e pop %esi
3e1: 5f pop %edi
3e2: 5d pop %ebp
3e3: c3 ret
3e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
neg = 0;
3e8: c7 45 bc 00 00 00 00 movl $0x0,-0x44(%ebp)
3ef: eb 87 jmp 378 <printint+0x28>
3f1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
3f8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
3ff: 90 nop
00000400 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, const char *fmt, ...)
{
400: f3 0f 1e fb endbr32
404: 55 push %ebp
405: 89 e5 mov %esp,%ebp
407: 57 push %edi
408: 56 push %esi
409: 53 push %ebx
40a: 83 ec 2c sub $0x2c,%esp
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
40d: 8b 75 0c mov 0xc(%ebp),%esi
410: 0f b6 1e movzbl (%esi),%ebx
413: 84 db test %bl,%bl
415: 0f 84 b4 00 00 00 je 4cf <printf+0xcf>
ap = (uint*)(void*)&fmt + 1;
41b: 8d 45 10 lea 0x10(%ebp),%eax
41e: 83 c6 01 add $0x1,%esi
write(fd, &c, 1);
421: 8d 7d e7 lea -0x19(%ebp),%edi
state = 0;
424: 31 d2 xor %edx,%edx
ap = (uint*)(void*)&fmt + 1;
426: 89 45 d0 mov %eax,-0x30(%ebp)
429: eb 33 jmp 45e <printf+0x5e>
42b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
42f: 90 nop
430: 89 55 d4 mov %edx,-0x2c(%ebp)
c = fmt[i] & 0xff;
if(state == 0){
if(c == '%'){
state = '%';
433: ba 25 00 00 00 mov $0x25,%edx
if(c == '%'){
438: 83 f8 25 cmp $0x25,%eax
43b: 74 17 je 454 <printf+0x54>
write(fd, &c, 1);
43d: 83 ec 04 sub $0x4,%esp
440: 88 5d e7 mov %bl,-0x19(%ebp)
443: 6a 01 push $0x1
445: 57 push %edi
446: ff 75 08 pushl 0x8(%ebp)
449: e8 65 fe ff ff call 2b3 <write>
44e: 8b 55 d4 mov -0x2c(%ebp),%edx
} else {
putc(fd, c);
451: 83 c4 10 add $0x10,%esp
for(i = 0; fmt[i]; i++){
454: 0f b6 1e movzbl (%esi),%ebx
457: 83 c6 01 add $0x1,%esi
45a: 84 db test %bl,%bl
45c: 74 71 je 4cf <printf+0xcf>
c = fmt[i] & 0xff;
45e: 0f be cb movsbl %bl,%ecx
461: 0f b6 c3 movzbl %bl,%eax
if(state == 0){
464: 85 d2 test %edx,%edx
466: 74 c8 je 430 <printf+0x30>
}
} else if(state == '%'){
468: 83 fa 25 cmp $0x25,%edx
46b: 75 e7 jne 454 <printf+0x54>
if(c == 'd'){
46d: 83 f8 64 cmp $0x64,%eax
470: 0f 84 9a 00 00 00 je 510 <printf+0x110>
printint(fd, *ap, 10, 1);
ap++;
} else if(c == 'x' || c == 'p'){
476: 81 e1 f7 00 00 00 and $0xf7,%ecx
47c: 83 f9 70 cmp $0x70,%ecx
47f: 74 5f je 4e0 <printf+0xe0>
printint(fd, *ap, 16, 0);
ap++;
} else if(c == 's'){
481: 83 f8 73 cmp $0x73,%eax
484: 0f 84 d6 00 00 00 je 560 <printf+0x160>
s = "(null)";
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
48a: 83 f8 63 cmp $0x63,%eax
48d: 0f 84 8d 00 00 00 je 520 <printf+0x120>
putc(fd, *ap);
ap++;
} else if(c == '%'){
493: 83 f8 25 cmp $0x25,%eax
496: 0f 84 b4 00 00 00 je 550 <printf+0x150>
write(fd, &c, 1);
49c: 83 ec 04 sub $0x4,%esp
49f: c6 45 e7 25 movb $0x25,-0x19(%ebp)
4a3: 6a 01 push $0x1
4a5: 57 push %edi
4a6: ff 75 08 pushl 0x8(%ebp)
4a9: e8 05 fe ff ff call 2b3 <write>
putc(fd, c);
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
putc(fd, c);
4ae: 88 5d e7 mov %bl,-0x19(%ebp)
write(fd, &c, 1);
4b1: 83 c4 0c add $0xc,%esp
4b4: 6a 01 push $0x1
4b6: 83 c6 01 add $0x1,%esi
4b9: 57 push %edi
4ba: ff 75 08 pushl 0x8(%ebp)
4bd: e8 f1 fd ff ff call 2b3 <write>
for(i = 0; fmt[i]; i++){
4c2: 0f b6 5e ff movzbl -0x1(%esi),%ebx
putc(fd, c);
4c6: 83 c4 10 add $0x10,%esp
}
state = 0;
4c9: 31 d2 xor %edx,%edx
for(i = 0; fmt[i]; i++){
4cb: 84 db test %bl,%bl
4cd: 75 8f jne 45e <printf+0x5e>
}
}
}
4cf: 8d 65 f4 lea -0xc(%ebp),%esp
4d2: 5b pop %ebx
4d3: 5e pop %esi
4d4: 5f pop %edi
4d5: 5d pop %ebp
4d6: c3 ret
4d7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
4de: 66 90 xchg %ax,%ax
printint(fd, *ap, 16, 0);
4e0: 83 ec 0c sub $0xc,%esp
4e3: b9 10 00 00 00 mov $0x10,%ecx
4e8: 6a 00 push $0x0
4ea: 8b 5d d0 mov -0x30(%ebp),%ebx
4ed: 8b 45 08 mov 0x8(%ebp),%eax
4f0: 8b 13 mov (%ebx),%edx
4f2: e8 59 fe ff ff call 350 <printint>
ap++;
4f7: 89 d8 mov %ebx,%eax
4f9: 83 c4 10 add $0x10,%esp
state = 0;
4fc: 31 d2 xor %edx,%edx
ap++;
4fe: 83 c0 04 add $0x4,%eax
501: 89 45 d0 mov %eax,-0x30(%ebp)
504: e9 4b ff ff ff jmp 454 <printf+0x54>
509: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
printint(fd, *ap, 10, 1);
510: 83 ec 0c sub $0xc,%esp
513: b9 0a 00 00 00 mov $0xa,%ecx
518: 6a 01 push $0x1
51a: eb ce jmp 4ea <printf+0xea>
51c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
putc(fd, *ap);
520: 8b 5d d0 mov -0x30(%ebp),%ebx
write(fd, &c, 1);
523: 83 ec 04 sub $0x4,%esp
putc(fd, *ap);
526: 8b 03 mov (%ebx),%eax
write(fd, &c, 1);
528: 6a 01 push $0x1
ap++;
52a: 83 c3 04 add $0x4,%ebx
write(fd, &c, 1);
52d: 57 push %edi
52e: ff 75 08 pushl 0x8(%ebp)
putc(fd, *ap);
531: 88 45 e7 mov %al,-0x19(%ebp)
write(fd, &c, 1);
534: e8 7a fd ff ff call 2b3 <write>
ap++;
539: 89 5d d0 mov %ebx,-0x30(%ebp)
53c: 83 c4 10 add $0x10,%esp
state = 0;
53f: 31 d2 xor %edx,%edx
541: e9 0e ff ff ff jmp 454 <printf+0x54>
546: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
54d: 8d 76 00 lea 0x0(%esi),%esi
putc(fd, c);
550: 88 5d e7 mov %bl,-0x19(%ebp)
write(fd, &c, 1);
553: 83 ec 04 sub $0x4,%esp
556: e9 59 ff ff ff jmp 4b4 <printf+0xb4>
55b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
55f: 90 nop
s = (char*)*ap;
560: 8b 45 d0 mov -0x30(%ebp),%eax
563: 8b 18 mov (%eax),%ebx
ap++;
565: 83 c0 04 add $0x4,%eax
568: 89 45 d0 mov %eax,-0x30(%ebp)
if(s == 0)
56b: 85 db test %ebx,%ebx
56d: 74 17 je 586 <printf+0x186>
while(*s != 0){
56f: 0f b6 03 movzbl (%ebx),%eax
state = 0;
572: 31 d2 xor %edx,%edx
while(*s != 0){
574: 84 c0 test %al,%al
576: 0f 84 d8 fe ff ff je 454 <printf+0x54>
57c: 89 75 d4 mov %esi,-0x2c(%ebp)
57f: 89 de mov %ebx,%esi
581: 8b 5d 08 mov 0x8(%ebp),%ebx
584: eb 1a jmp 5a0 <printf+0x1a0>
s = "(null)";
586: bb 68 07 00 00 mov $0x768,%ebx
while(*s != 0){
58b: 89 75 d4 mov %esi,-0x2c(%ebp)
58e: b8 28 00 00 00 mov $0x28,%eax
593: 89 de mov %ebx,%esi
595: 8b 5d 08 mov 0x8(%ebp),%ebx
598: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
59f: 90 nop
write(fd, &c, 1);
5a0: 83 ec 04 sub $0x4,%esp
s++;
5a3: 83 c6 01 add $0x1,%esi
5a6: 88 45 e7 mov %al,-0x19(%ebp)
write(fd, &c, 1);
5a9: 6a 01 push $0x1
5ab: 57 push %edi
5ac: 53 push %ebx
5ad: e8 01 fd ff ff call 2b3 <write>
while(*s != 0){
5b2: 0f b6 06 movzbl (%esi),%eax
5b5: 83 c4 10 add $0x10,%esp
5b8: 84 c0 test %al,%al
5ba: 75 e4 jne 5a0 <printf+0x1a0>
5bc: 8b 75 d4 mov -0x2c(%ebp),%esi
state = 0;
5bf: 31 d2 xor %edx,%edx
5c1: e9 8e fe ff ff jmp 454 <printf+0x54>
5c6: 66 90 xchg %ax,%ax
5c8: 66 90 xchg %ax,%ax
5ca: 66 90 xchg %ax,%ax
5cc: 66 90 xchg %ax,%ax
5ce: 66 90 xchg %ax,%ax
000005d0 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
5d0: f3 0f 1e fb endbr32
5d4: 55 push %ebp
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
5d5: a1 18 0a 00 00 mov 0xa18,%eax
{
5da: 89 e5 mov %esp,%ebp
5dc: 57 push %edi
5dd: 56 push %esi
5de: 53 push %ebx
5df: 8b 5d 08 mov 0x8(%ebp),%ebx
5e2: 8b 10 mov (%eax),%edx
bp = (Header*)ap - 1;
5e4: 8d 4b f8 lea -0x8(%ebx),%ecx
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
5e7: 39 c8 cmp %ecx,%eax
5e9: 73 15 jae 600 <free+0x30>
5eb: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
5ef: 90 nop
5f0: 39 d1 cmp %edx,%ecx
5f2: 72 14 jb 608 <free+0x38>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
5f4: 39 d0 cmp %edx,%eax
5f6: 73 10 jae 608 <free+0x38>
{
5f8: 89 d0 mov %edx,%eax
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
5fa: 8b 10 mov (%eax),%edx
5fc: 39 c8 cmp %ecx,%eax
5fe: 72 f0 jb 5f0 <free+0x20>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
600: 39 d0 cmp %edx,%eax
602: 72 f4 jb 5f8 <free+0x28>
604: 39 d1 cmp %edx,%ecx
606: 73 f0 jae 5f8 <free+0x28>
break;
if(bp + bp->s.size == p->s.ptr){
608: 8b 73 fc mov -0x4(%ebx),%esi
60b: 8d 3c f1 lea (%ecx,%esi,8),%edi
60e: 39 fa cmp %edi,%edx
610: 74 1e je 630 <free+0x60>
bp->s.size += p->s.ptr->s.size;
bp->s.ptr = p->s.ptr->s.ptr;
} else
bp->s.ptr = p->s.ptr;
612: 89 53 f8 mov %edx,-0x8(%ebx)
if(p + p->s.size == bp){
615: 8b 50 04 mov 0x4(%eax),%edx
618: 8d 34 d0 lea (%eax,%edx,8),%esi
61b: 39 f1 cmp %esi,%ecx
61d: 74 28 je 647 <free+0x77>
p->s.size += bp->s.size;
p->s.ptr = bp->s.ptr;
} else
p->s.ptr = bp;
61f: 89 08 mov %ecx,(%eax)
freep = p;
}
621: 5b pop %ebx
freep = p;
622: a3 18 0a 00 00 mov %eax,0xa18
}
627: 5e pop %esi
628: 5f pop %edi
629: 5d pop %ebp
62a: c3 ret
62b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
62f: 90 nop
bp->s.size += p->s.ptr->s.size;
630: 03 72 04 add 0x4(%edx),%esi
633: 89 73 fc mov %esi,-0x4(%ebx)
bp->s.ptr = p->s.ptr->s.ptr;
636: 8b 10 mov (%eax),%edx
638: 8b 12 mov (%edx),%edx
63a: 89 53 f8 mov %edx,-0x8(%ebx)
if(p + p->s.size == bp){
63d: 8b 50 04 mov 0x4(%eax),%edx
640: 8d 34 d0 lea (%eax,%edx,8),%esi
643: 39 f1 cmp %esi,%ecx
645: 75 d8 jne 61f <free+0x4f>
p->s.size += bp->s.size;
647: 03 53 fc add -0x4(%ebx),%edx
freep = p;
64a: a3 18 0a 00 00 mov %eax,0xa18
p->s.size += bp->s.size;
64f: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
652: 8b 53 f8 mov -0x8(%ebx),%edx
655: 89 10 mov %edx,(%eax)
}
657: 5b pop %ebx
658: 5e pop %esi
659: 5f pop %edi
65a: 5d pop %ebp
65b: c3 ret
65c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
00000660 <malloc>:
return freep;
}
void*
malloc(uint nbytes)
{
660: f3 0f 1e fb endbr32
664: 55 push %ebp
665: 89 e5 mov %esp,%ebp
667: 57 push %edi
668: 56 push %esi
669: 53 push %ebx
66a: 83 ec 1c sub $0x1c,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
66d: 8b 45 08 mov 0x8(%ebp),%eax
if((prevp = freep) == 0){
670: 8b 3d 18 0a 00 00 mov 0xa18,%edi
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
676: 8d 70 07 lea 0x7(%eax),%esi
679: c1 ee 03 shr $0x3,%esi
67c: 83 c6 01 add $0x1,%esi
if((prevp = freep) == 0){
67f: 85 ff test %edi,%edi
681: 0f 84 a9 00 00 00 je 730 <malloc+0xd0>
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
687: 8b 07 mov (%edi),%eax
if(p->s.size >= nunits){
689: 8b 48 04 mov 0x4(%eax),%ecx
68c: 39 f1 cmp %esi,%ecx
68e: 73 6d jae 6fd <malloc+0x9d>
690: 81 fe 00 10 00 00 cmp $0x1000,%esi
696: bb 00 10 00 00 mov $0x1000,%ebx
69b: 0f 43 de cmovae %esi,%ebx
p = sbrk(nu * sizeof(Header));
69e: 8d 0c dd 00 00 00 00 lea 0x0(,%ebx,8),%ecx
6a5: 89 4d e4 mov %ecx,-0x1c(%ebp)
6a8: eb 17 jmp 6c1 <malloc+0x61>
6aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
6b0: 8b 10 mov (%eax),%edx
if(p->s.size >= nunits){
6b2: 8b 4a 04 mov 0x4(%edx),%ecx
6b5: 39 f1 cmp %esi,%ecx
6b7: 73 4f jae 708 <malloc+0xa8>
6b9: 8b 3d 18 0a 00 00 mov 0xa18,%edi
6bf: 89 d0 mov %edx,%eax
p->s.size = nunits;
}
freep = prevp;
return (void*)(p + 1);
}
if(p == freep)
6c1: 39 c7 cmp %eax,%edi
6c3: 75 eb jne 6b0 <malloc+0x50>
p = sbrk(nu * sizeof(Header));
6c5: 83 ec 0c sub $0xc,%esp
6c8: ff 75 e4 pushl -0x1c(%ebp)
6cb: e8 4b fc ff ff call 31b <sbrk>
if(p == (char*)-1)
6d0: 83 c4 10 add $0x10,%esp
6d3: 83 f8 ff cmp $0xffffffff,%eax
6d6: 74 1b je 6f3 <malloc+0x93>
hp->s.size = nu;
6d8: 89 58 04 mov %ebx,0x4(%eax)
free((void*)(hp + 1));
6db: 83 ec 0c sub $0xc,%esp
6de: 83 c0 08 add $0x8,%eax
6e1: 50 push %eax
6e2: e8 e9 fe ff ff call 5d0 <free>
return freep;
6e7: a1 18 0a 00 00 mov 0xa18,%eax
if((p = morecore(nunits)) == 0)
6ec: 83 c4 10 add $0x10,%esp
6ef: 85 c0 test %eax,%eax
6f1: 75 bd jne 6b0 <malloc+0x50>
return 0;
}
}
6f3: 8d 65 f4 lea -0xc(%ebp),%esp
return 0;
6f6: 31 c0 xor %eax,%eax
}
6f8: 5b pop %ebx
6f9: 5e pop %esi
6fa: 5f pop %edi
6fb: 5d pop %ebp
6fc: c3 ret
if(p->s.size >= nunits){
6fd: 89 c2 mov %eax,%edx
6ff: 89 f8 mov %edi,%eax
701: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
if(p->s.size == nunits)
708: 39 ce cmp %ecx,%esi
70a: 74 54 je 760 <malloc+0x100>
p->s.size -= nunits;
70c: 29 f1 sub %esi,%ecx
70e: 89 4a 04 mov %ecx,0x4(%edx)
p += p->s.size;
711: 8d 14 ca lea (%edx,%ecx,8),%edx
p->s.size = nunits;
714: 89 72 04 mov %esi,0x4(%edx)
freep = prevp;
717: a3 18 0a 00 00 mov %eax,0xa18
}
71c: 8d 65 f4 lea -0xc(%ebp),%esp
return (void*)(p + 1);
71f: 8d 42 08 lea 0x8(%edx),%eax
}
722: 5b pop %ebx
723: 5e pop %esi
724: 5f pop %edi
725: 5d pop %ebp
726: c3 ret
727: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
72e: 66 90 xchg %ax,%ax
base.s.ptr = freep = prevp = &base;
730: c7 05 18 0a 00 00 1c movl $0xa1c,0xa18
737: 0a 00 00
base.s.size = 0;
73a: bf 1c 0a 00 00 mov $0xa1c,%edi
base.s.ptr = freep = prevp = &base;
73f: c7 05 1c 0a 00 00 1c movl $0xa1c,0xa1c
746: 0a 00 00
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
749: 89 f8 mov %edi,%eax
base.s.size = 0;
74b: c7 05 20 0a 00 00 00 movl $0x0,0xa20
752: 00 00 00
if(p->s.size >= nunits){
755: e9 36 ff ff ff jmp 690 <malloc+0x30>
75a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
prevp->s.ptr = p->s.ptr;
760: 8b 0a mov (%edx),%ecx
762: 89 08 mov %ecx,(%eax)
764: eb b1 jmp 717 <malloc+0xb7>
|
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
07EA76 move.w (A0)+, (A1)+ [base+6078, base+607A, base+60F8, base+60FA, base+6178, base+617A, base+61F8, base+61FA, base+6278, base+627A, base+62F8, base+62FA, base+6378, base+637A, base+63F8, base+63FA, base+6478, base+647A, base+64F8, base+64FA]
07EA78 move.w #$1, (A1)+ [base+607C, base+60FC, base+617C, base+61FC, base+627C, base+62FC, base+637C, base+63FC, base+647C, base+64FC]
0AAACA move.l (A0), D2
0AAACC move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1]
0AAACE move.w D0, ($2,A0)
0AAAD2 cmp.l (A0), D0
0AAAD4 bne $aaafc
0AAAD8 move.l D2, (A0)+
0AAADA cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1]
0AAAE6 move.l (A0), D2
0AAAE8 move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1]
0AAAF4 move.l D2, (A0)+
0AAAF6 cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1]
copyright zengfr site:http://github.com/zengfr/romhack
|
global _start
extern aoc_day03_1, aoc_day03_2
section .text
;;------------------;;
;; START POINT ;;
;;------------------;;
_start:
call aoc_day03_1
call aoc_day03_2
mov eax, 1
xor ebx, ebx
int 0x80 |
getchar:
* jsr getin
beq -
rts |
dnl PowerPC-64/mode32 mpn_add_n -- Add two limb vectors of the same length > 0
dnl and store sum in a third limb vector.
dnl Copyright 1999-2001, 2003, 2005 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published by the Free
dnl Software Foundation; either version 3 of the License, or (at your
dnl option) any later version.
dnl
dnl or
dnl
dnl * the GNU General Public License as published by the Free Software
dnl Foundation; either version 2 of the License, or (at your option) any
dnl later version.
dnl
dnl or both in parallel, as here.
dnl
dnl The GNU MP Library is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dnl for more details.
dnl
dnl You should have received copies of the GNU General Public License and the
dnl GNU Lesser General Public License along with the GNU MP Library. If not,
dnl see https://www.gnu.org/licenses/.
include(`../config.m4')
C cycles/limb
C POWER3/PPC630: ?
C POWER4/PPC970: 4.25
C INPUT PARAMETERS
C rp r3
C up r4
C vp r5
C n r6
ASM_START()
PROLOGUE(mpn_add_n)
mtctr r6 C copy size into CTR
addic r0, r0, 0 C clear cy
ld r8, 0(r4) C load least significant s1 limb
ld r0, 0(r5) C load least significant s2 limb
addi r3, r3, -8 C offset res_ptr, it's updated before it's used
bdz L(end) C If done, skip loop
L(oop): ld r9, 8(r4) C load s1 limb
ld r10, 8(r5) C load s2 limb
adde r7, r0, r8 C add limbs with cy, set cy
srdi r6, r0, 32
srdi r11, r8, 32
adde r6, r6, r11 C add high limb parts, set cy
std r7, 8(r3) C store result limb
bdz L(exit) C decrement CTR and exit if done
ldu r8, 16(r4) C load s1 limb and update s1_ptr
ldu r0, 16(r5) C load s2 limb and update s2_ptr
adde r7, r10, r9 C add limbs with cy, set cy
srdi r6, r10, 32
srdi r11, r9, 32
adde r6, r6, r11 C add high limb parts, set cy
stdu r7, 16(r3) C store result limb and update res_ptr
bdnz L(oop) C decrement CTR and loop back
L(end): adde r7, r0, r8
srdi r6, r0, 32
srdi r11, r8, 32
adde r6, r6, r11 C add limbs with cy, set cy
std r7, 8(r3) C store ultimate result limb
li r3, 0 C load cy into ...
addze r4, r3 C ... return value register
blr
L(exit): adde r7, r10, r9
srdi r6, r10, 32
srdi r11, r9, 32
adde r6, r6, r11 C add limbs with cy, set cy
std r7, 16(r3)
li r3, 0 C load cy into ...
addze r4, r3 C ... return value register
blr
EPILOGUE()
|
; unsigned char esx_disk_stream_end(void)
SECTION code_esxdos
PUBLIC esx_disk_stream_end
EXTERN asm_esx_disk_stream_end
defc esx_disk_stream_end = asm_esx_disk_stream_end
|
;channel 1
bttIntroOne::
db $00, $80, $00, $14, $87, QUAVER * 2 ; NO SOUND
db $00, $80, $00, $14, $87, $FF ; NO SOUND
bttChannelOne::
;mesure 1
db $00, $80, $87, $14, $87, QUAVER + QUAVER / 2 ; DO#2
db $00, $80, $87, $14, $87, QUAVER + QUAVER / 2 ; DO#2
db $00, $80, $87, $14, $87, QUAVER + QUAVER / 2 ; DO#2
db $00, $80, $87, $14, $87, QUAVER + QUAVER / 2 ; DO#2
db $00, $80, $00, $14, $87, QUAVER ; NO SOUND
db $00, $80, $00, $2E, $87, QUAVER + QUAVER / 2 ; RE#2
;mesure 2
db $00, $80, $87, $14, $87, QUAVER + QUAVER / 2 ; DO#2
db $00, $80, $87, $14, $87, QUAVER + QUAVER / 2 ; DO#2
db $00, $80, $87, $14, $87, QUAVER + QUAVER / 2 ; DO#2
db $00, $80, $87, $14, $87, QUAVER ; DO#2
db $00, $80, $00, $39, $87, QUAVER ; MI2
db $00, $80, $00, $2E, $87, QUAVER + QUAVER / 2 ; RE#2
;mesure 3
db $00, $80, $87, $14, $87, QUAVER + QUAVER / 2 ; DO#2
db $00, $80, $87, $14, $87, QUAVER + QUAVER / 2 ; DO#2
db $00, $80, $87, $14, $87, QUAVER + QUAVER / 2 ; DO#2
db $00, $80, $87, $14, $87, QUAVER + QUAVER / 2 ; DO#2
;mesure 4
db $00, $80, $0F, $4F, $87, QUAVER * 7 + QUAVER / 2 ; FA#2
db $00, $80, $87, $14, $87, QUAVER ; DO#2
db $00, $80, $B7, $D6, $86, QUAVER ; LA1
;mesure 5
db $00, $80, $87, $14, $87, QUAVER ; DO#2
db $00, $80, $B7, $4F, $87, QUAVER ; FA#2
db $00, $80, $87, $14, $87, QUAVER ; DO#2
db $00, $80, $B7, $D6, $86, QUAVER ; LA1
db $00, $80, $87, $14, $87, QUAVER ; DO#2
db $00, $80, $B7, $4F, $87, QUAVER ; FA#2
db $00, $80, $87, $14, $87, QUAVER ; DO#2
db $00, $80, $B7, $D6, $86, QUAVER ; LA1
;mesure 6
db $00, $80, $87, $2E, $87, QUAVER ; RE#2
db $00, $80, $B7, $4F, $87, QUAVER ; FA#2
db $00, $80, $87, $2E, $87, QUAVER ; RE#2
db $00, $80, $B7, $F7, $86, QUAVER ; SI1
db $00, $80, $87, $2E, $87, QUAVER ; RE#2
db $00, $80, $B7, $4F, $87, QUAVER ; FA#2
db $00, $80, $87, $2E, $87, QUAVER ; RE#2
db $00, $80, $B7, $F7, $86, QUAVER ; SI1
;mesure 7
db $00, $80, $87, $F7, $86, QUAVER ; SI1
db $00, $80, $B7, $39, $87, QUAVER ; MI2
db $00, $80, $87, $F7, $86, QUAVER ; SI1
db $00, $80, $B7, $C4, $86, QUAVER ; SOL#1
db $00, $80, $87, $F7, $86, QUAVER ; SI1
db $00, $80, $B7, $39, $87, QUAVER ; MI2
db $00, $80, $87, $F7, $86, QUAVER ; SI1
db $00, $80, $B7, $C4, $86, QUAVER ; SOL#1
;mesure 8
db $00, $80, $87, $14, $87, QUAVER ; DO#2
db $00, $80, $B7, $39, $87, QUAVER ; MI2
db $00, $80, $87, $14, $87, QUAVER ; DO#2
db $00, $80, $B7, $D6, $86, QUAVER ; LA1
db $00, $80, $87, $14, $87, QUAVER ; DO#2
db $00, $80, $B7, $44, $87, QUAVER ; FA2
db $00, $80, $87, $14, $87, QUAVER ; DO#2
db $00, $80, $B7, $C4, $86, QUAVER ; SOL#1
;mesure 9
db $00, $80, $87, $14, $87, QUAVER ; DO#2
db $00, $80, $B7, $4F, $87, QUAVER ; FA#2
db $00, $80, $87, $14, $87, QUAVER ; DO#2
db $00, $80, $B7, $D6, $86, QUAVER ; LA1
db $00, $80, $87, $14, $87, QUAVER ; DO#2
db $00, $80, $B7, $4F, $87, QUAVER ; FA#2
db $00, $80, $87, $14, $87, QUAVER ; DO#2
db $00, $80, $B7, $D6, $86, QUAVER ; LA1
;mesure 10
db $00, $80, $87, $2E, $87, QUAVER ; RE#2
db $00, $80, $B7, $4F, $87, QUAVER ; FA#2
db $00, $80, $87, $2E, $87, QUAVER ; RE#2
db $00, $80, $B7, $F7, $86, QUAVER ; SI1
db $00, $80, $87, $2E, $87, QUAVER ; RE#2
db $00, $80, $B7, $4F, $87, QUAVER ; FA#2
db $00, $80, $87, $2E, $87, QUAVER ; RE#2
db $00, $80, $B7, $F7, $86, QUAVER ; SI1
;mesure 11
db $00, $80, $87, $F7, $86, QUAVER ; SI1
db $00, $80, $B7, $39, $87, QUAVER ; MI2
db $00, $80, $87, $F7, $86, QUAVER ; SI1
db $00, $80, $B7, $C4, $86, QUAVER ; SOL#1
db $00, $80, $87, $F7, $86, QUAVER ; SI1
db $00, $80, $B7, $39, $87, QUAVER ; MI2
db $00, $80, $87, $F7, $86, QUAVER ; SI1
db $00, $80, $B7, $C4, $86, QUAVER ; SOL#1
;mesure 12
db $00, $80, $87, $14, $87, QUAVER ; DO#2
db $00, $80, $B7, $39, $87, QUAVER ; MI2
db $00, $80, $87, $14, $87, QUAVER ; DO#2
db $00, $80, $B7, $D6, $86, QUAVER ; LA1
db $00, $80, $87, $14, $87, QUAVER ; DO#2
db $00, $80, $B7, $44, $87, QUAVER ; FA2
db $00, $80, $87, $14, $87, QUAVER ; DO#2
db $00, $80, $B7, $C4, $86, QUAVER ; SOL#1
;mesure 13
db $00, $80, $B0, $4F, $87, QUAVER / 2 ; FA#2
db $00, $80, $B0, $62, $87, QUAVER / 2 ; SOL#2
db $00, $80, $B0, $6B, $87, QUAVER / 2 ; LA2
db $00, $80, $B0, $7C, $87, QUAVER ; SI2
db $00, $80, $B0, $8A, $87, QUAVER ; DO#3
db $00, $80, $B0, $9D, $87, QUAVER * 3 + QUAVER / 2 ; MI3
db $00, $80, $00, $9D, $87, QUAVER ; NO SOUND
;mesure 14
db $00, $80, $B7, $44, $87, QUAVER / 2 ; FA2
db $00, $80, $B7, $4F, $87, QUAVER / 2 ; FA#2
db $00, $80, $B7, $39, $87, QUAVER / 2 ; MI2
db $00, $80, $B7, $14, $87, QUAVER / 2 ; DO#2
db $00, $80, $B7, $05, $87, QUAVER / 2 ; DO2
db $00, $80, $B7, $14, $87, QUAVER / 2 ; DO#2
db $00, $80, $B7, $F7, $86, QUAVER / 2 ; SI1
db $00, $80, $B7, $D6, $86, QUAVER / 2 ; LA1
db $00, $80, $B7, $9E, $86, QUAVER / 2 ; FA#1
db $00, $80, $B7, $D6, $86, QUAVER / 2 ; LA1
db $00, $80, $B7, $F7, $86, QUAVER / 2 ; SI1
db $00, $80, $B7, $D6, $86, QUAVER / 2 ; LA1
db $00, $80, $B7, $14, $87, QUAVER / 2 ; DO#2
db $00, $80, $B7, $F7, $86, QUAVER / 2 ; SI1
db $00, $80, $B7, $39, $87, QUAVER / 2 ; MI2
db $00, $80, $B7, $4F, $87, QUAVER / 2 ; FA#2
;mesure 15
db $00, $80, $B7, $8A, $87, QUAVER + QUAVER / 2 ; DO#3
db $00, $80, $B7, $8A, $87, QUAVER + QUAVER / 2 ; DO#3
db $00, $80, $B7, $8A, $87, QUAVER + QUAVER / 2 ; DO#3
db $00, $80, $B7, $8A, $87, QUAVER + QUAVER / 2 ; DO#3
db $00, $80, $B7, $8A, $87, QUAVER * 2; DO#3
;mesure 16
db $00, $80, $B7, $2E, $87, QUAVER / 2 ; RE#2
db $00, $80, $B7, $39, $87, QUAVER / 2 ; MI2
db $00, $80, $B7, $21, $87, QUAVER / 2 ; RE2
db $00, $80, $B7, $F7, $86, QUAVER / 2 ; SI1
db $00, $80, $B7, $E7, $86, QUAVER / 2 ; LA#1
db $00, $80, $B7, $F7, $86, QUAVER / 2 ; SI1
db $00, $80, $B7, $D6, $86, QUAVER / 2 ; LA1
db $00, $80, $B7, $B2, $86, QUAVER / 2 ; SOL1
db $00, $80, $B7, $73, $86, QUAVER / 2 ; MI1
db $00, $80, $B7, $B2, $86, QUAVER / 2 ; SOL1
db $00, $80, $B7, $D6, $86, QUAVER / 2 ; LA1
db $00, $80, $B7, $B2, $86, QUAVER / 2 ; SOL1
db $00, $80, $B7, $F7, $86, QUAVER / 2 ; SI1
db $00, $80, $B7, $D6, $86, QUAVER / 2 ; LA1
db $00, $80, $B7, $F7, $86, QUAVER / 2 ; SI1
db $00, $80, $B7, $21, $87, QUAVER / 2 ; RE2
;mesure 17
db $00, $80, $B7, $14, $87, QUAVER + QUAVER / 2 ; DO#2
db $00, $80, $B7, $39, $87, QUAVER + QUAVER / 2 ; MI2
db $00, $80, $B0, $6B, $87, QUAVER + QUAVER / 2 ; LA2
db $00, $80, $B0, $59, $87, QUAVER + QUAVER / 2 ; SOL2
db $00, $80, $B7, $39, $87, QUAVER ; MI2
db $00, $80, $B7, $44, $87, QUAVER ; FA2
;mesure 18
db $00, $80, $40, $4F, $87, QUAVER * 8 ; FA#2
;mesure 19
db $00, $80, $40, $4F, $87, QUAVER * 8 ; FA#2
;mesure 20
db $00, $80, $40, $39, $87, QUAVER * 8 ; MI2
;mesure 21
db $00, $80, $40, $14, $87, QUAVER * 4 ; DO#2
db $00, $80, $40, $62, $87, QUAVER * 4 ; SOL#2
db $00, $80, $00, $62, $87, $FF ; SOL#2
|
// Copyright (c) 2014 The Bitcoin Core developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2020 The PIVX developers
// Copyright (c) 2021 The ISLAMIC DIGITAL COIN developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "test/test_islamic_digital_coin.h"
#include "blocksignature.h"
#include "net.h"
#include "primitives/transaction.h"
#include "script/sign.h"
#include "validation.h"
#include <boost/test/unit_test.hpp>
BOOST_FIXTURE_TEST_SUITE(main_tests, TestingSetup)
enum BlockSignatureType{
P2PK,
P2PKH,
P2CS
};
CScript GetScriptForType(CPubKey pubKey, BlockSignatureType type)
{
switch(type){
case P2PK:
return CScript() << pubKey << OP_CHECKSIG;
default:
return GetScriptForDestination(pubKey.GetID());
}
}
std::vector<unsigned char> CreateDummyScriptSigWithKey(CPubKey pubKey)
{
std::vector<unsigned char> vchSig;
const CScript scriptCode;
DummySignatureCreator(nullptr).CreateSig(vchSig, pubKey.GetID(), scriptCode, SIGVERSION_BASE);
return vchSig;
}
CScript GetDummyScriptSigByType(CPubKey pubKey, bool isP2PK)
{
CScript script = CScript() << CreateDummyScriptSigWithKey(pubKey);
if (!isP2PK)
script << ToByteVector(pubKey);
return script;
}
CBlock CreateDummyBlockWithSignature(CKey stakingKey, BlockSignatureType type, bool useInputP2PK)
{
CMutableTransaction txCoinStake;
// Dummy input
CTxIn input(uint256(), 0);
// P2PKH input
input.scriptSig = GetDummyScriptSigByType(stakingKey.GetPubKey(), useInputP2PK);
// Add dummy input
txCoinStake.vin.emplace_back(input);
// Empty first output
txCoinStake.vout.emplace_back(0, CScript());
// P2PK staking output
CScript scriptPubKey = GetScriptForType(stakingKey.GetPubKey(), type);
txCoinStake.vout.emplace_back(0, scriptPubKey);
// Now the block.
CBlock block;
block.vtx.emplace_back(std::make_shared<const CTransaction>(CTransaction())); // dummy first tx
block.vtx.emplace_back(std::make_shared<const CTransaction>(txCoinStake));
SignBlockWithKey(block, stakingKey);
return block;
}
bool TestBlockSignature(const CBlock& block)
{
return CheckBlockSignature(block);
}
BOOST_AUTO_TEST_CASE(block_signature_test)
{
for (int i = 0; i < 20; ++i) {
CKey stakingKey;
stakingKey.MakeNewKey(true);
bool useInputP2PK = i % 2 == 0;
// Test P2PK block signature
CBlock block = CreateDummyBlockWithSignature(stakingKey, BlockSignatureType::P2PK, useInputP2PK);
BOOST_CHECK(TestBlockSignature(block));
// Test P2PKH block signature
block = CreateDummyBlockWithSignature(stakingKey, BlockSignatureType::P2PKH, useInputP2PK);
if (useInputP2PK) {
// If it's using a P2PK scriptsig as input and a P2PKH output
// The block doesn't contain the public key to verify the sig anywhere.
// Must fail.
BOOST_CHECK(!TestBlockSignature(block));
} else {
BOOST_CHECK(TestBlockSignature(block));
}
}
}
CAmount nMoneySupplyPoWEnd = 43199500 * COIN;
BOOST_AUTO_TEST_CASE(subsidy_limit_test)
{
CAmount nSum = 0;
for (int nHeight = 0; nHeight < 1; nHeight += 1) {
/* premine in block 1 (60,001 IDC) */
CAmount nSubsidy = GetBlockValue(nHeight + 1);
BOOST_CHECK(nSubsidy <= 60001 * COIN);
nSum += nSubsidy;
}
for (int nHeight = 1; nHeight < 86400; nHeight += 1) {
/* PoW Phase One */
CAmount nSubsidy = GetBlockValue(nHeight + 1);
BOOST_CHECK(nSubsidy <= 250 * COIN);
nSum += nSubsidy;
}
for (int nHeight = 86400; nHeight < 151200; nHeight += 1) {
/* PoW Phase Two */
CAmount nSubsidy = GetBlockValue(nHeight + 1);
BOOST_CHECK(nSubsidy <= 225 * COIN);
nSum += nSubsidy;
}
for (int nHeight = 151200; nHeight < 259200; nHeight += 1) {
/* PoW Phase Two */
CAmount nSubsidy = GetBlockValue(nHeight + 1);
BOOST_CHECK(nSubsidy <= 45 * COIN);
BOOST_CHECK(Params().GetConsensus().MoneyRange(nSubsidy));
nSum += nSubsidy;
BOOST_CHECK(nSum > 0 && nSum <= nMoneySupplyPoWEnd);
}
BOOST_CHECK(nSum == 4109975100000000ULL);
}
bool ReturnFalse() { return false; }
bool ReturnTrue() { return true; }
BOOST_AUTO_TEST_CASE(test_combiner_all)
{
boost::signals2::signal<bool(), CombinerAll> Test;
BOOST_CHECK(Test());
Test.connect(&ReturnFalse);
BOOST_CHECK(!Test());
Test.connect(&ReturnTrue);
BOOST_CHECK(!Test());
Test.disconnect(&ReturnFalse);
BOOST_CHECK(Test());
Test.disconnect(&ReturnTrue);
BOOST_CHECK(Test());
}
BOOST_AUTO_TEST_SUITE_END()
|
#include "utils.hpp"
namespace tria::gfx::internal {
auto getVkAvailableInstanceExtensions() -> std::vector<VkExtensionProperties> {
uint32_t extCount = 0U;
checkVkResult(vkEnumerateInstanceExtensionProperties(nullptr, &extCount, nullptr));
auto result = std::vector<VkExtensionProperties>{extCount};
checkVkResult(vkEnumerateInstanceExtensionProperties(nullptr, &extCount, result.data()));
return result;
}
auto getVkAvailableInstanceLayers() -> std::vector<VkLayerProperties> {
uint32_t layerCount = 0U;
checkVkResult(vkEnumerateInstanceLayerProperties(&layerCount, nullptr));
auto result = std::vector<VkLayerProperties>{layerCount};
checkVkResult(vkEnumerateInstanceLayerProperties(&layerCount, result.data()));
return result;
}
auto getVkPhysicalDevices(VkInstance vkInstance) -> std::vector<VkPhysicalDevice> {
uint32_t count = 0;
checkVkResult(vkEnumeratePhysicalDevices(vkInstance, &count, nullptr));
auto result = std::vector<VkPhysicalDevice>{count};
checkVkResult(vkEnumeratePhysicalDevices(vkInstance, &count, result.data()));
return result;
}
auto getVkQueueFamilies(VkPhysicalDevice vkPhysicalDevice) -> std::vector<VkQueueFamilyProperties> {
uint32_t count = 0;
vkGetPhysicalDeviceQueueFamilyProperties(vkPhysicalDevice, &count, nullptr);
auto result = std::vector<VkQueueFamilyProperties>{count};
vkGetPhysicalDeviceQueueFamilyProperties(vkPhysicalDevice, &count, result.data());
return result;
}
auto getVkDeviceExtensions(VkPhysicalDevice vkPhysicalDevice)
-> std::vector<VkExtensionProperties> {
uint32_t count = 0;
checkVkResult(vkEnumerateDeviceExtensionProperties(vkPhysicalDevice, nullptr, &count, nullptr));
auto result = std::vector<VkExtensionProperties>{count};
checkVkResult(
vkEnumerateDeviceExtensionProperties(vkPhysicalDevice, nullptr, &count, result.data()));
return result;
}
auto getVkSurfaceFormats(VkPhysicalDevice vkPhysicalDevice, VkSurfaceKHR vkSurface)
-> std::vector<VkSurfaceFormatKHR> {
uint32_t count = 0;
checkVkResult(vkGetPhysicalDeviceSurfaceFormatsKHR(vkPhysicalDevice, vkSurface, &count, nullptr));
auto result = std::vector<VkSurfaceFormatKHR>{count};
checkVkResult(
vkGetPhysicalDeviceSurfaceFormatsKHR(vkPhysicalDevice, vkSurface, &count, result.data()));
return result;
}
auto getVkPresentModes(VkPhysicalDevice vkPhysicalDevice, VkSurfaceKHR vkSurface)
-> std::vector<VkPresentModeKHR> {
uint32_t count = 0;
checkVkResult(
vkGetPhysicalDeviceSurfacePresentModesKHR(vkPhysicalDevice, vkSurface, &count, nullptr));
auto result = std::vector<VkPresentModeKHR>{count};
checkVkResult(vkGetPhysicalDeviceSurfacePresentModesKHR(
vkPhysicalDevice, vkSurface, &count, result.data()));
return result;
}
auto getSwapchainVkImages(VkDevice vkDevice, VkSwapchainKHR vkSwapchain) -> std::vector<VkImage> {
uint32_t count = 0;
checkVkResult(vkGetSwapchainImagesKHR(vkDevice, vkSwapchain, &count, nullptr));
auto result = std::vector<VkImage>{count};
checkVkResult(vkGetSwapchainImagesKHR(vkDevice, vkSwapchain, &count, result.data()));
return result;
}
auto createVkSemaphore(VkDevice vkDevice) -> VkSemaphore {
VkSemaphoreCreateInfo semaphoreInfo = {};
semaphoreInfo.sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO;
VkSemaphore result;
checkVkResult(vkCreateSemaphore(vkDevice, &semaphoreInfo, nullptr, &result));
return result;
}
auto createVkFence(VkDevice vkDevice, bool initialState) -> VkFence {
VkFenceCreateInfo fenceInfo = {};
fenceInfo.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO;
fenceInfo.flags = initialState ? VK_FENCE_CREATE_SIGNALED_BIT : 0;
VkFence result;
checkVkResult(vkCreateFence(vkDevice, &fenceInfo, nullptr, &result));
return result;
}
auto getVkErrStr(VkResult errCode) noexcept -> std::string_view {
#define ERROR_STR(NAME) \
case VK_##NAME: \
return "Vulkan error: " #NAME
switch (errCode) {
case VK_ERROR_INCOMPATIBLE_DRIVER:
return "No compatible vulkan driver found";
ERROR_STR(NOT_READY);
ERROR_STR(TIMEOUT);
ERROR_STR(EVENT_SET);
ERROR_STR(EVENT_RESET);
ERROR_STR(INCOMPLETE);
ERROR_STR(ERROR_OUT_OF_HOST_MEMORY);
ERROR_STR(ERROR_OUT_OF_DEVICE_MEMORY);
ERROR_STR(ERROR_INITIALIZATION_FAILED);
ERROR_STR(ERROR_DEVICE_LOST);
ERROR_STR(ERROR_MEMORY_MAP_FAILED);
ERROR_STR(ERROR_LAYER_NOT_PRESENT);
ERROR_STR(ERROR_EXTENSION_NOT_PRESENT);
ERROR_STR(ERROR_FEATURE_NOT_PRESENT);
ERROR_STR(ERROR_TOO_MANY_OBJECTS);
ERROR_STR(ERROR_FORMAT_NOT_SUPPORTED);
ERROR_STR(ERROR_FRAGMENTED_POOL);
ERROR_STR(ERROR_UNKNOWN);
ERROR_STR(ERROR_OUT_OF_POOL_MEMORY);
ERROR_STR(ERROR_INVALID_EXTERNAL_HANDLE);
ERROR_STR(ERROR_FRAGMENTATION);
ERROR_STR(ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS);
ERROR_STR(ERROR_SURFACE_LOST_KHR);
ERROR_STR(ERROR_NATIVE_WINDOW_IN_USE_KHR);
ERROR_STR(SUBOPTIMAL_KHR);
ERROR_STR(ERROR_OUT_OF_DATE_KHR);
ERROR_STR(ERROR_INCOMPATIBLE_DISPLAY_KHR);
ERROR_STR(ERROR_VALIDATION_FAILED_EXT);
ERROR_STR(ERROR_INVALID_SHADER_NV);
ERROR_STR(ERROR_INCOMPATIBLE_VERSION_KHR);
ERROR_STR(ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT);
ERROR_STR(ERROR_NOT_PERMITTED_EXT);
ERROR_STR(ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT);
ERROR_STR(THREAD_IDLE_KHR);
ERROR_STR(THREAD_DONE_KHR);
ERROR_STR(OPERATION_DEFERRED_KHR);
ERROR_STR(OPERATION_NOT_DEFERRED_KHR);
ERROR_STR(PIPELINE_COMPILE_REQUIRED_EXT);
default:
return "Unknown vulkan error";
#undef ERROR_STR
}
}
auto getVkDeviceTypeString(VkPhysicalDeviceType type) noexcept -> std::string_view {
switch (type) {
case VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU:
return "integrated";
case VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU:
return "discrete";
case VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU:
return "virtual";
case VK_PHYSICAL_DEVICE_TYPE_CPU:
return "cpu";
default:
return "other";
}
}
auto getVkVendorString(uint32_t vendorId) noexcept -> std::string_view {
switch (vendorId) {
case 0x1002:
return "AMD";
case 0x1010:
return "ImgTec";
case 0x10DE:
return "NVIDIA";
case 0x13B5:
return "ARM";
case 0x5143:
return "Qualcomm";
case 0x8086:
return "INTEL";
default:
return "other";
}
}
auto getVkColorSpaceString(VkColorSpaceKHR colorSpace) noexcept -> std::string_view {
#define COLORSPACE_STR(NAME) \
case VK_COLOR_SPACE_##NAME: \
return #NAME
switch (colorSpace) {
COLORSPACE_STR(SRGB_NONLINEAR_KHR);
COLORSPACE_STR(DISPLAY_P3_NONLINEAR_EXT);
COLORSPACE_STR(EXTENDED_SRGB_LINEAR_EXT);
COLORSPACE_STR(DISPLAY_P3_LINEAR_EXT);
COLORSPACE_STR(DCI_P3_NONLINEAR_EXT);
COLORSPACE_STR(BT709_LINEAR_EXT);
COLORSPACE_STR(BT709_NONLINEAR_EXT);
COLORSPACE_STR(BT2020_LINEAR_EXT);
COLORSPACE_STR(HDR10_ST2084_EXT);
COLORSPACE_STR(DOLBYVISION_EXT);
COLORSPACE_STR(HDR10_HLG_EXT);
COLORSPACE_STR(ADOBERGB_LINEAR_EXT);
COLORSPACE_STR(ADOBERGB_NONLINEAR_EXT);
COLORSPACE_STR(PASS_THROUGH_EXT);
COLORSPACE_STR(EXTENDED_SRGB_NONLINEAR_EXT);
COLORSPACE_STR(DISPLAY_NATIVE_AMD);
default:
return "unknown";
}
#undef COLORSPACE_STR
}
auto getVkPresentModeString(VkPresentModeKHR mode) noexcept -> std::string_view {
#define PRESENTMODE_STR(NAME) \
case VK_PRESENT_MODE_##NAME: \
return #NAME
switch (mode) {
PRESENTMODE_STR(IMMEDIATE_KHR);
PRESENTMODE_STR(MAILBOX_KHR);
PRESENTMODE_STR(FIFO_KHR);
PRESENTMODE_STR(FIFO_RELAXED_KHR);
PRESENTMODE_STR(SHARED_DEMAND_REFRESH_KHR);
PRESENTMODE_STR(SHARED_CONTINUOUS_REFRESH_KHR);
default:
return "unknown";
}
#undef PRESENTMODE_STR
}
auto getVkSampleCountString(VkSampleCountFlagBits count) noexcept -> std::string_view {
switch (count) {
case VK_SAMPLE_COUNT_1_BIT:
return "X1";
case VK_SAMPLE_COUNT_2_BIT:
return "X2";
case VK_SAMPLE_COUNT_4_BIT:
return "X4";
case VK_SAMPLE_COUNT_8_BIT:
return "X8";
case VK_SAMPLE_COUNT_16_BIT:
return "X16";
case VK_SAMPLE_COUNT_32_BIT:
return "X32";
case VK_SAMPLE_COUNT_64_BIT:
return "X64";
default:
return "unknown";
}
}
auto getVkFormatInfo(VkFormat format) noexcept -> VkFormatInfo {
#define FORMAT_INFO(NAME, SIZE, CHANNEL_COUNT) \
case VK_FORMAT_##NAME: \
return VkFormatInfo { #NAME, SIZE, CHANNEL_COUNT }
switch (format) {
FORMAT_INFO(R4G4_UNORM_PACK8, 1, 2);
FORMAT_INFO(R4G4B4A4_UNORM_PACK16, 2, 4);
FORMAT_INFO(B4G4R4A4_UNORM_PACK16, 2, 4);
FORMAT_INFO(R5G6B5_UNORM_PACK16, 2, 3);
FORMAT_INFO(B5G6R5_UNORM_PACK16, 2, 3);
FORMAT_INFO(R5G5B5A1_UNORM_PACK16, 2, 4);
FORMAT_INFO(B5G5R5A1_UNORM_PACK16, 2, 4);
FORMAT_INFO(A1R5G5B5_UNORM_PACK16, 2, 4);
FORMAT_INFO(R8_UNORM, 1, 1);
FORMAT_INFO(R8_SNORM, 1, 1);
FORMAT_INFO(R8_USCALED, 1, 1);
FORMAT_INFO(R8_SSCALED, 1, 1);
FORMAT_INFO(R8_UINT, 1, 1);
FORMAT_INFO(R8_SINT, 1, 1);
FORMAT_INFO(R8_SRGB, 1, 1);
FORMAT_INFO(R8G8_UNORM, 2, 2);
FORMAT_INFO(R8G8_SNORM, 2, 2);
FORMAT_INFO(R8G8_USCALED, 2, 2);
FORMAT_INFO(R8G8_SSCALED, 2, 2);
FORMAT_INFO(R8G8_UINT, 2, 2);
FORMAT_INFO(R8G8_SINT, 2, 2);
FORMAT_INFO(R8G8_SRGB, 2, 2);
FORMAT_INFO(R8G8B8_UNORM, 3, 3);
FORMAT_INFO(R8G8B8_SNORM, 3, 3);
FORMAT_INFO(R8G8B8_USCALED, 3, 3);
FORMAT_INFO(R8G8B8_SSCALED, 3, 3);
FORMAT_INFO(R8G8B8_UINT, 3, 3);
FORMAT_INFO(R8G8B8_SINT, 3, 3);
FORMAT_INFO(R8G8B8_SRGB, 3, 3);
FORMAT_INFO(B8G8R8_UNORM, 3, 3);
FORMAT_INFO(B8G8R8_SNORM, 3, 3);
FORMAT_INFO(B8G8R8_USCALED, 3, 3);
FORMAT_INFO(B8G8R8_SSCALED, 3, 3);
FORMAT_INFO(B8G8R8_UINT, 3, 3);
FORMAT_INFO(B8G8R8_SINT, 3, 3);
FORMAT_INFO(B8G8R8_SRGB, 3, 3);
FORMAT_INFO(R8G8B8A8_UNORM, 4, 4);
FORMAT_INFO(R8G8B8A8_SNORM, 4, 4);
FORMAT_INFO(R8G8B8A8_USCALED, 4, 4);
FORMAT_INFO(R8G8B8A8_SSCALED, 4, 4);
FORMAT_INFO(R8G8B8A8_UINT, 4, 4);
FORMAT_INFO(R8G8B8A8_SINT, 4, 4);
FORMAT_INFO(R8G8B8A8_SRGB, 4, 4);
FORMAT_INFO(B8G8R8A8_UNORM, 4, 4);
FORMAT_INFO(B8G8R8A8_SNORM, 4, 4);
FORMAT_INFO(B8G8R8A8_USCALED, 4, 4);
FORMAT_INFO(B8G8R8A8_SSCALED, 4, 4);
FORMAT_INFO(B8G8R8A8_UINT, 4, 4);
FORMAT_INFO(B8G8R8A8_SINT, 4, 4);
FORMAT_INFO(B8G8R8A8_SRGB, 4, 4);
FORMAT_INFO(A8B8G8R8_UNORM_PACK32, 4, 4);
FORMAT_INFO(A8B8G8R8_SNORM_PACK32, 4, 4);
FORMAT_INFO(A8B8G8R8_USCALED_PACK32, 4, 4);
FORMAT_INFO(A8B8G8R8_SSCALED_PACK32, 4, 4);
FORMAT_INFO(A8B8G8R8_UINT_PACK32, 4, 4);
FORMAT_INFO(A8B8G8R8_SINT_PACK32, 4, 4);
FORMAT_INFO(A8B8G8R8_SRGB_PACK32, 4, 4);
FORMAT_INFO(A2R10G10B10_UNORM_PACK32, 4, 4);
FORMAT_INFO(A2R10G10B10_SNORM_PACK32, 4, 4);
FORMAT_INFO(A2R10G10B10_USCALED_PACK32, 4, 4);
FORMAT_INFO(A2R10G10B10_SSCALED_PACK32, 4, 4);
FORMAT_INFO(A2R10G10B10_UINT_PACK32, 4, 4);
FORMAT_INFO(A2R10G10B10_SINT_PACK32, 4, 4);
FORMAT_INFO(A2B10G10R10_UNORM_PACK32, 4, 4);
FORMAT_INFO(A2B10G10R10_SNORM_PACK32, 4, 4);
FORMAT_INFO(A2B10G10R10_USCALED_PACK32, 4, 4);
FORMAT_INFO(A2B10G10R10_SSCALED_PACK32, 4, 4);
FORMAT_INFO(A2B10G10R10_UINT_PACK32, 4, 4);
FORMAT_INFO(A2B10G10R10_SINT_PACK32, 4, 4);
FORMAT_INFO(R16_UNORM, 2, 1);
FORMAT_INFO(R16_SNORM, 2, 1);
FORMAT_INFO(R16_USCALED, 2, 1);
FORMAT_INFO(R16_SSCALED, 2, 1);
FORMAT_INFO(R16_UINT, 2, 1);
FORMAT_INFO(R16_SINT, 2, 1);
FORMAT_INFO(R16_SFLOAT, 2, 1);
FORMAT_INFO(R16G16_UNORM, 4, 2);
FORMAT_INFO(R16G16_SNORM, 4, 2);
FORMAT_INFO(R16G16_USCALED, 4, 2);
FORMAT_INFO(R16G16_SSCALED, 4, 2);
FORMAT_INFO(R16G16_UINT, 4, 2);
FORMAT_INFO(R16G16_SINT, 4, 2);
FORMAT_INFO(R16G16_SFLOAT, 4, 2);
FORMAT_INFO(R16G16B16_UNORM, 6, 3);
FORMAT_INFO(R16G16B16_SNORM, 6, 3);
FORMAT_INFO(R16G16B16_USCALED, 6, 3);
FORMAT_INFO(R16G16B16_SSCALED, 6, 3);
FORMAT_INFO(R16G16B16_UINT, 6, 3);
FORMAT_INFO(R16G16B16_SINT, 6, 3);
FORMAT_INFO(R16G16B16_SFLOAT, 6, 3);
FORMAT_INFO(R16G16B16A16_UNORM, 8, 4);
FORMAT_INFO(R16G16B16A16_SNORM, 8, 4);
FORMAT_INFO(R16G16B16A16_USCALED, 8, 4);
FORMAT_INFO(R16G16B16A16_SSCALED, 8, 4);
FORMAT_INFO(R16G16B16A16_UINT, 8, 4);
FORMAT_INFO(R16G16B16A16_SINT, 8, 4);
FORMAT_INFO(R16G16B16A16_SFLOAT, 8, 4);
FORMAT_INFO(R32_UINT, 4, 1);
FORMAT_INFO(R32_SINT, 4, 1);
FORMAT_INFO(R32_SFLOAT, 4, 1);
FORMAT_INFO(R32G32_UINT, 8, 2);
FORMAT_INFO(R32G32_SINT, 8, 2);
FORMAT_INFO(R32G32_SFLOAT, 8, 2);
FORMAT_INFO(R32G32B32_UINT, 2, 3);
FORMAT_INFO(R32G32B32_SINT, 2, 3);
FORMAT_INFO(R32G32B32_SFLOAT, 2, 3);
FORMAT_INFO(R32G32B32A32_UINT, 6, 4);
FORMAT_INFO(R32G32B32A32_SINT, 6, 4);
FORMAT_INFO(R32G32B32A32_SFLOAT, 6, 4);
FORMAT_INFO(R64_UINT, 8, 1);
FORMAT_INFO(R64_SINT, 8, 1);
FORMAT_INFO(R64_SFLOAT, 8, 1);
FORMAT_INFO(R64G64_UINT, 6, 2);
FORMAT_INFO(R64G64_SINT, 6, 2);
FORMAT_INFO(R64G64_SFLOAT, 6, 2);
FORMAT_INFO(R64G64B64_UINT, 4, 3);
FORMAT_INFO(R64G64B64_SINT, 4, 3);
FORMAT_INFO(R64G64B64_SFLOAT, 4, 3);
FORMAT_INFO(R64G64B64A64_UINT, 2, 4);
FORMAT_INFO(R64G64B64A64_SINT, 2, 4);
FORMAT_INFO(R64G64B64A64_SFLOAT, 2, 4);
FORMAT_INFO(B10G11R11_UFLOAT_PACK32, 4, 3);
FORMAT_INFO(E5B9G9R9_UFLOAT_PACK32, 4, 3);
FORMAT_INFO(D16_UNORM, 2, 1);
FORMAT_INFO(X8_D24_UNORM_PACK32, 4, 1);
FORMAT_INFO(D32_SFLOAT, 4, 1);
FORMAT_INFO(S8_UINT, 1, 1);
FORMAT_INFO(D16_UNORM_S8_UINT, 3, 2);
FORMAT_INFO(D24_UNORM_S8_UINT, 4, 2);
FORMAT_INFO(D32_SFLOAT_S8_UINT, 8, 2);
FORMAT_INFO(BC1_RGB_UNORM_BLOCK, 8, 4);
FORMAT_INFO(BC1_RGB_SRGB_BLOCK, 8, 4);
FORMAT_INFO(BC1_RGBA_UNORM_BLOCK, 8, 4);
FORMAT_INFO(BC1_RGBA_SRGB_BLOCK, 8, 4);
FORMAT_INFO(BC2_UNORM_BLOCK, 6, 4);
FORMAT_INFO(BC2_SRGB_BLOCK, 6, 4);
FORMAT_INFO(BC3_UNORM_BLOCK, 6, 4);
FORMAT_INFO(BC3_SRGB_BLOCK, 6, 4);
FORMAT_INFO(BC4_UNORM_BLOCK, 8, 4);
FORMAT_INFO(BC4_SNORM_BLOCK, 8, 4);
FORMAT_INFO(BC5_UNORM_BLOCK, 6, 4);
FORMAT_INFO(BC5_SNORM_BLOCK, 6, 4);
FORMAT_INFO(BC6H_UFLOAT_BLOCK, 6, 4);
FORMAT_INFO(BC6H_SFLOAT_BLOCK, 6, 4);
FORMAT_INFO(BC7_UNORM_BLOCK, 6, 4);
FORMAT_INFO(BC7_SRGB_BLOCK, 6, 4);
FORMAT_INFO(ETC2_R8G8B8_UNORM_BLOCK, 8, 3);
FORMAT_INFO(ETC2_R8G8B8_SRGB_BLOCK, 8, 3);
FORMAT_INFO(ETC2_R8G8B8A1_UNORM_BLOCK, 8, 4);
FORMAT_INFO(ETC2_R8G8B8A1_SRGB_BLOCK, 8, 4);
FORMAT_INFO(ETC2_R8G8B8A8_UNORM_BLOCK, 6, 4);
FORMAT_INFO(ETC2_R8G8B8A8_SRGB_BLOCK, 6, 4);
FORMAT_INFO(EAC_R11_UNORM_BLOCK, 8, 1);
FORMAT_INFO(EAC_R11_SNORM_BLOCK, 8, 1);
FORMAT_INFO(EAC_R11G11_UNORM_BLOCK, 6, 2);
FORMAT_INFO(EAC_R11G11_SNORM_BLOCK, 6, 2);
FORMAT_INFO(ASTC_4x4_UNORM_BLOCK, 6, 4);
FORMAT_INFO(ASTC_4x4_SRGB_BLOCK, 6, 4);
FORMAT_INFO(ASTC_5x4_UNORM_BLOCK, 6, 4);
FORMAT_INFO(ASTC_5x4_SRGB_BLOCK, 6, 4);
FORMAT_INFO(ASTC_5x5_UNORM_BLOCK, 6, 4);
FORMAT_INFO(ASTC_5x5_SRGB_BLOCK, 6, 4);
FORMAT_INFO(ASTC_6x5_UNORM_BLOCK, 6, 4);
FORMAT_INFO(ASTC_6x5_SRGB_BLOCK, 6, 4);
FORMAT_INFO(ASTC_6x6_UNORM_BLOCK, 6, 4);
FORMAT_INFO(ASTC_6x6_SRGB_BLOCK, 6, 4);
FORMAT_INFO(ASTC_8x5_UNORM_BLOCK, 6, 4);
FORMAT_INFO(ASTC_8x5_SRGB_BLOCK, 6, 4);
FORMAT_INFO(ASTC_8x6_UNORM_BLOCK, 6, 4);
FORMAT_INFO(ASTC_8x6_SRGB_BLOCK, 6, 4);
FORMAT_INFO(ASTC_8x8_UNORM_BLOCK, 6, 4);
FORMAT_INFO(ASTC_8x8_SRGB_BLOCK, 6, 4);
FORMAT_INFO(ASTC_10x5_UNORM_BLOCK, 6, 4);
FORMAT_INFO(ASTC_10x5_SRGB_BLOCK, 6, 4);
FORMAT_INFO(ASTC_10x6_UNORM_BLOCK, 6, 4);
FORMAT_INFO(ASTC_10x6_SRGB_BLOCK, 6, 4);
FORMAT_INFO(ASTC_10x8_UNORM_BLOCK, 6, 4);
FORMAT_INFO(ASTC_10x8_SRGB_BLOCK, 6, 4);
FORMAT_INFO(ASTC_10x10_UNORM_BLOCK, 6, 4);
FORMAT_INFO(ASTC_10x10_SRGB_BLOCK, 6, 4);
FORMAT_INFO(ASTC_12x10_UNORM_BLOCK, 6, 4);
FORMAT_INFO(ASTC_12x10_SRGB_BLOCK, 6, 4);
FORMAT_INFO(ASTC_12x12_UNORM_BLOCK, 6, 4);
FORMAT_INFO(ASTC_12x12_SRGB_BLOCK, 6, 4);
FORMAT_INFO(PVRTC1_2BPP_UNORM_BLOCK_IMG, 8, 4);
FORMAT_INFO(PVRTC1_4BPP_UNORM_BLOCK_IMG, 8, 4);
FORMAT_INFO(PVRTC2_2BPP_UNORM_BLOCK_IMG, 8, 4);
FORMAT_INFO(PVRTC2_4BPP_UNORM_BLOCK_IMG, 8, 4);
FORMAT_INFO(PVRTC1_2BPP_SRGB_BLOCK_IMG, 8, 4);
FORMAT_INFO(PVRTC1_4BPP_SRGB_BLOCK_IMG, 8, 4);
FORMAT_INFO(PVRTC2_2BPP_SRGB_BLOCK_IMG, 8, 4);
FORMAT_INFO(PVRTC2_4BPP_SRGB_BLOCK_IMG, 8, 4);
FORMAT_INFO(R10X6_UNORM_PACK16, 2, 1);
FORMAT_INFO(R10X6G10X6_UNORM_2PACK16, 4, 2);
FORMAT_INFO(R10X6G10X6B10X6A10X6_UNORM_4PACK16, 8, 4);
FORMAT_INFO(R12X4_UNORM_PACK16, 2, 1);
FORMAT_INFO(R12X4G12X4_UNORM_2PACK16, 4, 2);
FORMAT_INFO(R12X4G12X4B12X4A12X4_UNORM_4PACK16, 8, 4);
FORMAT_INFO(G8B8G8R8_422_UNORM, 4, 4);
FORMAT_INFO(B8G8R8G8_422_UNORM, 4, 4);
FORMAT_INFO(G10X6B10X6G10X6R10X6_422_UNORM_4PACK16, 8, 4);
FORMAT_INFO(B10X6G10X6R10X6G10X6_422_UNORM_4PACK16, 8, 4);
FORMAT_INFO(G12X4B12X4G12X4R12X4_422_UNORM_4PACK16, 8, 4);
FORMAT_INFO(B12X4G12X4R12X4G12X4_422_UNORM_4PACK16, 8, 4);
FORMAT_INFO(G16B16G16R16_422_UNORM, 8, 4);
FORMAT_INFO(B16G16R16G16_422_UNORM, 8, 4);
FORMAT_INFO(G8_B8_R8_3PLANE_420_UNORM, 6, 3);
FORMAT_INFO(G8_B8R8_2PLANE_420_UNORM, 6, 3);
FORMAT_INFO(G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16, 2, 3);
FORMAT_INFO(G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16, 2, 3);
FORMAT_INFO(G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16, 2, 3);
FORMAT_INFO(G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16, 2, 3);
FORMAT_INFO(G16_B16_R16_3PLANE_420_UNORM, 2, 3);
FORMAT_INFO(G16_B16R16_2PLANE_420_UNORM, 2, 3);
FORMAT_INFO(G8_B8_R8_3PLANE_422_UNORM, 4, 3);
FORMAT_INFO(G8_B8R8_2PLANE_422_UNORM, 4, 3);
FORMAT_INFO(G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16, 8, 3);
FORMAT_INFO(G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16, 8, 3);
FORMAT_INFO(G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16, 8, 3);
FORMAT_INFO(G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16, 8, 3);
FORMAT_INFO(G16_B16_R16_3PLANE_422_UNORM, 8, 3);
FORMAT_INFO(G16_B16R16_2PLANE_422_UNORM, 8, 3);
FORMAT_INFO(G8_B8_R8_3PLANE_444_UNORM, 3, 3);
FORMAT_INFO(G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16, 6, 3);
FORMAT_INFO(G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16, 6, 3);
FORMAT_INFO(G16_B16_R16_3PLANE_444_UNORM, 6, 3);
default:
return VkFormatInfo{"uknown", 0U, 0U};
}
#undef FORMAT_INFO
}
} // namespace tria::gfx::internal
|
; unsigned char esx_ide_mode_set(struct esx_mode *mode)
INCLUDE "config_private.inc"
SECTION code_esxdos
PUBLIC asm_esx_ide_mode_set
EXTERN l_esx_ide_mode_get
asm_esx_ide_mode_set:
; enter : hl = struct esx_mode *mode
;
; exit : success
;
; hl = 0
; carry reset
;
; fail
;
; hl = -1
; carry set, errno = nextzxos error code
;
; uses : all except af', iy
push hl
ld c,(hl) ; submode
inc hl
ld b,(hl) ; layer
ld a,1 ; set
jp l_esx_ide_mode_get
|
; A203994: Symmetric matrix based on f(i,j) = (i+j)*min{i,j}, by antidiagonals.
; 1,0,0,-1,1,-1,-2,0,0,-2,-3,-1,1,-1,-3,-4,-2,0,0,-2,-4,-5,-3,-1,1,-1,-3,-5,-6,-4,-2,0,0,-2,-4,-6,-7,-5,-3,-1,1,-1,-3,-5,-7,-8,-6,-4,-2,0,0,-2,-4,-6,-8,-9,-7,-5,-3,-1,1,-1,-3,-5,-7,-9,-10,-8,-6,-4,-2,0,0,-2,-4,-6,-8,-10,-11,-9,-7,-5,-3,-1,1,-1,-3,-5,-7,-9,-11,-12,-10,-8,-6,-4,-2,0,0,-2,-4,-6,-8,-10,-12,-13,-11,-9,-7,-5,-3,-1,1,-1,-3,-5,-7,-9,-11,-13,-14,-12,-10,-8,-6,-4,-2,0,0,-2,-4,-6,-8,-10,-12,-14,-15,-13,-11,-9,-7,-5,-3,-1,1,-1,-3,-5,-7,-9,-11,-13,-15,-16,-14,-12,-10,-8,-6,-4,-2,0,0,-2,-4,-6,-8,-10,-12,-14,-16,-17,-15,-13,-11,-9,-7,-5,-3,-1,1,-1,-3,-5,-7,-9,-11,-13,-15,-17,-18,-16,-14,-12,-10,-8,-6,-4,-2,0,0,-2,-4,-6,-8,-10,-12,-14,-16,-18,-19,-17,-15,-13,-11,-9,-7,-5,-3,-1,1,-1,-3,-5,-7,-9,-11,-13,-15,-17,-19,-20,-18,-16,-14,-12,-10,-8,-6,-4,-2,0,0,-2,-4,-6,-8,-10,-12,-14
mov $3,$0
cal $3,143182 ; Triangle T(n,m) = 1 + abs(n-2*m), read by rows, 0<=m<=n.
mov $1,1
sub $3,2
mov $2,$3
add $2,$3
sub $1,$2
sub $1,1
div $1,2
|
; A017768: Binomial coefficients C(52,n).
; 1,52,1326,22100,270725,2598960,20358520,133784560,752538150,3679075400,15820024220,60403728840,206379406870,635013559600,1768966344600,4481381406320,10363194502115,21945588357420,42671977361650,76360380541900,125994627894135,191991813933920,270533919634160,352870329957600,426384982032100,477551179875952,495918532948104,477551179875952,426384982032100,352870329957600,270533919634160,191991813933920,125994627894135,76360380541900,42671977361650,21945588357420,10363194502115,4481381406320,1768966344600,635013559600,206379406870,60403728840,15820024220,3679075400,752538150,133784560,20358520,2598960,270725,22100,1326,52,1
mov $1,52
bin $1,$0
mov $0,$1
|
#ifndef MANUALMAPPER_HPP
#define MANUALMAPPER_HPP
#include <TlHelp32.h>
#include <Windows.h>
#include <cstdio>
#include <fstream>
namespace injector
{
__int32 GetProcessId(const char* processname)
{
PROCESSENTRY32 Entry;
Entry.dwSize = sizeof PROCESSENTRY32;
HANDLE Snapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
if (!Process32First(Snapshot, &Entry)) {
return 0;
}
while (Process32Next(Snapshot, &Entry)) {
if (strcmp(Entry.szExeFile, processname) == 0) {
return (int)Entry.th32ProcessID;
}
}
return 0;
}
__int8* ImagePathToBuffer(const char* path)
{
__int8* ReturnBuffer = nullptr;
std::ifstream FileStream(path, std::ifstream::binary);
if (FileStream) {
FileStream.seekg(0, FileStream.end);
__int64 SizeOfImage = FileStream.tellg();
FileStream.seekg(0, FileStream.beg);
ReturnBuffer = new __int8[SizeOfImage];
if (!ReturnBuffer) {
return nullptr;
}
FileStream.read(ReturnBuffer, SizeOfImage);
}
return ReturnBuffer;
}
class ManualMap
{
public:
ManualMap(const char* path, const char* processname)
{
__int8* ImageBuffer = injector::ImagePathToBuffer(path);
ManualMap(ImageBuffer, processname);
}
ManualMap(__int8* imagebuffer, const char* processname)
{
__int32 ProcessId = injector::GetProcessId(processname);
if (!ProcessId) {
printf("> invalid pid\n");
return;
} printf("> located pid %x : %s\n", ProcessId, processname);
HANDLE ProcessHandle = OpenProcess(PROCESS_ALL_ACCESS, false, ProcessId);
if (ProcessHandle == INVALID_HANDLE_VALUE) {
printf("> invalid hanlde value\n");
return;
} printf("> opened handle to target process %p\n", ProcessHandle);
PIMAGE_DOS_HEADER DosHeader = (PIMAGE_DOS_HEADER)imagebuffer;
if (DosHeader->e_magic != IMAGE_DOS_SIGNATURE) {
printf("> invalid image dos signature\n");
return;
}
PIMAGE_NT_HEADERS NtHeaders = (PIMAGE_NT_HEADERS)(imagebuffer + DosHeader->e_lfanew);
__int64 SizeOfImage = NtHeaders->OptionalHeader.SizeOfImage;
void* Allocbase = VirtualAlloc(nullptr, SizeOfImage, MEM_RESERVE | MEM_COMMIT, PAGE_EXECUTE_READWRITE);
if (!Allocbase) {
printf("> failed to allocate buffer to store new mapped image\n");
return;
}
memcpy(Allocbase, imagebuffer, NtHeaders->OptionalHeader.SizeOfHeaders);
PIMAGE_SECTION_HEADER SectionHeader = IMAGE_FIRST_SECTION(NtHeaders);
for (__int32 Idx = 0; Idx < NtHeaders->FileHeader.NumberOfSections; Idx++, SectionHeader++) {
void* SectionBase = (void*)((__int64)Allocbase + SectionHeader->VirtualAddress);
void* Source = (void*)(imagebuffer + SectionHeader->PointerToRawData);
memcpy(SectionBase, Source, SectionHeader->SizeOfRawData);
} printf("> copied sections\n");
PIMAGE_IMPORT_DESCRIPTOR ImportDescriptor = (PIMAGE_IMPORT_DESCRIPTOR)((__int64)Allocbase + NtHeaders->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_IMPORT].VirtualAddress);
if (!ImportDescriptor) {
printf("> import descriptor is null\n");
return;
}
while (ImportDescriptor->Name) {
const char* ModuleName = (const char*)((__int64)Allocbase + ImportDescriptor->Name);
HMODULE ModuleBaseAddress = LoadLibraryA(ModuleName);
if (!ModuleBaseAddress) {
return;
}
PIMAGE_THUNK_DATA FirstThunkData = (PIMAGE_THUNK_DATA)((__int64)Allocbase + ImportDescriptor->FirstThunk);
PIMAGE_THUNK_DATA OriginalFirstThunkData = (PIMAGE_THUNK_DATA)((__int64)Allocbase + ImportDescriptor->OriginalFirstThunk);
if (!OriginalFirstThunkData && !FirstThunkData) {
return;
}
__int64 FunctionAddress = 0;
while (OriginalFirstThunkData->u1.AddressOfData) {
const char* FunctionName = "";
if (IMAGE_SNAP_BY_ORDINAL(OriginalFirstThunkData->u1.Ordinal)) {
FunctionName = (const char*)(LOWORD(OriginalFirstThunkData->u1.Ordinal));
FunctionAddress = (__int64)(GetProcAddress(ModuleBaseAddress, FunctionName));
}
else {
PIMAGE_IMPORT_BY_NAME ImportByName = (PIMAGE_IMPORT_BY_NAME)((__int64)Allocbase + OriginalFirstThunkData->u1.AddressOfData);
FunctionName = ImportByName->Name;
FunctionAddress = (__int64)GetProcAddress(ModuleBaseAddress, ImportByName->Name);
}
if (FunctionAddress) {
FirstThunkData->u1.Function = FunctionAddress;
}
else {
printf("> failed to locate imported functions exported address\n");
return;
}
OriginalFirstThunkData++;
FirstThunkData++;
}
ImportDescriptor++;
} printf("> resolved imports\n");
__int64 ImageBase = NtHeaders->OptionalHeader.ImageBase;
void* RemoteAllocBase = VirtualAllocEx(ProcessHandle, (void*)imagebuffer, SizeOfImage, MEM_RESERVE | MEM_COMMIT, PAGE_EXECUTE_READWRITE);
if (!RemoteAllocBase) {
RemoteAllocBase = VirtualAllocEx(ProcessHandle, nullptr, SizeOfImage, MEM_RESERVE | MEM_COMMIT, PAGE_EXECUTE_READWRITE);
if (!RemoteAllocBase) {
printf("> failed to allocate memory in target process\n");
return;
}
PIMAGE_BASE_RELOCATION BaseRelocation = (PIMAGE_BASE_RELOCATION)imagebuffer + NtHeaders->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_BASERELOC].VirtualAddress;
if (BaseRelocation) {
return;
}
__int64 RelocationDelta = 0;
if ((__int64)RemoteAllocBase < ImageBase) {
RelocationDelta = NtHeaders->OptionalHeader.ImageBase - (__int64)RemoteAllocBase;
}
else {
RelocationDelta = (__int64)RemoteAllocBase - NtHeaders->OptionalHeader.ImageBase;
}
while (BaseRelocation->VirtualAddress) {
__int32 RelocationEntryCount = BaseRelocation->SizeOfBlock - sizeof(PIMAGE_BASE_RELOCATION) / sizeof(__int16);
__int16* Entry = (__int16*)(BaseRelocation + 1);
for (__int32 Idx = 0; Idx = RelocationEntryCount; Idx++) {
if (Entry[Idx] >> 0x0C == IMAGE_REL_BASED_DIR64) {
__int64 OffsetToRelocation = ((__int64)imagebuffer + BaseRelocation->VirtualAddress + (Entry[Idx] & 0xFFF));
*(__int64*)OffsetToRelocation += RelocationDelta;
}
Entry++;
}
BaseRelocation = (PIMAGE_BASE_RELOCATION)(BaseRelocation + BaseRelocation->SizeOfBlock);
}
printf("> resolved imports\n");
}
else {
printf("> relocations do not need relocating (skipping)\n");
}
SIZE_T BytesWritten = 0;
if (!WriteProcessMemory(ProcessHandle, RemoteAllocBase, Allocbase, SizeOfImage, &BytesWritten)) {
printf("> failed to write mapped image into target process\n");
return;
} printf("> written mapped image into target process\n");
printf("> creating remote thread to call image entry\n");
CreateRemoteThread(ProcessHandle, 0, 0, (LPTHREAD_START_ROUTINE)((__int64)RemoteAllocBase + NtHeaders->OptionalHeader.AddressOfEntryPoint), 0, 0, 0);
}
};
}
#endif |
; A048763: Smallest cube >= n.
; 0,1,8,8,8,8,8,8,8,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,216,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343,343
lpb $0
sub $0,1
add $2,6
add $4,1
add $3,$4
sub $4,1
trn $0,$4
add $4,$2
lpe
add $0,$3
mov $1,$0
|
; A264788: a(n) is the number of circles added at n-th iteration of the pattern starting with 2 circles. (See comment.)
; 2,2,4,4,6,10,10,12,16,16,18,22,22,24,28,28,30,34,34,36,40,40,42,46,46,48,52,52,54,58,58,60,64,64,66,70,70,72,76,76,78,82,82,84,88,88,90,94,94,96,100,100,102,106,106,108,112,112,114,118,118,120,124,124,126,130,130,132,136,136,138,142,142,144,148,148,150,154,154,156,160,160,162,166,166,168,172,172,174,178,178,180,184,184,186,190,190,192,196,196
mul $0,2
sub $0,1
div $0,3
mul $0,3
sub $0,1
div $0,2
mul $0,2
add $0,2
|
; A001019: Powers of 9: a(n) = 9^n.
; 1,9,81,729,6561,59049,531441,4782969,43046721,387420489,3486784401,31381059609,282429536481,2541865828329,22876792454961,205891132094649,1853020188851841,16677181699666569,150094635296999121,1350851717672992089,12157665459056928801,109418989131512359209,984770902183611232881,8862938119652501095929,79766443076872509863361,717897987691852588770249,6461081889226673298932241,58149737003040059690390169,523347633027360537213511521,4710128697246244834921603689,42391158275216203514294433201,381520424476945831628649898809,3433683820292512484657849089281,30903154382632612361920641803529,278128389443693511257285776231761,2503155504993241601315571986085849,22528399544939174411840147874772641,202755595904452569706561330872953769
mov $1,9
pow $1,$0
mov $0,$1
|
TITLE BdDebug.asm - Buffer Descriptor Debugging Routines
COMMENT \
--------- --- ---- -- ---------- ----
COPYRIGHT (C) 1985 BY MICROSOFT, INC.
--------- --- ---- -- ---------- ----
\
;============================================================================
; Module: BdDebug.asm - Buffer Descriptor Debugging Routines
;
; System: Quick BASIC Interpreter
;
;============================================================================
.xlist
include version.inc
BDDEBUG_ASM = ON
includeOnce architec
includeOnce heap
includeOnce util
includeOnce rttemp
includeOnce context
.list
; .sall
end
|
naken_util - by Michael Kohn
Joe Davisson
Web: http://www.mikekohn.net/
Email: mike@mikekohn.net
Version: October 30, 2017
Loaded hexfile E_W_ROUTINEs_128K_ver_2.4.hex from 0x00a0 to 0x01ff
Type help for a list of commands.
Addr Opcode Instruction Cycles
------- ------ ---------------------------------- ------
0x00a0: 5f clrw X cycles=1
0x00a1: 3f 90 clr $90 cycles=1
0x00a3: 3f 9b clr $9b cycles=1
0x00a5: 72 09 00 8e 16 btjf $8e, #4, $c0 (offset=22) cycles=2-3
0x00aa: cd 60 8a call $608a cycles=4
0x00ad: b6 90 ld A, $90 cycles=1
0x00af: e7 00 ld ($00,X),A cycles=1
0x00b1: 5c incw X cycles=1
0x00b2: 4c inc A cycles=1
0x00b3: b7 90 ld $90,A cycles=1
0x00b5: a1 82 cp A, #$82 cycles=1
0x00b7: 26 f1 jrne $aa (offset=-15) cycles=1-2
0x00b9: a6 81 ld A, #$81 cycles=1
0x00bb: b7 88 ld $88,A cycles=1
0x00bd: 5f clrw X cycles=1
0x00be: 3f 90 clr $90 cycles=1
0x00c0: e6 00 ld A, ($00,X) cycles=1
0x00c2: a1 80 cp A, #$80 cycles=1
0x00c4: 26 07 jrne $cd (offset=7) cycles=1-2
0x00c6: 3f 8a clr $8a cycles=1
0x00c8: ae 40 00 ldw X, #$4000 cycles=2
0x00cb: 20 3d jra $10a (offset=61) cycles=2
0x00cd: a1 81 cp A, #$81 cycles=1
0x00cf: 26 07 jrne $d8 (offset=7) cycles=1-2
0x00d1: 3f 8a clr $8a cycles=1
0x00d3: ae 44 00 ldw X, #$4400 cycles=2
0x00d6: 20 32 jra $10a (offset=50) cycles=2
0x00d8: a1 20 cp A, #$20 cycles=1
0x00da: 24 0e jrnc $ea (offset=14) cycles=1-2
0x00dc: 3f 8a clr $8a cycles=1
0x00de: ae 00 80 ldw X, #$80 cycles=2
0x00e1: 42 mul X, A cycles=4
0x00e2: 58 sllw X cycles=2
0x00e3: 58 sllw X cycles=2
0x00e4: 58 sllw X cycles=2
0x00e5: 1c 80 00 addw X, #$8000 cycles=2
0x00e8: 20 20 jra $10a (offset=32) cycles=2
0x00ea: a1 60 cp A, #$60 cycles=1
0x00ec: 24 0f jrnc $fd (offset=15) cycles=1-2
0x00ee: a0 20 sub A, #$20 cycles=1
0x00f0: ae 00 80 ldw X, #$80 cycles=2
0x00f3: 42 mul X, A cycles=4
0x00f4: 58 sllw X cycles=2
0x00f5: 58 sllw X cycles=2
0x00f6: 58 sllw X cycles=2
0x00f7: a6 01 ld A, #$01 cycles=1
0x00f9: b7 8a ld $8a,A cycles=1
0x00fb: 20 0d jra $10a (offset=13) cycles=2
0x00fd: a0 60 sub A, #$60 cycles=1
0x00ff: ae 00 80 ldw X, #$80 cycles=2
0x0102: 42 mul X, A cycles=4
0x0103: 58 sllw X cycles=2
0x0104: 58 sllw X cycles=2
0x0105: 58 sllw X cycles=2
0x0106: a6 02 ld A, #$02 cycles=1
0x0108: b7 8a ld $8a,A cycles=1
0x010a: 90 5f clrw Y cycles=1
0x010c: cd 60 8a call $608a cycles=4
0x010f: 9e ld A, XH cycles=1
0x0110: b7 8b ld $8b,A cycles=1
0x0112: 9f ld A, XL cycles=1
0x0113: b7 8c ld $8c,A cycles=1
0x0115: a6 20 ld A, #$20 cycles=1
0x0117: c7 50 5b ld $505b,A cycles=1
0x011a: 43 cpl A cycles=1
0x011b: c7 50 5c ld $505c,A cycles=1
0x011e: 4f clr A cycles=1
0x011f: 92 bd 00 8a ldf [$8a.e],A cycles=4
0x0123: 5c incw X cycles=1
0x0124: 9f ld A, XL cycles=1
0x0125: b7 8c ld $8c,A cycles=1
0x0127: 4f clr A cycles=1
0x0128: 92 bd 00 8a ldf [$8a.e],A cycles=4
0x012c: 5c incw X cycles=1
0x012d: 9f ld A, XL cycles=1
0x012e: b7 8c ld $8c,A cycles=1
0x0130: 4f clr A cycles=1
0x0131: 92 bd 00 8a ldf [$8a.e],A cycles=4
0x0135: 5c incw X cycles=1
0x0136: 9f ld A, XL cycles=1
0x0137: b7 8c ld $8c,A cycles=1
0x0139: 4f clr A cycles=1
0x013a: 92 bd 00 8a ldf [$8a.e],A cycles=4
0x013e: 72 00 50 5f 07 btjt $505f, #0, $14a (offset=7) cycles=2-3
0x0143: 72 05 50 5f fb btjf $505f, #2, $143 (offset=-5) cycles=2-3
0x0148: 20 04 jra $14e (offset=4) cycles=2
0x014a: 72 10 00 9b bset $9b, #0 cycles=1
0x014e: 90 a3 00 07 cpw Y, #$7 cycles=2
0x0152: 27 0a jreq $15e (offset=10) cycles=1-2
0x0154: 90 5c incw Y cycles=1
0x0156: 1d 00 03 subw X, #$3 cycles=2
0x0159: 1c 00 80 addw X, #$80 cycles=2
0x015c: 20 ae jra $10c (offset=-82) cycles=2
0x015e: b6 90 ld A, $90 cycles=1
0x0160: b1 88 cp A, $88 cycles=1
0x0162: 27 1b jreq $17f (offset=27) cycles=1-2
0x0164: 5f clrw X cycles=1
0x0165: 3c 90 inc $90 cycles=1
0x0167: b6 90 ld A, $90 cycles=1
0x0169: 97 ld XL, A cycles=1
0x016a: cc 00 c0 jp $c0 cycles=1
0x016d: 9d nop cycles=1
0x016e: 9d nop cycles=1
0x016f: 9d nop cycles=1
0x0170: 9d nop cycles=1
0x0171: 9d nop cycles=1
0x0172: 9d nop cycles=1
0x0173: 9d nop cycles=1
0x0174: 9d nop cycles=1
0x0175: 9d nop cycles=1
0x0176: 9d nop cycles=1
0x0177: 9d nop cycles=1
0x0178: 9d nop cycles=1
0x0179: 9d nop cycles=1
0x017a: 9d nop cycles=1
0x017b: 9d nop cycles=1
0x017c: 9d nop cycles=1
0x017d: 9d nop cycles=1
0x017e: 9d nop cycles=1
0x017f: 81 ret cycles=4
0x0180: cd 60 8a call $608a cycles=4
0x0183: 5f clrw X cycles=1
0x0184: 3f 9c clr $9c cycles=1
0x0186: 72 0d 00 8e 18 btjf $8e, #6, $1a3 (offset=24) cycles=2-3
0x018b: 72 00 00 98 0b btjt $98, #0, $19b (offset=11) cycles=2-3
0x0190: a6 01 ld A, #$01 cycles=1
0x0192: c7 50 5b ld $505b,A cycles=1
0x0195: 43 cpl A cycles=1
0x0196: c7 50 5c ld $505c,A cycles=1
0x0199: 20 08 jra $1a3 (offset=8) cycles=2
0x019b: 35 81 50 5b mov $505b, #$81 cycles=1
0x019f: 35 7e 50 5c mov $505c, #$7e cycles=1
0x01a3: 3f 98 clr $98 cycles=1
0x01a5: f6 ld A, (X) cycles=1
0x01a6: 92 a7 00 8a ldf ([$8a.e],X),A cycles=4
0x01aa: 72 0c 00 8e 13 btjt $8e, #6, $1c2 (offset=19) cycles=2-3
0x01af: 72 00 50 5f 07 btjt $505f, #0, $1bb (offset=7) cycles=2-3
0x01b4: 72 05 50 5f fb btjf $505f, #2, $1b4 (offset=-5) cycles=2-3
0x01b9: 20 04 jra $1bf (offset=4) cycles=2
0x01bb: 72 10 00 9c bset $9c, #0 cycles=1
0x01bf: cd 60 8a call $608a cycles=4
0x01c2: 9f ld A, XL cycles=1
0x01c3: b1 88 cp A, $88 cycles=1
0x01c5: 27 03 jreq $1ca (offset=3) cycles=1-2
0x01c7: 5c incw X cycles=1
0x01c8: 20 db jra $1a5 (offset=-37) cycles=2
0x01ca: 72 0d 00 8e 10 btjf $8e, #6, $1df (offset=16) cycles=2-3
0x01cf: 72 00 50 5f 07 btjt $505f, #0, $1db (offset=7) cycles=2-3
0x01d4: 72 05 50 5f fb btjf $505f, #2, $1d4 (offset=-5) cycles=2-3
0x01d9: 20 24 jra $1ff (offset=36) cycles=2
0x01db: 72 10 00 9c bset $9c, #0 cycles=1
0x01df: 20 1e jra $1ff (offset=30) cycles=2
0x01e1: 9d nop cycles=1
0x01e2: 9d nop cycles=1
0x01e3: 9d nop cycles=1
0x01e4: 9d nop cycles=1
0x01e5: 9d nop cycles=1
0x01e6: 9d nop cycles=1
0x01e7: 9d nop cycles=1
0x01e8: 9d nop cycles=1
0x01e9: 9d nop cycles=1
0x01ea: 9d nop cycles=1
0x01eb: 9d nop cycles=1
0x01ec: 9d nop cycles=1
0x01ed: 9d nop cycles=1
0x01ee: 9d nop cycles=1
0x01ef: 9d nop cycles=1
0x01f0: 9d nop cycles=1
0x01f1: 9d nop cycles=1
0x01f2: 9d nop cycles=1
0x01f3: 9d nop cycles=1
0x01f4: 9d nop cycles=1
0x01f5: 9d nop cycles=1
0x01f6: 9d nop cycles=1
0x01f7: 9d nop cycles=1
0x01f8: 9d nop cycles=1
0x01f9: 9d nop cycles=1
0x01fa: 9d nop cycles=1
0x01fb: 9d nop cycles=1
0x01fc: 9d nop cycles=1
0x01fd: 9d nop cycles=1
0x01fe: 9d nop cycles=1
0x01ff: 81 ret cycles=4
|
; A281746: Nonnegative numbers k such that k == 0 (mod 3) or k == 0 (mod 5).
; 0,3,5,6,9,10,12,15,18,20,21,24,25,27,30,33,35,36,39,40,42,45,48,50,51,54,55,57,60,63,65,66,69,70,72,75,78,80,81,84,85,87,90,93,95,96,99,100,102,105,108,110,111,114,115,117,120,123,125,126,129,130,132,135,138,140,141,144,145,147,150,153,155,156,159,160,162,165,168,170,171,174,175,177,180,183,185,186,189,190,192,195,198,200,201,204,205,207,210,213,215,216,219,220,222,225,228,230,231,234,235,237,240,243,245,246,249,250,252,255,258,260,261,264,265,267,270,273,275,276,279,280,282,285,288,290,291,294,295,297,300,303,305,306,309,310,312,315,318,320,321,324,325,327,330,333,335,336,339,340,342,345,348,350,351,354,355,357,360,363,365,366,369,370,372,375,378,380,381,384,385,387,390,393,395,396,399,400,402,405,408,410,411,414,415,417,420,423,425,426,429,430,432,435,438,440,441,444,445,447,450,453,455,456,459,460,462,465,468,470,471,474,475,477,480,483,485,486,489,490,492,495,498,500,501,504,505,507,510,513,515,516,519,520,522,525,528,530,531,534
mov $3,$0
mov $9,$0
lpb $3
mov $0,$9
sub $3,1
sub $0,$3
mov $2,$0
mov $4,2
mov $5,4
mov $6,4
mov $7,3
add $7,$0
sub $7,2
lpb $2
add $6,$7
lpb $4
sub $4,1
add $5,1
add $6,8
mov $8,1
lpe
mov $7,7
lpb $5
mov $2,$0
mod $2,7
sub $2,$8
add $7,$6
sub $7,$5
sub $5,$8
lpe
lpb $6
add $2,1
mov $6,8
div $7,2
lpe
mov $0,3
mul $0,$7
trn $2,1
mov $4,5
sub $4,$2
mov $6,$5
mov $5,10
lpe
mov $7,$4
sub $7,2
add $1,$7
lpe
|
; A008817: Expansion of (1+x^10)/((1-x)^2*(1-x^10)).
; 1,2,3,4,5,6,7,8,9,10,13,16,19,22,25,28,31,34,37,40,45,50,55,60,65,70,75,80,85,90,97,104,111,118,125,132,139,146,153,160,169,178,187,196,205,214,223,232,241,250,261,272,283,294,305,316,327,338,349,360,373,386,399,412,425,438,451,464,477,490,505,520,535,550,565,580,595,610,625,640,657,674,691,708,725,742,759,776,793,810,829,848,867,886,905,924,943,962,981,1000,1021,1042,1063,1084,1105,1126,1147,1168,1189,1210,1233,1256,1279,1302,1325,1348,1371,1394,1417,1440,1465,1490,1515,1540,1565,1590,1615,1640,1665,1690,1717,1744,1771,1798,1825,1852,1879,1906,1933,1960,1989,2018,2047,2076,2105,2134,2163,2192,2221,2250,2281,2312,2343,2374,2405,2436,2467,2498,2529,2560,2593,2626,2659,2692,2725,2758,2791,2824,2857,2890,2925,2960,2995,3030,3065,3100,3135,3170,3205,3240,3277,3314,3351,3388,3425,3462,3499,3536,3573,3610,3649,3688,3727,3766,3805,3844,3883,3922,3961,4000,4041,4082,4123,4164,4205,4246,4287,4328,4369,4410,4453,4496,4539,4582,4625,4668,4711,4754,4797,4840,4885,4930,4975,5020,5065,5110,5155,5200,5245,5290,5337,5384,5431,5478,5525,5572,5619,5666,5713,5760,5809,5858,5907,5956,6005,6054,6103,6152,6201,6250
add $0,1
lpb $0
add $1,$0
sub $0,5
trn $0,5
add $1,$0
lpe
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x346c, %r10
nop
nop
cmp %rcx, %rcx
mov $0x6162636465666768, %r12
movq %r12, (%r10)
nop
cmp %r8, %r8
lea addresses_UC_ht+0x846c, %rsi
lea addresses_A_ht+0x1dd18, %rdi
nop
nop
nop
inc %r15
mov $115, %rcx
rep movsw
nop
nop
sub $13724, %r15
lea addresses_WC_ht+0x646c, %r12
nop
nop
nop
nop
sub %r15, %r15
movb (%r12), %r8b
xor %rdi, %rdi
lea addresses_normal_ht+0x1152c, %r15
nop
nop
nop
cmp %rdi, %rdi
mov (%r15), %r10
nop
nop
add $18126, %r8
lea addresses_WT_ht+0x1ee94, %r12
nop
nop
nop
nop
cmp $48956, %rsi
movl $0x61626364, (%r12)
cmp %rcx, %rcx
lea addresses_normal_ht+0x16624, %r15
nop
nop
nop
and %rdi, %rdi
mov $0x6162636465666768, %r8
movq %r8, %xmm4
movups %xmm4, (%r15)
xor $2112, %rcx
lea addresses_A_ht+0x161dc, %r15
nop
nop
nop
inc %r10
movups (%r15), %xmm1
vpextrq $1, %xmm1, %rcx
nop
nop
nop
nop
nop
add $3157, %r12
lea addresses_normal_ht+0x12b6c, %r15
nop
nop
nop
xor $34016, %rcx
movups (%r15), %xmm0
vpextrq $1, %xmm0, %r12
nop
nop
and $17539, %r8
lea addresses_D_ht+0x7d6c, %rsi
nop
nop
add %rdi, %rdi
vmovups (%rsi), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $0, %xmm4, %r15
nop
nop
nop
and $4907, %rdi
lea addresses_WT_ht+0x3694, %r10
and $42274, %r12
mov $0x6162636465666768, %r8
movq %r8, (%r10)
sub %rcx, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
// Load
mov $0x365b09000000046c, %r9
nop
nop
nop
add $54437, %rcx
mov (%r9), %edx
nop
nop
nop
nop
nop
sub %r14, %r14
// Store
lea addresses_D+0x10e6c, %r14
nop
nop
nop
nop
nop
sub $9897, %rdi
mov $0x5152535455565758, %rdx
movq %rdx, (%r14)
nop
cmp %rdx, %rdx
// Store
mov $0x64c2660000000fac, %rcx
nop
nop
add $10108, %rsi
movl $0x51525354, (%rcx)
nop
nop
sub %rcx, %rcx
// Store
mov $0x2c0f5f0000000e3a, %r12
nop
nop
nop
nop
sub $58506, %rcx
movb $0x51, (%r12)
nop
nop
nop
add $25833, %r12
// Store
lea addresses_D+0x15eec, %rcx
dec %r12
mov $0x5152535455565758, %rsi
movq %rsi, %xmm4
vmovups %ymm4, (%rcx)
nop
cmp $786, %rcx
// Faulty Load
lea addresses_WT+0xa46c, %rsi
add $54600, %rcx
mov (%rsi), %edx
lea oracles, %r9
and $0xff, %rdx
shlq $12, %rdx
mov (%r9,%rdx,1), %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_NC', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 3}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 8}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 4}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 8}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 1}}
{'39': 1545}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
|
#include "wvlet.h"
using namespace Eigen;
using namespace std;
wvlet::wvlet(int n1, int cNo1, int wNo1):
n(n1), cNo(cNo1), wCNo(wNo1)
{
para.setZero(n + 1);
}
wvlet::wvlet(dataWin1 dW, int n1, int cNo1, int wNo1) :
n(n1), cNo(cNo1), wCNo(wNo1)//investigate delegation
{
para.setZero(n + 1);
}
|
#pragma once
#include "DampEngine/Core/Macros/Log.hpp"
#include <string>
namespace Application
{
class IEventHandler
{
protected:
std::string m_Type = "IEventHandler (this should not happen, oops...)";
public:
IEventHandler(const std::string &type) : m_Type(type) {}
virtual const std::string GetType() = 0;
static const std::string GetTypeStatic()
{
DE_CRITICAL("(IEventHandler) Some event forgot to override 'static GetTypeStatic()' ");
return "(IEventHandler) UNINPLEMENTED";
}
virtual ~IEventHandler() = default;
};
} // namespace Application
|
; Increment and decrement the XL/XH register
MOV D, 00000001b
ADD XL, D
SUB XH, D
; Move the content of the X register into the M register
MOV M, X |
; A077886: Expansion of (1-x)^(-1)/(1+2*x^3).
; 1,1,1,-1,-1,-1,3,3,3,-5,-5,-5,11,11,11,-21,-21,-21,43,43,43,-85,-85,-85,171,171,171,-341,-341,-341,683,683,683,-1365,-1365,-1365,2731,2731,2731,-5461,-5461,-5461,10923,10923,10923,-21845,-21845,-21845,43691,43691,43691,-87381,-87381,-87381,174763,174763,174763,-349525,-349525,-349525,699051,699051,699051,-1398101,-1398101,-1398101,2796203,2796203,2796203,-5592405,-5592405,-5592405,11184811,11184811,11184811,-22369621,-22369621,-22369621,44739243,44739243,44739243,-89478485,-89478485,-89478485,178956971,178956971,178956971,-357913941,-357913941,-357913941,715827883,715827883,715827883,-1431655765,-1431655765,-1431655765,2863311531,2863311531,2863311531,-5726623061,-5726623061,-5726623061,11453246123,11453246123,11453246123,-22906492245,-22906492245,-22906492245,45812984491,45812984491,45812984491,-91625968981,-91625968981,-91625968981,183251937963,183251937963,183251937963,-366503875925,-366503875925,-366503875925,733007751851,733007751851,733007751851,-1466015503701,-1466015503701,-1466015503701,2932031007403,2932031007403,2932031007403,-5864062014805,-5864062014805,-5864062014805,11728124029611,11728124029611,11728124029611,-23456248059221,-23456248059221,-23456248059221,46912496118443,46912496118443,46912496118443,-93824992236885,-93824992236885,-93824992236885,187649984473771,187649984473771,187649984473771,-375299968947541,-375299968947541,-375299968947541,750599937895083,750599937895083,750599937895083,-1501199875790165,-1501199875790165,-1501199875790165,3002399751580331,3002399751580331,3002399751580331,-6004799503160661,-6004799503160661,-6004799503160661
div $0,3
mov $1,-2
pow $1,$0
sub $1,1
div $1,3
mul $1,2
add $1,1
|
;;; PLAYBALL3 PLAY INITIALIZER
BASE EQU 0300H
DRV0 EQU BASE + 0000H ; OPLL.BIN
DRV1 EQU BASE + 247BH ; OPLL0.BIN
BGM1 EQU BASE + 3A9AH ; OPLL1.BIN
BGM2 EQU BASE + 4920H ; OPLL2.BIN
BGM3 EQU BASE + 5795H ; OPLL3.BIN
BGM4 EQU BASE + 66C0H ; OPLL4.BIN
BGM5 EQU BASE + 6FC8H ; OPLL5.BIN
DRV2 EQU BASE + 7DD0H ; ENDOPLL.BIN
ORG 100H
START: LD HL,20H ; Emulate RST 20H BIOS Function
LD (HL), 0C3H
LD HL,DCOMPR
LD (21H),HL
LD (ASAVE),A
SRL A
SRL A
SRL A
SRL A
CP 07H
JR C,SKIP
XOR A
SKIP: LD HL,JMPTBL
SLA A
LD E,A
LD D,00H
ADD HL,DE
LD E,(HL)
INC HL
LD D,(HL)
EX DE,HL
JP (HL)
DCOMPR: LD A,H ; Compare HL and DE
CP D
RET NZ
LD A,L
CP E
RET
ASAVE: DB 00H
JMPTBL: DEFW OPLL0,OPLL1,OPLL2,OPLL3,OPLL4,OPLL5,OPLL6
MUSIC0: DEFW 0B3BEH,0AE6EH,0BF59H,0BFA1H,00000H,00000H,00000H,00000H
MUSIC1: DEFW 0C200H,0C53DH,0C901H,0CD15H,00000H,0B983H,0B9F7H,0BA43H
MUSIC2: DEFW 0C200H,0C618H,0CA45H,0CD04H,0BA8EH,0BADFH,0BB1EH,0BB6EH
MUSIC3: DEFW 0C200H,0CA3FH,0CE6CH,00000H,0BB8FH,0BC28H,0BC72H,0BCA9H
MUSIC4: DEFW 0C200H,0C53DH,0C901H,00000H,0BCEDH,0BD42H,0BD7DH,00000H
MUSIC5: DEFW 0C200H,0C53DH,00000H,00000H,00000H,00000H,00000H,00000H
MUSIC6: DEFW 0BAD2H,0B767H,0C41AH,0C440H,00000H,00000H,00000H,00000H
;; Load Driver 0 (contains BGM)
LDDRV0: LD HL,DRV0
LD DE,0A000H
LD BC,0247BH
LDIR
RET
;; Load Driver 1
LDDRV1: LD HL,DRV1
LD DE,0AB80H
LD BC,0161FH
LDIR
LD A,0C3H
LD (0A000H),A
LD A,0A0H
LD (0A001H),A
LD A,0ABH
LD (0A002H),A
RET
;; Load Driver 2
LDDRV2: LD HL,DRV2
LD DE,0A930H
LD BC,02000H
LDIR
LD A,0C3H
LD (0A000H),A
LD A,030H
LD (0A001H),A
LD A,0A9H
LD (0A002H),A
RET
;; Load BGM
LDBGM: LD DE,0C200H
LD BC,01000H
LDIR
RET
;; Init Driver 0
INIT0: CALL 0AA44H
RET
;; Init Driver 1
INIT1: CALL 0B5B8H
RET
;; Init Driver 2
INIT2: CALL 0B3A7H
RET
OPLL0: CALL LDDRV0
CALL INIT0
LD HL,MUSIC0
JP PLAY
OPLL1: CALL LDDRV1
LD HL,BGM1
CALL LDBGM
CALL INIT1
LD HL,MUSIC1
JP PLAY
OPLL2: CALL LDDRV1
LD HL,BGM2
CALL LDBGM
CALL INIT1
LD HL,MUSIC2
JP PLAY
OPLL3: CALL LDDRV1
LD HL,BGM3
CALL LDBGM
CALL INIT1
LD HL,MUSIC3
JP PLAY
OPLL4: CALL LDDRV1
LD HL,BGM4
CALL LDBGM
CALL INIT1
LD HL,MUSIC4
JP PLAY
OPLL5: CALL LDDRV1
LD HL,BGM5
CALL LDBGM
CALL INIT1
LD HL,MUSIC5
JP PLAY
OPLL6: CALL LDDRV2
CALL INIT2
LD HL,MUSIC6
JP PLAY
PLAY: LD A,(ASAVE)
AND 07H
SLA A
LD E,A
LD D,0
ADD HL,DE
LD E,(HL)
INC HL
LD D,(HL)
EX DE,HL
JP (HL)
DEFS BASE
END |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r15
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x66ac, %rcx
cmp %r10, %r10
movb $0x61, (%rcx)
nop
nop
nop
nop
sub $54457, %r12
lea addresses_A_ht+0x1cd4c, %rsi
nop
cmp %r11, %r11
mov (%rsi), %r15d
nop
nop
nop
cmp $58402, %r15
lea addresses_A_ht+0xc1a8, %r10
nop
nop
nop
nop
xor %rax, %rax
and $0xffffffffffffffc0, %r10
movaps (%r10), %xmm5
vpextrq $0, %xmm5, %r12
nop
nop
cmp $15964, %r15
lea addresses_normal_ht+0x1eaac, %rsi
lea addresses_WC_ht+0x19bec, %rdi
nop
nop
inc %r10
mov $46, %rcx
rep movsl
nop
nop
nop
cmp %r10, %r10
lea addresses_WT_ht+0xb42c, %rdi
nop
nop
inc %r11
mov (%rdi), %r15d
nop
nop
nop
nop
nop
dec %rsi
lea addresses_WC_ht+0x7ccc, %r15
nop
nop
nop
nop
nop
xor %rax, %rax
mov (%r15), %edi
nop
nop
sub $13144, %rsi
lea addresses_WC_ht+0x1364c, %r15
nop
nop
nop
inc %rsi
mov (%r15), %rax
nop
nop
nop
nop
nop
inc %rsi
lea addresses_WT_ht+0x1162c, %rsi
lea addresses_normal_ht+0x134cc, %rdi
nop
nop
sub %r10, %r10
mov $32, %rcx
rep movsl
nop
mfence
lea addresses_UC_ht+0xad8c, %rcx
nop
cmp %r15, %r15
mov (%rcx), %r11
nop
nop
nop
add %r12, %r12
lea addresses_normal_ht+0x1a4dd, %rsi
lea addresses_WC_ht+0xed4c, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
add %r10, %r10
mov $54, %rcx
rep movsb
nop
nop
nop
add $17539, %r15
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r9
push %rbp
push %rdi
// Faulty Load
lea addresses_D+0xd4c, %rdi
nop
nop
nop
nop
xor %r9, %r9
movups (%rdi), %xmm7
vpextrq $1, %xmm7, %r13
lea oracles, %r9
and $0xff, %r13
shlq $12, %r13
mov (%r9,%r13,1), %r13
pop %rdi
pop %rbp
pop %r9
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': True, 'type': 'addresses_D'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_D'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4, 'same': True, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'src': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 7, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 8, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 6, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
|
; A121008: Numerators of partial alternating sums of Catalan numbers scaled by powers of 1/(5*3^2) = 1/45.
; Submitted by Jon Maiga
; 1,44,1982,17837,4013339,60200071,2709003239,121905145612,658287786362,740573759652388,33325819184374256,1499661863296782734,67484783848355431042,607363054635198730798,3036815273175993713422
mul $0,2
mov $1,1
lpb $0
mov $2,$0
sub $0,1
add $3,$1
mul $1,9
mul $3,$0
sub $0,1
mul $1,5
add $2,2
mul $1,$2
mul $3,-4
lpe
add $1,$3
gcd $3,$1
div $1,$3
mov $0,$1
|
SFX_Battle_0F_Ch1:
unknownnoise0x20 2, 225, 75
unknownnoise0x20 10, 241, 68
unknownnoise0x20 2, 225, 58
unknownnoise0x20 6, 241, 52
endchannel
|
dnl AMD64 mpn_addlsh1_n -- rp[] = up[] + (vp[] << 1)
dnl Copyright 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public License as published
dnl by the Free Software Foundation; either version 3 of the License, or (at
dnl your option) any later version.
dnl The GNU MP Library is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
dnl License for more details.
dnl You should have received a copy of the GNU Lesser General Public License
dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
include(`../config.m4')
C cycles/limb
C K8,K9: 2
C K10: 2
C P4: 13
C P6-15: 3.45
C Sometimes speed degenerates, supposedly related to that some operand
C alignments cause cache conflicts.
C The speed is limited by decoding/issue bandwidth. There are 22 instructions
C in the loop, which corresponds to ceil(26/3)/4 = 2.0 c/l.
C INPUT PARAMETERS
define(`rp',`%rdi')
define(`up',`%rsi')
define(`vp',`%rdx')
define(`n', `%rcx')
ASM_START()
TEXT
ALIGN(16)
PROLOGUE(mpn_addlsh1_n)
push %rbp
mov (vp), %r8
mov R32(n), R32(%rax)
lea (rp,n,8), rp
lea (up,n,8), up
lea (vp,n,8), vp
neg n
xor R32(%rbp), R32(%rbp)
and $3, R32(%rax)
je L(b00)
cmp $2, R32(%rax)
jc L(b01)
je L(b10)
L(b11): add %r8, %r8
mov 8(vp,n,8), %r9
adc %r9, %r9
mov 16(vp,n,8), %r10
adc %r10, %r10
sbb R32(%rax), R32(%rax) C save scy
add (up,n,8), %r8
adc 8(up,n,8), %r9
mov %r8, (rp,n,8)
mov %r9, 8(rp,n,8)
adc 16(up,n,8), %r10
mov %r10, 16(rp,n,8)
sbb R32(%rbp), R32(%rbp) C save acy
add $3, n
jmp L(ent)
L(b10): add %r8, %r8
mov 8(vp,n,8), %r9
adc %r9, %r9
sbb R32(%rax), R32(%rax) C save scy
add (up,n,8), %r8
adc 8(up,n,8), %r9
mov %r8, (rp,n,8)
mov %r9, 8(rp,n,8)
sbb R32(%rbp), R32(%rbp) C save acy
add $2, n
jmp L(ent)
L(b01): add %r8, %r8
sbb R32(%rax), R32(%rax) C save scy
add (up,n,8), %r8
mov %r8, (rp,n,8)
sbb R32(%rbp), R32(%rbp) C save acy
inc n
L(ent): jns L(end)
ALIGN(16)
L(top): add R32(%rax), R32(%rax) C restore scy
mov (vp,n,8), %r8
L(b00): adc %r8, %r8
mov 8(vp,n,8), %r9
adc %r9, %r9
mov 16(vp,n,8), %r10
adc %r10, %r10
mov 24(vp,n,8), %r11
adc %r11, %r11
sbb R32(%rax), R32(%rax) C save scy
add R32(%rbp), R32(%rbp) C restore acy
adc (up,n,8), %r8
nop C Hammer speedup!
adc 8(up,n,8), %r9
mov %r8, (rp,n,8)
mov %r9, 8(rp,n,8)
adc 16(up,n,8), %r10
adc 24(up,n,8), %r11
mov %r10, 16(rp,n,8)
mov %r11, 24(rp,n,8)
sbb R32(%rbp), R32(%rbp) C save acy
add $4, n
js L(top)
L(end): add R32(%rbp), R32(%rax)
neg R32(%rax)
pop %rbp
ret
EPILOGUE()
|
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "il2cpp-object-internals.h"
// HoloToolkit.Unity.InputModule.MixedRealityTeleport
struct MixedRealityTeleport_t2468362838;
// HoloToolkit.Unity.ControllerExamples.ObjectSpawner
struct ObjectSpawner_t3925816580;
// HoloToolkit.Unity.ControllerExamples.Eraser
struct Eraser_t1049249012;
// System.Collections.Generic.List`1<UnityEngine.GameObject>
struct List_1_t2585711361;
// UnityEngine.LineRenderer
struct LineRenderer_t3154350270;
// UnityEngine.Vector3[]
struct Vector3U5BU5D_t1718750761;
// HoloToolkit.Unity.Design.LineUnity
struct LineUnity_t4238357500;
// HoloToolkit.Unity.Boundary.SceneContentAdjuster
struct SceneContentAdjuster_t1258964661;
// System.Comparison`1<HoloToolkit.Unity.Design.IDistorter>
struct Comparison_1_t2691982459;
// System.Char[]
struct CharU5BU5D_t3528271667;
// System.String
struct String_t;
// System.Void
struct Void_t1185182177;
// HoloToolkit.Unity.InputModule.DebugInteractionSourcePose
struct DebugInteractionSourcePose_t924263473;
// UnityEngine.Events.UnityEvent
struct UnityEvent_t2581268647;
// System.Reflection.MethodInfo
struct MethodInfo_t;
// System.DelegateData
struct DelegateData_t1677132599;
// HoloToolkit.Unity.ControllerExamples.Brush
struct Brush_t1548626474;
// UnityEngine.GameObject
struct GameObject_t1113636619;
// HoloToolkit.Unity.ControllerExamples.BrushController
struct BrushController_t3766631826;
// UnityEngine.Transform
struct Transform_t3600365921;
// System.Delegate[]
struct DelegateU5BU5D_t1703627840;
// System.IAsyncResult
struct IAsyncResult_t767004451;
// System.AsyncCallback
struct AsyncCallback_t3962456242;
// HoloToolkit.Unity.InputModule.KeyboardManager/KeyboardCallback
struct KeyboardCallback_t3784036511;
// HoloToolkit.Unity.InputModule.MotionControllerVisualizer
struct MotionControllerVisualizer_t392243420;
// System.Byte[]
struct ByteU5BU5D_t4116647657;
// Windows.Foundation.IAsyncOperation`1<Windows.Storage.Streams.IRandomAccessStreamWithContentType>
struct IAsyncOperation_1_t1918115372;
// Windows.Storage.Streams.IRandomAccessStreamWithContentType
struct IRandomAccessStreamWithContentType_t3296927652;
// UnityGLTF.GLTFComponent
struct GLTFComponent_t238219215;
// Windows.Storage.Streams.DataReader
struct DataReader_t2381813649;
// Windows.Storage.Streams.DataReaderLoadOperation
struct DataReaderLoadOperation_t4248924386;
// HoloToolkit.Unity.InputModule.KeyboardManager
struct KeyboardManager_t1786564518;
// HoloToolkit.Unity.InputModule.MotionControllerInfo
struct MotionControllerInfo_t938152223;
// HoloToolkit.Unity.InputModule.InputManager
struct InputManager_t3617695730;
// HoloToolkit.Unity.InputModule.HandGuidance
struct HandGuidance_t211969559;
// System.Action
struct Action_t1264377477;
// HoloToolkit.Unity.InputModule.AxisController
struct AxisController_t4134225610;
// HoloToolkit.Unity.InputModule.ButtonController
struct ButtonController_t4125738237;
// UnityEngine.Texture
struct Texture_t3661962703;
// UnityEngine.Renderer
struct Renderer_t2627027031;
// UnityEngine.MaterialPropertyBlock
struct MaterialPropertyBlock_t3213117958;
// HoloToolkit.Unity.InputModule.MixedRealityCameraManager
struct MixedRealityCameraManager_t3589305101;
// HoloToolkit.Unity.InputModule.IInputSource
struct IInputSource_t3332243029;
// UnityEngine.Rigidbody
struct Rigidbody_t3916780224;
// HoloToolkit.Unity.Boundary.BoundaryManager
struct BoundaryManager_t2608055002;
// HoloToolkit.Unity.InputModule.SpeechInputHandler/KeywordAndResponse[]
struct KeywordAndResponseU5BU5D_t2660299449;
// System.Collections.Generic.Dictionary`2<System.String,UnityEngine.Events.UnityEvent>
struct Dictionary_2_t2366524946;
// HoloToolkit.Unity.ControllerExamples.ColorPickerWheel
struct ColorPickerWheel_t2235220782;
// UnityEngine.AnimationCurve
struct AnimationCurve_t3046754366;
// UnityEngine.Gradient
struct Gradient_t3067099924;
// HoloToolkit.Unity.Design.LineBase
struct LineBase_t717918686;
// System.Single[]
struct SingleU5BU5D_t1444911251;
// HoloToolkit.Unity.Design.IDistorter[]
struct IDistorterU5BU5D_t4037927985;
// HoloToolkit.Unity.Controllers.PhysicsPointer
struct PhysicsPointer_t2887364969;
// UnityEngine.Renderer[]
struct RendererU5BU5D_t3210418286;
// HoloToolkit.Unity.InputModule.CameraMotionInfo
struct CameraMotionInfo_t3171865163;
// System.Collections.Generic.List`1<UnityEngine.Transform>
struct List_1_t777473367;
// System.Collections.Generic.Dictionary`2<HoloToolkit.Unity.InputModule.KeyboardManager/KeyCodeEventPair,System.Collections.Generic.List`1<HoloToolkit.Unity.InputModule.KeyboardManager/KeyboardCallback>>
struct Dictionary_2_t2319945507;
// System.Collections.Generic.List`1<HoloToolkit.Unity.InputModule.KeyboardManager/KeyCodeEventPair>
struct List_1_t2982180240;
// System.Collections.Generic.Stack`1<UnityEngine.GameObject>
struct Stack_1_t1957026074;
// HoloToolkit.Unity.InputModule.InputEventData
struct InputEventData_t3996134770;
// HoloToolkit.Unity.InputModule.InputClickedEventData
struct InputClickedEventData_t3368326714;
// HoloToolkit.Unity.InputModule.SourceStateEventData
struct SourceStateEventData_t3750604077;
// HoloToolkit.Unity.InputModule.ManipulationEventData
struct ManipulationEventData_t1724176917;
// HoloToolkit.Unity.InputModule.HoldEventData
struct HoldEventData_t2808772320;
// HoloToolkit.Unity.InputModule.NavigationEventData
struct NavigationEventData_t1103822069;
// HoloToolkit.Unity.InputModule.XboxControllerEventData
struct XboxControllerEventData_t3404349609;
// HoloToolkit.Unity.InputModule.SourceRotationEventData
struct SourceRotationEventData_t2243149014;
// HoloToolkit.Unity.InputModule.SourcePositionEventData
struct SourcePositionEventData_t1287754149;
// HoloToolkit.Unity.InputModule.PointerSpecificEventData
struct PointerSpecificEventData_t445067974;
// HoloToolkit.Unity.InputModule.InputPositionEventData
struct InputPositionEventData_t4183404838;
// HoloToolkit.Unity.InputModule.SelectPressedEventData
struct SelectPressedEventData_t2954563278;
// HoloToolkit.Unity.InputModule.SpeechEventData
struct SpeechEventData_t946934337;
// HoloToolkit.Unity.InputModule.DictationEventData
struct DictationEventData_t3566040822;
// System.Collections.Generic.List`1<HoloToolkit.Unity.InputModule.InputSourceInfo>
struct List_1_t1572102484;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IFocusable>
struct EventFunction_1_t2257986067;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IPointerSpecificFocusable>
struct EventFunction_1_t1202395962;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IInputClickHandler>
struct EventFunction_1_t1175758545;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IInputHandler>
struct EventFunction_1_t3456743768;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.ISourceStateHandler>
struct EventFunction_1_t3043039316;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IManipulationHandler>
struct EventFunction_1_t3658316792;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IHoldHandler>
struct EventFunction_1_t1263002383;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.INavigationHandler>
struct EventFunction_1_t2774965001;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IControllerInputHandler>
struct EventFunction_1_t784226213;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.ISelectHandler>
struct EventFunction_1_t3018044437;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IControllerTouchpadHandler>
struct EventFunction_1_t1090539697;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.ISourcePositionHandler>
struct EventFunction_1_t3430434273;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.ISourceRotationHandler>
struct EventFunction_1_t3307331999;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IXboxControllerHandler>
struct EventFunction_1_t1261869176;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.ISpeechHandler>
struct EventFunction_1_t2543650756;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IDictationHandler>
struct EventFunction_1_t4076589726;
// UnityEngine.Material
struct Material_t340375123;
// System.Collections.Generic.Queue`1<UnityEngine.LineRenderer>
struct Queue_1_t3000609764;
// UnityEngine.Animator
struct Animator_t434523843;
// HoloToolkit.Unity.FadeManager
struct FadeManager_t1688783044;
// HoloToolkit.Unity.InputModule.IPointingSource
struct IPointingSource_t2683498357;
// System.Collections.Generic.Dictionary`2<System.String,HoloToolkit.Unity.InputModule.MotionControllerInfo>
struct Dictionary_2_t723408522;
// System.Collections.Generic.List`1<System.String>
struct List_1_t3319525431;
// System.Action`1<HoloToolkit.Unity.InputModule.MotionControllerInfo>
struct Action_1_t1110619818;
// HoloToolkit.Unity.InputModule.MixedRealityCameraManager/DisplayEventHandler
struct DisplayEventHandler_t3688058425;
// HoloToolkit.Unity.Design.Line
struct Line_t549989228;
// HoloToolkit.Unity.Design.LineRenderer[]
struct LineRendererU5BU5D_t2548926732;
// UnityEngine.MeshFilter
struct MeshFilter_t3523625662;
// UnityEngine.Mesh[]
struct MeshU5BU5D_t3972987605;
// UnityEngine.Texture2D
struct Texture2D_t3840446185;
// HoloToolkit.Unity.Design.LineObjectCollection
struct LineObjectCollection_t2817952665;
// UnityEngine.MeshRenderer
struct MeshRenderer_t587009260;
#ifndef RUNTIMEOBJECT_H
#define RUNTIMEOBJECT_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Object
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RUNTIMEOBJECT_H
#ifndef U3CU3EC__DISPLAYCLASS27_0_T3736462782_H
#define U3CU3EC__DISPLAYCLASS27_0_T3736462782_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.MixedRealityTeleport/<>c__DisplayClass27_0
struct U3CU3Ec__DisplayClass27_0_t3736462782 : public RuntimeObject
{
public:
// System.Single HoloToolkit.Unity.InputModule.MixedRealityTeleport/<>c__DisplayClass27_0::rotationAmount
float ___rotationAmount_0;
// HoloToolkit.Unity.InputModule.MixedRealityTeleport HoloToolkit.Unity.InputModule.MixedRealityTeleport/<>c__DisplayClass27_0::<>4__this
MixedRealityTeleport_t2468362838 * ___U3CU3E4__this_1;
public:
inline static int32_t get_offset_of_rotationAmount_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass27_0_t3736462782, ___rotationAmount_0)); }
inline float get_rotationAmount_0() const { return ___rotationAmount_0; }
inline float* get_address_of_rotationAmount_0() { return &___rotationAmount_0; }
inline void set_rotationAmount_0(float value)
{
___rotationAmount_0 = value;
}
inline static int32_t get_offset_of_U3CU3E4__this_1() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass27_0_t3736462782, ___U3CU3E4__this_1)); }
inline MixedRealityTeleport_t2468362838 * get_U3CU3E4__this_1() const { return ___U3CU3E4__this_1; }
inline MixedRealityTeleport_t2468362838 ** get_address_of_U3CU3E4__this_1() { return &___U3CU3E4__this_1; }
inline void set_U3CU3E4__this_1(MixedRealityTeleport_t2468362838 * value)
{
___U3CU3E4__this_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E4__this_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS27_0_T3736462782_H
#ifndef MICSTREAM_T454139717_H
#define MICSTREAM_T454139717_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.MicStream
struct MicStream_t454139717 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // MICSTREAM_T454139717_H
#ifndef U3CU3EC_T129755298_H
#define U3CU3EC_T129755298_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.InputManager/<>c
struct U3CU3Ec_t129755298 : public RuntimeObject
{
public:
public:
};
struct U3CU3Ec_t129755298_StaticFields
{
public:
// HoloToolkit.Unity.InputModule.InputManager/<>c HoloToolkit.Unity.InputModule.InputManager/<>c::<>9
U3CU3Ec_t129755298 * ___U3CU3E9_0;
public:
inline static int32_t get_offset_of_U3CU3E9_0() { return static_cast<int32_t>(offsetof(U3CU3Ec_t129755298_StaticFields, ___U3CU3E9_0)); }
inline U3CU3Ec_t129755298 * get_U3CU3E9_0() const { return ___U3CU3E9_0; }
inline U3CU3Ec_t129755298 ** get_address_of_U3CU3E9_0() { return &___U3CU3E9_0; }
inline void set_U3CU3E9_0(U3CU3Ec_t129755298 * value)
{
___U3CU3E9_0 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC_T129755298_H
#ifndef VALUETYPE_T3640485471_H
#define VALUETYPE_T3640485471_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.ValueType
struct ValueType_t3640485471 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.ValueType
struct ValueType_t3640485471_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.ValueType
struct ValueType_t3640485471_marshaled_com
{
};
#endif // VALUETYPE_T3640485471_H
#ifndef U3CSWITCHOVERTIMEU3ED__23_T3239096198_H
#define U3CSWITCHOVERTIMEU3ED__23_T3239096198_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.ControllerExamples.ObjectSpawner/<SwitchOverTime>d__23
struct U3CSwitchOverTimeU3Ed__23_t3239096198 : public RuntimeObject
{
public:
// System.Int32 HoloToolkit.Unity.ControllerExamples.ObjectSpawner/<SwitchOverTime>d__23::<>1__state
int32_t ___U3CU3E1__state_0;
// System.Object HoloToolkit.Unity.ControllerExamples.ObjectSpawner/<SwitchOverTime>d__23::<>2__current
RuntimeObject * ___U3CU3E2__current_1;
// HoloToolkit.Unity.ControllerExamples.ObjectSpawner HoloToolkit.Unity.ControllerExamples.ObjectSpawner/<SwitchOverTime>d__23::<>4__this
ObjectSpawner_t3925816580 * ___U3CU3E4__this_2;
public:
inline static int32_t get_offset_of_U3CU3E1__state_0() { return static_cast<int32_t>(offsetof(U3CSwitchOverTimeU3Ed__23_t3239096198, ___U3CU3E1__state_0)); }
inline int32_t get_U3CU3E1__state_0() const { return ___U3CU3E1__state_0; }
inline int32_t* get_address_of_U3CU3E1__state_0() { return &___U3CU3E1__state_0; }
inline void set_U3CU3E1__state_0(int32_t value)
{
___U3CU3E1__state_0 = value;
}
inline static int32_t get_offset_of_U3CU3E2__current_1() { return static_cast<int32_t>(offsetof(U3CSwitchOverTimeU3Ed__23_t3239096198, ___U3CU3E2__current_1)); }
inline RuntimeObject * get_U3CU3E2__current_1() const { return ___U3CU3E2__current_1; }
inline RuntimeObject ** get_address_of_U3CU3E2__current_1() { return &___U3CU3E2__current_1; }
inline void set_U3CU3E2__current_1(RuntimeObject * value)
{
___U3CU3E2__current_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E2__current_1), value);
}
inline static int32_t get_offset_of_U3CU3E4__this_2() { return static_cast<int32_t>(offsetof(U3CSwitchOverTimeU3Ed__23_t3239096198, ___U3CU3E4__this_2)); }
inline ObjectSpawner_t3925816580 * get_U3CU3E4__this_2() const { return ___U3CU3E4__this_2; }
inline ObjectSpawner_t3925816580 ** get_address_of_U3CU3E4__this_2() { return &___U3CU3E4__this_2; }
inline void set_U3CU3E4__this_2(ObjectSpawner_t3925816580 * value)
{
___U3CU3E4__this_2 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E4__this_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CSWITCHOVERTIMEU3ED__23_T3239096198_H
#ifndef U3CDRAWOVERTIMEU3ED__4_T2030358129_H
#define U3CDRAWOVERTIMEU3ED__4_T2030358129_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.ControllerExamples.Eraser/<DrawOverTime>d__4
struct U3CDrawOverTimeU3Ed__4_t2030358129 : public RuntimeObject
{
public:
// System.Int32 HoloToolkit.Unity.ControllerExamples.Eraser/<DrawOverTime>d__4::<>1__state
int32_t ___U3CU3E1__state_0;
// System.Object HoloToolkit.Unity.ControllerExamples.Eraser/<DrawOverTime>d__4::<>2__current
RuntimeObject * ___U3CU3E2__current_1;
// HoloToolkit.Unity.ControllerExamples.Eraser HoloToolkit.Unity.ControllerExamples.Eraser/<DrawOverTime>d__4::<>4__this
Eraser_t1049249012 * ___U3CU3E4__this_2;
// System.Collections.Generic.List`1<UnityEngine.GameObject> HoloToolkit.Unity.ControllerExamples.Eraser/<DrawOverTime>d__4::<brushStrokes>5__1
List_1_t2585711361 * ___U3CbrushStrokesU3E5__1_3;
// System.Int32 HoloToolkit.Unity.ControllerExamples.Eraser/<DrawOverTime>d__4::<i>5__2
int32_t ___U3CiU3E5__2_4;
// UnityEngine.LineRenderer HoloToolkit.Unity.ControllerExamples.Eraser/<DrawOverTime>d__4::<lineRenderer>5__3
LineRenderer_t3154350270 * ___U3ClineRendererU3E5__3_5;
// UnityEngine.Vector3[] HoloToolkit.Unity.ControllerExamples.Eraser/<DrawOverTime>d__4::<positions>5__4
Vector3U5BU5D_t1718750761* ___U3CpositionsU3E5__4_6;
// System.Int32 HoloToolkit.Unity.ControllerExamples.Eraser/<DrawOverTime>d__4::<j>5__5
int32_t ___U3CjU3E5__5_7;
public:
inline static int32_t get_offset_of_U3CU3E1__state_0() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__4_t2030358129, ___U3CU3E1__state_0)); }
inline int32_t get_U3CU3E1__state_0() const { return ___U3CU3E1__state_0; }
inline int32_t* get_address_of_U3CU3E1__state_0() { return &___U3CU3E1__state_0; }
inline void set_U3CU3E1__state_0(int32_t value)
{
___U3CU3E1__state_0 = value;
}
inline static int32_t get_offset_of_U3CU3E2__current_1() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__4_t2030358129, ___U3CU3E2__current_1)); }
inline RuntimeObject * get_U3CU3E2__current_1() const { return ___U3CU3E2__current_1; }
inline RuntimeObject ** get_address_of_U3CU3E2__current_1() { return &___U3CU3E2__current_1; }
inline void set_U3CU3E2__current_1(RuntimeObject * value)
{
___U3CU3E2__current_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E2__current_1), value);
}
inline static int32_t get_offset_of_U3CU3E4__this_2() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__4_t2030358129, ___U3CU3E4__this_2)); }
inline Eraser_t1049249012 * get_U3CU3E4__this_2() const { return ___U3CU3E4__this_2; }
inline Eraser_t1049249012 ** get_address_of_U3CU3E4__this_2() { return &___U3CU3E4__this_2; }
inline void set_U3CU3E4__this_2(Eraser_t1049249012 * value)
{
___U3CU3E4__this_2 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E4__this_2), value);
}
inline static int32_t get_offset_of_U3CbrushStrokesU3E5__1_3() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__4_t2030358129, ___U3CbrushStrokesU3E5__1_3)); }
inline List_1_t2585711361 * get_U3CbrushStrokesU3E5__1_3() const { return ___U3CbrushStrokesU3E5__1_3; }
inline List_1_t2585711361 ** get_address_of_U3CbrushStrokesU3E5__1_3() { return &___U3CbrushStrokesU3E5__1_3; }
inline void set_U3CbrushStrokesU3E5__1_3(List_1_t2585711361 * value)
{
___U3CbrushStrokesU3E5__1_3 = value;
Il2CppCodeGenWriteBarrier((&___U3CbrushStrokesU3E5__1_3), value);
}
inline static int32_t get_offset_of_U3CiU3E5__2_4() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__4_t2030358129, ___U3CiU3E5__2_4)); }
inline int32_t get_U3CiU3E5__2_4() const { return ___U3CiU3E5__2_4; }
inline int32_t* get_address_of_U3CiU3E5__2_4() { return &___U3CiU3E5__2_4; }
inline void set_U3CiU3E5__2_4(int32_t value)
{
___U3CiU3E5__2_4 = value;
}
inline static int32_t get_offset_of_U3ClineRendererU3E5__3_5() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__4_t2030358129, ___U3ClineRendererU3E5__3_5)); }
inline LineRenderer_t3154350270 * get_U3ClineRendererU3E5__3_5() const { return ___U3ClineRendererU3E5__3_5; }
inline LineRenderer_t3154350270 ** get_address_of_U3ClineRendererU3E5__3_5() { return &___U3ClineRendererU3E5__3_5; }
inline void set_U3ClineRendererU3E5__3_5(LineRenderer_t3154350270 * value)
{
___U3ClineRendererU3E5__3_5 = value;
Il2CppCodeGenWriteBarrier((&___U3ClineRendererU3E5__3_5), value);
}
inline static int32_t get_offset_of_U3CpositionsU3E5__4_6() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__4_t2030358129, ___U3CpositionsU3E5__4_6)); }
inline Vector3U5BU5D_t1718750761* get_U3CpositionsU3E5__4_6() const { return ___U3CpositionsU3E5__4_6; }
inline Vector3U5BU5D_t1718750761** get_address_of_U3CpositionsU3E5__4_6() { return &___U3CpositionsU3E5__4_6; }
inline void set_U3CpositionsU3E5__4_6(Vector3U5BU5D_t1718750761* value)
{
___U3CpositionsU3E5__4_6 = value;
Il2CppCodeGenWriteBarrier((&___U3CpositionsU3E5__4_6), value);
}
inline static int32_t get_offset_of_U3CjU3E5__5_7() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__4_t2030358129, ___U3CjU3E5__5_7)); }
inline int32_t get_U3CjU3E5__5_7() const { return ___U3CjU3E5__5_7; }
inline int32_t* get_address_of_U3CjU3E5__5_7() { return &___U3CjU3E5__5_7; }
inline void set_U3CjU3E5__5_7(int32_t value)
{
___U3CjU3E5__5_7 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CDRAWOVERTIMEU3ED__4_T2030358129_H
#ifndef U3CUPDATELINEUNITYU3ED__8_T3720518906_H
#define U3CUPDATELINEUNITYU3ED__8_T3720518906_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Design.LineUnity/<UpdateLineUnity>d__8
struct U3CUpdateLineUnityU3Ed__8_t3720518906 : public RuntimeObject
{
public:
// System.Int32 HoloToolkit.Unity.Design.LineUnity/<UpdateLineUnity>d__8::<>1__state
int32_t ___U3CU3E1__state_0;
// System.Object HoloToolkit.Unity.Design.LineUnity/<UpdateLineUnity>d__8::<>2__current
RuntimeObject * ___U3CU3E2__current_1;
// HoloToolkit.Unity.Design.LineUnity HoloToolkit.Unity.Design.LineUnity/<UpdateLineUnity>d__8::<>4__this
LineUnity_t4238357500 * ___U3CU3E4__this_2;
// System.Int32 HoloToolkit.Unity.Design.LineUnity/<UpdateLineUnity>d__8::<i>5__1
int32_t ___U3CiU3E5__1_3;
// System.Int32 HoloToolkit.Unity.Design.LineUnity/<UpdateLineUnity>d__8::<i>5__2
int32_t ___U3CiU3E5__2_4;
// System.Single HoloToolkit.Unity.Design.LineUnity/<UpdateLineUnity>d__8::<normalizedDistance>5__3
float ___U3CnormalizedDistanceU3E5__3_5;
public:
inline static int32_t get_offset_of_U3CU3E1__state_0() { return static_cast<int32_t>(offsetof(U3CUpdateLineUnityU3Ed__8_t3720518906, ___U3CU3E1__state_0)); }
inline int32_t get_U3CU3E1__state_0() const { return ___U3CU3E1__state_0; }
inline int32_t* get_address_of_U3CU3E1__state_0() { return &___U3CU3E1__state_0; }
inline void set_U3CU3E1__state_0(int32_t value)
{
___U3CU3E1__state_0 = value;
}
inline static int32_t get_offset_of_U3CU3E2__current_1() { return static_cast<int32_t>(offsetof(U3CUpdateLineUnityU3Ed__8_t3720518906, ___U3CU3E2__current_1)); }
inline RuntimeObject * get_U3CU3E2__current_1() const { return ___U3CU3E2__current_1; }
inline RuntimeObject ** get_address_of_U3CU3E2__current_1() { return &___U3CU3E2__current_1; }
inline void set_U3CU3E2__current_1(RuntimeObject * value)
{
___U3CU3E2__current_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E2__current_1), value);
}
inline static int32_t get_offset_of_U3CU3E4__this_2() { return static_cast<int32_t>(offsetof(U3CUpdateLineUnityU3Ed__8_t3720518906, ___U3CU3E4__this_2)); }
inline LineUnity_t4238357500 * get_U3CU3E4__this_2() const { return ___U3CU3E4__this_2; }
inline LineUnity_t4238357500 ** get_address_of_U3CU3E4__this_2() { return &___U3CU3E4__this_2; }
inline void set_U3CU3E4__this_2(LineUnity_t4238357500 * value)
{
___U3CU3E4__this_2 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E4__this_2), value);
}
inline static int32_t get_offset_of_U3CiU3E5__1_3() { return static_cast<int32_t>(offsetof(U3CUpdateLineUnityU3Ed__8_t3720518906, ___U3CiU3E5__1_3)); }
inline int32_t get_U3CiU3E5__1_3() const { return ___U3CiU3E5__1_3; }
inline int32_t* get_address_of_U3CiU3E5__1_3() { return &___U3CiU3E5__1_3; }
inline void set_U3CiU3E5__1_3(int32_t value)
{
___U3CiU3E5__1_3 = value;
}
inline static int32_t get_offset_of_U3CiU3E5__2_4() { return static_cast<int32_t>(offsetof(U3CUpdateLineUnityU3Ed__8_t3720518906, ___U3CiU3E5__2_4)); }
inline int32_t get_U3CiU3E5__2_4() const { return ___U3CiU3E5__2_4; }
inline int32_t* get_address_of_U3CiU3E5__2_4() { return &___U3CiU3E5__2_4; }
inline void set_U3CiU3E5__2_4(int32_t value)
{
___U3CiU3E5__2_4 = value;
}
inline static int32_t get_offset_of_U3CnormalizedDistanceU3E5__3_5() { return static_cast<int32_t>(offsetof(U3CUpdateLineUnityU3Ed__8_t3720518906, ___U3CnormalizedDistanceU3E5__3_5)); }
inline float get_U3CnormalizedDistanceU3E5__3_5() const { return ___U3CnormalizedDistanceU3E5__3_5; }
inline float* get_address_of_U3CnormalizedDistanceU3E5__3_5() { return &___U3CnormalizedDistanceU3E5__3_5; }
inline void set_U3CnormalizedDistanceU3E5__3_5(float value)
{
___U3CnormalizedDistanceU3E5__3_5 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CUPDATELINEUNITYU3ED__8_T3720518906_H
#ifndef U3CSETCONTENTHEIGHTU3ED__8_T405582793_H
#define U3CSETCONTENTHEIGHTU3ED__8_T405582793_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Boundary.SceneContentAdjuster/<SetContentHeight>d__8
struct U3CSetContentHeightU3Ed__8_t405582793 : public RuntimeObject
{
public:
// System.Int32 HoloToolkit.Unity.Boundary.SceneContentAdjuster/<SetContentHeight>d__8::<>1__state
int32_t ___U3CU3E1__state_0;
// System.Object HoloToolkit.Unity.Boundary.SceneContentAdjuster/<SetContentHeight>d__8::<>2__current
RuntimeObject * ___U3CU3E2__current_1;
// HoloToolkit.Unity.Boundary.SceneContentAdjuster HoloToolkit.Unity.Boundary.SceneContentAdjuster/<SetContentHeight>d__8::<>4__this
SceneContentAdjuster_t1258964661 * ___U3CU3E4__this_2;
public:
inline static int32_t get_offset_of_U3CU3E1__state_0() { return static_cast<int32_t>(offsetof(U3CSetContentHeightU3Ed__8_t405582793, ___U3CU3E1__state_0)); }
inline int32_t get_U3CU3E1__state_0() const { return ___U3CU3E1__state_0; }
inline int32_t* get_address_of_U3CU3E1__state_0() { return &___U3CU3E1__state_0; }
inline void set_U3CU3E1__state_0(int32_t value)
{
___U3CU3E1__state_0 = value;
}
inline static int32_t get_offset_of_U3CU3E2__current_1() { return static_cast<int32_t>(offsetof(U3CSetContentHeightU3Ed__8_t405582793, ___U3CU3E2__current_1)); }
inline RuntimeObject * get_U3CU3E2__current_1() const { return ___U3CU3E2__current_1; }
inline RuntimeObject ** get_address_of_U3CU3E2__current_1() { return &___U3CU3E2__current_1; }
inline void set_U3CU3E2__current_1(RuntimeObject * value)
{
___U3CU3E2__current_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E2__current_1), value);
}
inline static int32_t get_offset_of_U3CU3E4__this_2() { return static_cast<int32_t>(offsetof(U3CSetContentHeightU3Ed__8_t405582793, ___U3CU3E4__this_2)); }
inline SceneContentAdjuster_t1258964661 * get_U3CU3E4__this_2() const { return ___U3CU3E4__this_2; }
inline SceneContentAdjuster_t1258964661 ** get_address_of_U3CU3E4__this_2() { return &___U3CU3E4__this_2; }
inline void set_U3CU3E4__this_2(SceneContentAdjuster_t1258964661 * value)
{
___U3CU3E4__this_2 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E4__this_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CSETCONTENTHEIGHTU3ED__8_T405582793_H
#ifndef U3CU3EC_T3579773046_H
#define U3CU3EC_T3579773046_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Design.LineBase/<>c
struct U3CU3Ec_t3579773046 : public RuntimeObject
{
public:
public:
};
struct U3CU3Ec_t3579773046_StaticFields
{
public:
// HoloToolkit.Unity.Design.LineBase/<>c HoloToolkit.Unity.Design.LineBase/<>c::<>9
U3CU3Ec_t3579773046 * ___U3CU3E9_0;
// System.Comparison`1<HoloToolkit.Unity.Design.IDistorter> HoloToolkit.Unity.Design.LineBase/<>c::<>9__38_0
Comparison_1_t2691982459 * ___U3CU3E9__38_0_1;
public:
inline static int32_t get_offset_of_U3CU3E9_0() { return static_cast<int32_t>(offsetof(U3CU3Ec_t3579773046_StaticFields, ___U3CU3E9_0)); }
inline U3CU3Ec_t3579773046 * get_U3CU3E9_0() const { return ___U3CU3E9_0; }
inline U3CU3Ec_t3579773046 ** get_address_of_U3CU3E9_0() { return &___U3CU3E9_0; }
inline void set_U3CU3E9_0(U3CU3Ec_t3579773046 * value)
{
___U3CU3E9_0 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9_0), value);
}
inline static int32_t get_offset_of_U3CU3E9__38_0_1() { return static_cast<int32_t>(offsetof(U3CU3Ec_t3579773046_StaticFields, ___U3CU3E9__38_0_1)); }
inline Comparison_1_t2691982459 * get_U3CU3E9__38_0_1() const { return ___U3CU3E9__38_0_1; }
inline Comparison_1_t2691982459 ** get_address_of_U3CU3E9__38_0_1() { return &___U3CU3E9__38_0_1; }
inline void set_U3CU3E9__38_0_1(Comparison_1_t2691982459 * value)
{
___U3CU3E9__38_0_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9__38_0_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC_T3579773046_H
#ifndef ENUM_T4135868527_H
#define ENUM_T4135868527_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Enum
struct Enum_t4135868527 : public ValueType_t3640485471
{
public:
public:
};
struct Enum_t4135868527_StaticFields
{
public:
// System.Char[] System.Enum::enumSeperatorCharArray
CharU5BU5D_t3528271667* ___enumSeperatorCharArray_0;
public:
inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t4135868527_StaticFields, ___enumSeperatorCharArray_0)); }
inline CharU5BU5D_t3528271667* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; }
inline CharU5BU5D_t3528271667** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; }
inline void set_enumSeperatorCharArray_0(CharU5BU5D_t3528271667* value)
{
___enumSeperatorCharArray_0 = value;
Il2CppCodeGenWriteBarrier((&___enumSeperatorCharArray_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Enum
struct Enum_t4135868527_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.Enum
struct Enum_t4135868527_marshaled_com
{
};
#endif // ENUM_T4135868527_H
#ifndef __STATICARRAYINITTYPESIZEU3D2048_T1070431641_H
#define __STATICARRAYINITTYPESIZEU3D2048_T1070431641_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=2048
struct __StaticArrayInitTypeSizeU3D2048_t1070431641
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D2048_t1070431641__padding[2048];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D2048_T1070431641_H
#ifndef VECTOR3_T3722313464_H
#define VECTOR3_T3722313464_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Vector3
struct Vector3_t3722313464
{
public:
// System.Single UnityEngine.Vector3::x
float ___x_1;
// System.Single UnityEngine.Vector3::y
float ___y_2;
// System.Single UnityEngine.Vector3::z
float ___z_3;
public:
inline static int32_t get_offset_of_x_1() { return static_cast<int32_t>(offsetof(Vector3_t3722313464, ___x_1)); }
inline float get_x_1() const { return ___x_1; }
inline float* get_address_of_x_1() { return &___x_1; }
inline void set_x_1(float value)
{
___x_1 = value;
}
inline static int32_t get_offset_of_y_2() { return static_cast<int32_t>(offsetof(Vector3_t3722313464, ___y_2)); }
inline float get_y_2() const { return ___y_2; }
inline float* get_address_of_y_2() { return &___y_2; }
inline void set_y_2(float value)
{
___y_2 = value;
}
inline static int32_t get_offset_of_z_3() { return static_cast<int32_t>(offsetof(Vector3_t3722313464, ___z_3)); }
inline float get_z_3() const { return ___z_3; }
inline float* get_address_of_z_3() { return &___z_3; }
inline void set_z_3(float value)
{
___z_3 = value;
}
};
struct Vector3_t3722313464_StaticFields
{
public:
// UnityEngine.Vector3 UnityEngine.Vector3::zeroVector
Vector3_t3722313464 ___zeroVector_4;
// UnityEngine.Vector3 UnityEngine.Vector3::oneVector
Vector3_t3722313464 ___oneVector_5;
// UnityEngine.Vector3 UnityEngine.Vector3::upVector
Vector3_t3722313464 ___upVector_6;
// UnityEngine.Vector3 UnityEngine.Vector3::downVector
Vector3_t3722313464 ___downVector_7;
// UnityEngine.Vector3 UnityEngine.Vector3::leftVector
Vector3_t3722313464 ___leftVector_8;
// UnityEngine.Vector3 UnityEngine.Vector3::rightVector
Vector3_t3722313464 ___rightVector_9;
// UnityEngine.Vector3 UnityEngine.Vector3::forwardVector
Vector3_t3722313464 ___forwardVector_10;
// UnityEngine.Vector3 UnityEngine.Vector3::backVector
Vector3_t3722313464 ___backVector_11;
// UnityEngine.Vector3 UnityEngine.Vector3::positiveInfinityVector
Vector3_t3722313464 ___positiveInfinityVector_12;
// UnityEngine.Vector3 UnityEngine.Vector3::negativeInfinityVector
Vector3_t3722313464 ___negativeInfinityVector_13;
public:
inline static int32_t get_offset_of_zeroVector_4() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___zeroVector_4)); }
inline Vector3_t3722313464 get_zeroVector_4() const { return ___zeroVector_4; }
inline Vector3_t3722313464 * get_address_of_zeroVector_4() { return &___zeroVector_4; }
inline void set_zeroVector_4(Vector3_t3722313464 value)
{
___zeroVector_4 = value;
}
inline static int32_t get_offset_of_oneVector_5() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___oneVector_5)); }
inline Vector3_t3722313464 get_oneVector_5() const { return ___oneVector_5; }
inline Vector3_t3722313464 * get_address_of_oneVector_5() { return &___oneVector_5; }
inline void set_oneVector_5(Vector3_t3722313464 value)
{
___oneVector_5 = value;
}
inline static int32_t get_offset_of_upVector_6() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___upVector_6)); }
inline Vector3_t3722313464 get_upVector_6() const { return ___upVector_6; }
inline Vector3_t3722313464 * get_address_of_upVector_6() { return &___upVector_6; }
inline void set_upVector_6(Vector3_t3722313464 value)
{
___upVector_6 = value;
}
inline static int32_t get_offset_of_downVector_7() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___downVector_7)); }
inline Vector3_t3722313464 get_downVector_7() const { return ___downVector_7; }
inline Vector3_t3722313464 * get_address_of_downVector_7() { return &___downVector_7; }
inline void set_downVector_7(Vector3_t3722313464 value)
{
___downVector_7 = value;
}
inline static int32_t get_offset_of_leftVector_8() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___leftVector_8)); }
inline Vector3_t3722313464 get_leftVector_8() const { return ___leftVector_8; }
inline Vector3_t3722313464 * get_address_of_leftVector_8() { return &___leftVector_8; }
inline void set_leftVector_8(Vector3_t3722313464 value)
{
___leftVector_8 = value;
}
inline static int32_t get_offset_of_rightVector_9() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___rightVector_9)); }
inline Vector3_t3722313464 get_rightVector_9() const { return ___rightVector_9; }
inline Vector3_t3722313464 * get_address_of_rightVector_9() { return &___rightVector_9; }
inline void set_rightVector_9(Vector3_t3722313464 value)
{
___rightVector_9 = value;
}
inline static int32_t get_offset_of_forwardVector_10() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___forwardVector_10)); }
inline Vector3_t3722313464 get_forwardVector_10() const { return ___forwardVector_10; }
inline Vector3_t3722313464 * get_address_of_forwardVector_10() { return &___forwardVector_10; }
inline void set_forwardVector_10(Vector3_t3722313464 value)
{
___forwardVector_10 = value;
}
inline static int32_t get_offset_of_backVector_11() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___backVector_11)); }
inline Vector3_t3722313464 get_backVector_11() const { return ___backVector_11; }
inline Vector3_t3722313464 * get_address_of_backVector_11() { return &___backVector_11; }
inline void set_backVector_11(Vector3_t3722313464 value)
{
___backVector_11 = value;
}
inline static int32_t get_offset_of_positiveInfinityVector_12() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___positiveInfinityVector_12)); }
inline Vector3_t3722313464 get_positiveInfinityVector_12() const { return ___positiveInfinityVector_12; }
inline Vector3_t3722313464 * get_address_of_positiveInfinityVector_12() { return &___positiveInfinityVector_12; }
inline void set_positiveInfinityVector_12(Vector3_t3722313464 value)
{
___positiveInfinityVector_12 = value;
}
inline static int32_t get_offset_of_negativeInfinityVector_13() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___negativeInfinityVector_13)); }
inline Vector3_t3722313464 get_negativeInfinityVector_13() const { return ___negativeInfinityVector_13; }
inline Vector3_t3722313464 * get_address_of_negativeInfinityVector_13() { return &___negativeInfinityVector_13; }
inline void set_negativeInfinityVector_13(Vector3_t3722313464 value)
{
___negativeInfinityVector_13 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VECTOR3_T3722313464_H
#ifndef INTPTR_T_H
#define INTPTR_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.IntPtr
struct IntPtr_t
{
public:
// System.Void* System.IntPtr::m_value
void* ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); }
inline void* get_m_value_0() const { return ___m_value_0; }
inline void** get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(void* value)
{
___m_value_0 = value;
}
};
struct IntPtr_t_StaticFields
{
public:
// System.IntPtr System.IntPtr::Zero
intptr_t ___Zero_1;
public:
inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); }
inline intptr_t get_Zero_1() const { return ___Zero_1; }
inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; }
inline void set_Zero_1(intptr_t value)
{
___Zero_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INTPTR_T_H
#ifndef __STATICARRAYINITTYPESIZEU3D36_T385526563_H
#define __STATICARRAYINITTYPESIZEU3D36_T385526563_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=36
struct __StaticArrayInitTypeSizeU3D36_t385526563
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D36_t385526563__padding[36];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D36_T385526563_H
#ifndef COLOR_T2555686324_H
#define COLOR_T2555686324_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Color
struct Color_t2555686324
{
public:
// System.Single UnityEngine.Color::r
float ___r_0;
// System.Single UnityEngine.Color::g
float ___g_1;
// System.Single UnityEngine.Color::b
float ___b_2;
// System.Single UnityEngine.Color::a
float ___a_3;
public:
inline static int32_t get_offset_of_r_0() { return static_cast<int32_t>(offsetof(Color_t2555686324, ___r_0)); }
inline float get_r_0() const { return ___r_0; }
inline float* get_address_of_r_0() { return &___r_0; }
inline void set_r_0(float value)
{
___r_0 = value;
}
inline static int32_t get_offset_of_g_1() { return static_cast<int32_t>(offsetof(Color_t2555686324, ___g_1)); }
inline float get_g_1() const { return ___g_1; }
inline float* get_address_of_g_1() { return &___g_1; }
inline void set_g_1(float value)
{
___g_1 = value;
}
inline static int32_t get_offset_of_b_2() { return static_cast<int32_t>(offsetof(Color_t2555686324, ___b_2)); }
inline float get_b_2() const { return ___b_2; }
inline float* get_address_of_b_2() { return &___b_2; }
inline void set_b_2(float value)
{
___b_2 = value;
}
inline static int32_t get_offset_of_a_3() { return static_cast<int32_t>(offsetof(Color_t2555686324, ___a_3)); }
inline float get_a_3() const { return ___a_3; }
inline float* get_address_of_a_3() { return &___a_3; }
inline void set_a_3(float value)
{
___a_3 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // COLOR_T2555686324_H
#ifndef __STATICARRAYINITTYPESIZEU3D100_T2134348887_H
#define __STATICARRAYINITTYPESIZEU3D100_T2134348887_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=100
struct __StaticArrayInitTypeSizeU3D100_t2134348887
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D100_t2134348887__padding[100];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D100_T2134348887_H
#ifndef __STATICARRAYINITTYPESIZEU3D96_T385919777_H
#define __STATICARRAYINITTYPESIZEU3D96_T385919777_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=96
struct __StaticArrayInitTypeSizeU3D96_t385919777
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D96_t385919777__padding[96];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D96_T385919777_H
#ifndef __STATICARRAYINITTYPESIZEU3D64_T3517497838_H
#define __STATICARRAYINITTYPESIZEU3D64_T3517497838_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=64
struct __StaticArrayInitTypeSizeU3D64_t3517497838
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D64_t3517497838__padding[64];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D64_T3517497838_H
#ifndef __STATICARRAYINITTYPESIZEU3D128_T531529104_H
#define __STATICARRAYINITTYPESIZEU3D128_T531529104_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=128
struct __StaticArrayInitTypeSizeU3D128_t531529104
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D128_t531529104__padding[128];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D128_T531529104_H
#ifndef __STATICARRAYINITTYPESIZEU3D864_T1736813345_H
#define __STATICARRAYINITTYPESIZEU3D864_T1736813345_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=864
struct __StaticArrayInitTypeSizeU3D864_t1736813345
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D864_t1736813345__padding[864];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D864_T1736813345_H
#ifndef __STATICARRAYINITTYPESIZEU3D576_T2919708294_H
#define __STATICARRAYINITTYPESIZEU3D576_T2919708294_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=576
struct __StaticArrayInitTypeSizeU3D576_t2919708294
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D576_t2919708294__padding[576];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D576_T2919708294_H
#ifndef __STATICARRAYINITTYPESIZEU3D200_T2134545495_H
#define __STATICARRAYINITTYPESIZEU3D200_T2134545495_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=200
struct __StaticArrayInitTypeSizeU3D200_t2134545495
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D200_t2134545495__padding[200];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D200_T2134545495_H
#ifndef VECTOR2_T2156229523_H
#define VECTOR2_T2156229523_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Vector2
struct Vector2_t2156229523
{
public:
// System.Single UnityEngine.Vector2::x
float ___x_0;
// System.Single UnityEngine.Vector2::y
float ___y_1;
public:
inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Vector2_t2156229523, ___x_0)); }
inline float get_x_0() const { return ___x_0; }
inline float* get_address_of_x_0() { return &___x_0; }
inline void set_x_0(float value)
{
___x_0 = value;
}
inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Vector2_t2156229523, ___y_1)); }
inline float get_y_1() const { return ___y_1; }
inline float* get_address_of_y_1() { return &___y_1; }
inline void set_y_1(float value)
{
___y_1 = value;
}
};
struct Vector2_t2156229523_StaticFields
{
public:
// UnityEngine.Vector2 UnityEngine.Vector2::zeroVector
Vector2_t2156229523 ___zeroVector_2;
// UnityEngine.Vector2 UnityEngine.Vector2::oneVector
Vector2_t2156229523 ___oneVector_3;
// UnityEngine.Vector2 UnityEngine.Vector2::upVector
Vector2_t2156229523 ___upVector_4;
// UnityEngine.Vector2 UnityEngine.Vector2::downVector
Vector2_t2156229523 ___downVector_5;
// UnityEngine.Vector2 UnityEngine.Vector2::leftVector
Vector2_t2156229523 ___leftVector_6;
// UnityEngine.Vector2 UnityEngine.Vector2::rightVector
Vector2_t2156229523 ___rightVector_7;
// UnityEngine.Vector2 UnityEngine.Vector2::positiveInfinityVector
Vector2_t2156229523 ___positiveInfinityVector_8;
// UnityEngine.Vector2 UnityEngine.Vector2::negativeInfinityVector
Vector2_t2156229523 ___negativeInfinityVector_9;
public:
inline static int32_t get_offset_of_zeroVector_2() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___zeroVector_2)); }
inline Vector2_t2156229523 get_zeroVector_2() const { return ___zeroVector_2; }
inline Vector2_t2156229523 * get_address_of_zeroVector_2() { return &___zeroVector_2; }
inline void set_zeroVector_2(Vector2_t2156229523 value)
{
___zeroVector_2 = value;
}
inline static int32_t get_offset_of_oneVector_3() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___oneVector_3)); }
inline Vector2_t2156229523 get_oneVector_3() const { return ___oneVector_3; }
inline Vector2_t2156229523 * get_address_of_oneVector_3() { return &___oneVector_3; }
inline void set_oneVector_3(Vector2_t2156229523 value)
{
___oneVector_3 = value;
}
inline static int32_t get_offset_of_upVector_4() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___upVector_4)); }
inline Vector2_t2156229523 get_upVector_4() const { return ___upVector_4; }
inline Vector2_t2156229523 * get_address_of_upVector_4() { return &___upVector_4; }
inline void set_upVector_4(Vector2_t2156229523 value)
{
___upVector_4 = value;
}
inline static int32_t get_offset_of_downVector_5() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___downVector_5)); }
inline Vector2_t2156229523 get_downVector_5() const { return ___downVector_5; }
inline Vector2_t2156229523 * get_address_of_downVector_5() { return &___downVector_5; }
inline void set_downVector_5(Vector2_t2156229523 value)
{
___downVector_5 = value;
}
inline static int32_t get_offset_of_leftVector_6() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___leftVector_6)); }
inline Vector2_t2156229523 get_leftVector_6() const { return ___leftVector_6; }
inline Vector2_t2156229523 * get_address_of_leftVector_6() { return &___leftVector_6; }
inline void set_leftVector_6(Vector2_t2156229523 value)
{
___leftVector_6 = value;
}
inline static int32_t get_offset_of_rightVector_7() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___rightVector_7)); }
inline Vector2_t2156229523 get_rightVector_7() const { return ___rightVector_7; }
inline Vector2_t2156229523 * get_address_of_rightVector_7() { return &___rightVector_7; }
inline void set_rightVector_7(Vector2_t2156229523 value)
{
___rightVector_7 = value;
}
inline static int32_t get_offset_of_positiveInfinityVector_8() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___positiveInfinityVector_8)); }
inline Vector2_t2156229523 get_positiveInfinityVector_8() const { return ___positiveInfinityVector_8; }
inline Vector2_t2156229523 * get_address_of_positiveInfinityVector_8() { return &___positiveInfinityVector_8; }
inline void set_positiveInfinityVector_8(Vector2_t2156229523 value)
{
___positiveInfinityVector_8 = value;
}
inline static int32_t get_offset_of_negativeInfinityVector_9() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___negativeInfinityVector_9)); }
inline Vector2_t2156229523 get_negativeInfinityVector_9() const { return ___negativeInfinityVector_9; }
inline Vector2_t2156229523 * get_address_of_negativeInfinityVector_9() { return &___negativeInfinityVector_9; }
inline void set_negativeInfinityVector_9(Vector2_t2156229523 value)
{
___negativeInfinityVector_9 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VECTOR2_T2156229523_H
#ifndef __STATICARRAYINITTYPESIZEU3D5120_T1474365685_H
#define __STATICARRAYINITTYPESIZEU3D5120_T1474365685_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=5120
struct __StaticArrayInitTypeSizeU3D5120_t1474365685
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D5120_t1474365685__padding[5120];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D5120_T1474365685_H
#ifndef DEBUGINTERACTIONSOURCESTATE_T431096814_H
#define DEBUGINTERACTIONSOURCESTATE_T431096814_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.DebugInteractionSourceState
struct DebugInteractionSourceState_t431096814
{
public:
// System.Boolean HoloToolkit.Unity.InputModule.DebugInteractionSourceState::Pressed
bool ___Pressed_0;
// System.Boolean HoloToolkit.Unity.InputModule.DebugInteractionSourceState::Grasped
bool ___Grasped_1;
// System.Boolean HoloToolkit.Unity.InputModule.DebugInteractionSourceState::MenuPressed
bool ___MenuPressed_2;
// System.Boolean HoloToolkit.Unity.InputModule.DebugInteractionSourceState::SelectPressed
bool ___SelectPressed_3;
// HoloToolkit.Unity.InputModule.DebugInteractionSourcePose HoloToolkit.Unity.InputModule.DebugInteractionSourceState::SourcePose
DebugInteractionSourcePose_t924263473 * ___SourcePose_4;
public:
inline static int32_t get_offset_of_Pressed_0() { return static_cast<int32_t>(offsetof(DebugInteractionSourceState_t431096814, ___Pressed_0)); }
inline bool get_Pressed_0() const { return ___Pressed_0; }
inline bool* get_address_of_Pressed_0() { return &___Pressed_0; }
inline void set_Pressed_0(bool value)
{
___Pressed_0 = value;
}
inline static int32_t get_offset_of_Grasped_1() { return static_cast<int32_t>(offsetof(DebugInteractionSourceState_t431096814, ___Grasped_1)); }
inline bool get_Grasped_1() const { return ___Grasped_1; }
inline bool* get_address_of_Grasped_1() { return &___Grasped_1; }
inline void set_Grasped_1(bool value)
{
___Grasped_1 = value;
}
inline static int32_t get_offset_of_MenuPressed_2() { return static_cast<int32_t>(offsetof(DebugInteractionSourceState_t431096814, ___MenuPressed_2)); }
inline bool get_MenuPressed_2() const { return ___MenuPressed_2; }
inline bool* get_address_of_MenuPressed_2() { return &___MenuPressed_2; }
inline void set_MenuPressed_2(bool value)
{
___MenuPressed_2 = value;
}
inline static int32_t get_offset_of_SelectPressed_3() { return static_cast<int32_t>(offsetof(DebugInteractionSourceState_t431096814, ___SelectPressed_3)); }
inline bool get_SelectPressed_3() const { return ___SelectPressed_3; }
inline bool* get_address_of_SelectPressed_3() { return &___SelectPressed_3; }
inline void set_SelectPressed_3(bool value)
{
___SelectPressed_3 = value;
}
inline static int32_t get_offset_of_SourcePose_4() { return static_cast<int32_t>(offsetof(DebugInteractionSourceState_t431096814, ___SourcePose_4)); }
inline DebugInteractionSourcePose_t924263473 * get_SourcePose_4() const { return ___SourcePose_4; }
inline DebugInteractionSourcePose_t924263473 ** get_address_of_SourcePose_4() { return &___SourcePose_4; }
inline void set_SourcePose_4(DebugInteractionSourcePose_t924263473 * value)
{
___SourcePose_4 = value;
Il2CppCodeGenWriteBarrier((&___SourcePose_4), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of HoloToolkit.Unity.InputModule.DebugInteractionSourceState
struct DebugInteractionSourceState_t431096814_marshaled_pinvoke
{
int32_t ___Pressed_0;
int32_t ___Grasped_1;
int32_t ___MenuPressed_2;
int32_t ___SelectPressed_3;
DebugInteractionSourcePose_t924263473 * ___SourcePose_4;
};
// Native definition for COM marshalling of HoloToolkit.Unity.InputModule.DebugInteractionSourceState
struct DebugInteractionSourceState_t431096814_marshaled_com
{
int32_t ___Pressed_0;
int32_t ___Grasped_1;
int32_t ___MenuPressed_2;
int32_t ___SelectPressed_3;
DebugInteractionSourcePose_t924263473 * ___SourcePose_4;
};
#endif // DEBUGINTERACTIONSOURCESTATE_T431096814_H
#ifndef LAYERMASK_T3493934918_H
#define LAYERMASK_T3493934918_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.LayerMask
struct LayerMask_t3493934918
{
public:
// System.Int32 UnityEngine.LayerMask::m_Mask
int32_t ___m_Mask_0;
public:
inline static int32_t get_offset_of_m_Mask_0() { return static_cast<int32_t>(offsetof(LayerMask_t3493934918, ___m_Mask_0)); }
inline int32_t get_m_Mask_0() const { return ___m_Mask_0; }
inline int32_t* get_address_of_m_Mask_0() { return &___m_Mask_0; }
inline void set_m_Mask_0(int32_t value)
{
___m_Mask_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LAYERMASK_T3493934918_H
#ifndef __STATICARRAYINITTYPESIZEU3D4480_T3791498020_H
#define __STATICARRAYINITTYPESIZEU3D4480_T3791498020_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=4480
struct __StaticArrayInitTypeSizeU3D4480_t3791498020
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D4480_t3791498020__padding[4480];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __STATICARRAYINITTYPESIZEU3D4480_T3791498020_H
#ifndef VOID_T1185182177_H
#define VOID_T1185182177_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void
struct Void_t1185182177
{
public:
union
{
struct
{
};
uint8_t Void_t1185182177__padding[1];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VOID_T1185182177_H
#ifndef QUATERNION_T2301928331_H
#define QUATERNION_T2301928331_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Quaternion
struct Quaternion_t2301928331
{
public:
// System.Single UnityEngine.Quaternion::x
float ___x_0;
// System.Single UnityEngine.Quaternion::y
float ___y_1;
// System.Single UnityEngine.Quaternion::z
float ___z_2;
// System.Single UnityEngine.Quaternion::w
float ___w_3;
public:
inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Quaternion_t2301928331, ___x_0)); }
inline float get_x_0() const { return ___x_0; }
inline float* get_address_of_x_0() { return &___x_0; }
inline void set_x_0(float value)
{
___x_0 = value;
}
inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Quaternion_t2301928331, ___y_1)); }
inline float get_y_1() const { return ___y_1; }
inline float* get_address_of_y_1() { return &___y_1; }
inline void set_y_1(float value)
{
___y_1 = value;
}
inline static int32_t get_offset_of_z_2() { return static_cast<int32_t>(offsetof(Quaternion_t2301928331, ___z_2)); }
inline float get_z_2() const { return ___z_2; }
inline float* get_address_of_z_2() { return &___z_2; }
inline void set_z_2(float value)
{
___z_2 = value;
}
inline static int32_t get_offset_of_w_3() { return static_cast<int32_t>(offsetof(Quaternion_t2301928331, ___w_3)); }
inline float get_w_3() const { return ___w_3; }
inline float* get_address_of_w_3() { return &___w_3; }
inline void set_w_3(float value)
{
___w_3 = value;
}
};
struct Quaternion_t2301928331_StaticFields
{
public:
// UnityEngine.Quaternion UnityEngine.Quaternion::identityQuaternion
Quaternion_t2301928331 ___identityQuaternion_4;
public:
inline static int32_t get_offset_of_identityQuaternion_4() { return static_cast<int32_t>(offsetof(Quaternion_t2301928331_StaticFields, ___identityQuaternion_4)); }
inline Quaternion_t2301928331 get_identityQuaternion_4() const { return ___identityQuaternion_4; }
inline Quaternion_t2301928331 * get_address_of_identityQuaternion_4() { return &___identityQuaternion_4; }
inline void set_identityQuaternion_4(Quaternion_t2301928331 value)
{
___identityQuaternion_4 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // QUATERNION_T2301928331_H
#ifndef KEYWORDANDRESPONSE_T3411225000_H
#define KEYWORDANDRESPONSE_T3411225000_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.SpeechInputHandler/KeywordAndResponse
struct KeywordAndResponse_t3411225000
{
public:
// System.String HoloToolkit.Unity.InputModule.SpeechInputHandler/KeywordAndResponse::Keyword
String_t* ___Keyword_0;
// UnityEngine.Events.UnityEvent HoloToolkit.Unity.InputModule.SpeechInputHandler/KeywordAndResponse::Response
UnityEvent_t2581268647 * ___Response_1;
public:
inline static int32_t get_offset_of_Keyword_0() { return static_cast<int32_t>(offsetof(KeywordAndResponse_t3411225000, ___Keyword_0)); }
inline String_t* get_Keyword_0() const { return ___Keyword_0; }
inline String_t** get_address_of_Keyword_0() { return &___Keyword_0; }
inline void set_Keyword_0(String_t* value)
{
___Keyword_0 = value;
Il2CppCodeGenWriteBarrier((&___Keyword_0), value);
}
inline static int32_t get_offset_of_Response_1() { return static_cast<int32_t>(offsetof(KeywordAndResponse_t3411225000, ___Response_1)); }
inline UnityEvent_t2581268647 * get_Response_1() const { return ___Response_1; }
inline UnityEvent_t2581268647 ** get_address_of_Response_1() { return &___Response_1; }
inline void set_Response_1(UnityEvent_t2581268647 * value)
{
___Response_1 = value;
Il2CppCodeGenWriteBarrier((&___Response_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of HoloToolkit.Unity.InputModule.SpeechInputHandler/KeywordAndResponse
struct KeywordAndResponse_t3411225000_marshaled_pinvoke
{
char* ___Keyword_0;
UnityEvent_t2581268647 * ___Response_1;
};
// Native definition for COM marshalling of HoloToolkit.Unity.InputModule.SpeechInputHandler/KeywordAndResponse
struct KeywordAndResponse_t3411225000_marshaled_com
{
Il2CppChar* ___Keyword_0;
UnityEvent_t2581268647 * ___Response_1;
};
#endif // KEYWORDANDRESPONSE_T3411225000_H
#ifndef NULLABLE_1_T4282624060_H
#define NULLABLE_1_T4282624060_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Nullable`1<System.UInt32>
struct Nullable_1_t4282624060
{
public:
// T System.Nullable`1::value
uint32_t ___value_0;
// System.Boolean System.Nullable`1::has_value
bool ___has_value_1;
public:
inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(Nullable_1_t4282624060, ___value_0)); }
inline uint32_t get_value_0() const { return ___value_0; }
inline uint32_t* get_address_of_value_0() { return &___value_0; }
inline void set_value_0(uint32_t value)
{
___value_0 = value;
}
inline static int32_t get_offset_of_has_value_1() { return static_cast<int32_t>(offsetof(Nullable_1_t4282624060, ___has_value_1)); }
inline bool get_has_value_1() const { return ___has_value_1; }
inline bool* get_address_of_has_value_1() { return &___has_value_1; }
inline void set_has_value_1(bool value)
{
___has_value_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // NULLABLE_1_T4282624060_H
#ifndef DISPLAYMODEENUM_T2177039354_H
#define DISPLAYMODEENUM_T2177039354_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.ControllerExamples.Brush/DisplayModeEnum
struct DisplayModeEnum_t2177039354
{
public:
// System.Int32 HoloToolkit.Unity.ControllerExamples.Brush/DisplayModeEnum::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(DisplayModeEnum_t2177039354, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DISPLAYMODEENUM_T2177039354_H
#ifndef STEPMODEENUM_T777535071_H
#define STEPMODEENUM_T777535071_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Design.LineUtils/StepModeEnum
struct StepModeEnum_t777535071
{
public:
// System.Int32 HoloToolkit.Unity.Design.LineUtils/StepModeEnum::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(StepModeEnum_t777535071, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // STEPMODEENUM_T777535071_H
#ifndef DISPLAYMODEENUM_T2111840609_H
#define DISPLAYMODEENUM_T2111840609_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.ControllerExamples.BrushController/DisplayModeEnum
struct DisplayModeEnum_t2111840609
{
public:
// System.Int32 HoloToolkit.Unity.ControllerExamples.BrushController/DisplayModeEnum::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(DisplayModeEnum_t2111840609, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DISPLAYMODEENUM_T2111840609_H
#ifndef DELEGATE_T1188392813_H
#define DELEGATE_T1188392813_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Delegate
struct Delegate_t1188392813 : public RuntimeObject
{
public:
// System.IntPtr System.Delegate::method_ptr
Il2CppMethodPointer ___method_ptr_0;
// System.IntPtr System.Delegate::invoke_impl
intptr_t ___invoke_impl_1;
// System.Object System.Delegate::m_target
RuntimeObject * ___m_target_2;
// System.IntPtr System.Delegate::method
intptr_t ___method_3;
// System.IntPtr System.Delegate::delegate_trampoline
intptr_t ___delegate_trampoline_4;
// System.IntPtr System.Delegate::extra_arg
intptr_t ___extra_arg_5;
// System.IntPtr System.Delegate::method_code
intptr_t ___method_code_6;
// System.Reflection.MethodInfo System.Delegate::method_info
MethodInfo_t * ___method_info_7;
// System.Reflection.MethodInfo System.Delegate::original_method_info
MethodInfo_t * ___original_method_info_8;
// System.DelegateData System.Delegate::data
DelegateData_t1677132599 * ___data_9;
// System.Boolean System.Delegate::method_is_virtual
bool ___method_is_virtual_10;
public:
inline static int32_t get_offset_of_method_ptr_0() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_ptr_0)); }
inline Il2CppMethodPointer get_method_ptr_0() const { return ___method_ptr_0; }
inline Il2CppMethodPointer* get_address_of_method_ptr_0() { return &___method_ptr_0; }
inline void set_method_ptr_0(Il2CppMethodPointer value)
{
___method_ptr_0 = value;
}
inline static int32_t get_offset_of_invoke_impl_1() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___invoke_impl_1)); }
inline intptr_t get_invoke_impl_1() const { return ___invoke_impl_1; }
inline intptr_t* get_address_of_invoke_impl_1() { return &___invoke_impl_1; }
inline void set_invoke_impl_1(intptr_t value)
{
___invoke_impl_1 = value;
}
inline static int32_t get_offset_of_m_target_2() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___m_target_2)); }
inline RuntimeObject * get_m_target_2() const { return ___m_target_2; }
inline RuntimeObject ** get_address_of_m_target_2() { return &___m_target_2; }
inline void set_m_target_2(RuntimeObject * value)
{
___m_target_2 = value;
Il2CppCodeGenWriteBarrier((&___m_target_2), value);
}
inline static int32_t get_offset_of_method_3() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_3)); }
inline intptr_t get_method_3() const { return ___method_3; }
inline intptr_t* get_address_of_method_3() { return &___method_3; }
inline void set_method_3(intptr_t value)
{
___method_3 = value;
}
inline static int32_t get_offset_of_delegate_trampoline_4() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___delegate_trampoline_4)); }
inline intptr_t get_delegate_trampoline_4() const { return ___delegate_trampoline_4; }
inline intptr_t* get_address_of_delegate_trampoline_4() { return &___delegate_trampoline_4; }
inline void set_delegate_trampoline_4(intptr_t value)
{
___delegate_trampoline_4 = value;
}
inline static int32_t get_offset_of_extra_arg_5() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___extra_arg_5)); }
inline intptr_t get_extra_arg_5() const { return ___extra_arg_5; }
inline intptr_t* get_address_of_extra_arg_5() { return &___extra_arg_5; }
inline void set_extra_arg_5(intptr_t value)
{
___extra_arg_5 = value;
}
inline static int32_t get_offset_of_method_code_6() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_code_6)); }
inline intptr_t get_method_code_6() const { return ___method_code_6; }
inline intptr_t* get_address_of_method_code_6() { return &___method_code_6; }
inline void set_method_code_6(intptr_t value)
{
___method_code_6 = value;
}
inline static int32_t get_offset_of_method_info_7() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_info_7)); }
inline MethodInfo_t * get_method_info_7() const { return ___method_info_7; }
inline MethodInfo_t ** get_address_of_method_info_7() { return &___method_info_7; }
inline void set_method_info_7(MethodInfo_t * value)
{
___method_info_7 = value;
Il2CppCodeGenWriteBarrier((&___method_info_7), value);
}
inline static int32_t get_offset_of_original_method_info_8() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___original_method_info_8)); }
inline MethodInfo_t * get_original_method_info_8() const { return ___original_method_info_8; }
inline MethodInfo_t ** get_address_of_original_method_info_8() { return &___original_method_info_8; }
inline void set_original_method_info_8(MethodInfo_t * value)
{
___original_method_info_8 = value;
Il2CppCodeGenWriteBarrier((&___original_method_info_8), value);
}
inline static int32_t get_offset_of_data_9() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___data_9)); }
inline DelegateData_t1677132599 * get_data_9() const { return ___data_9; }
inline DelegateData_t1677132599 ** get_address_of_data_9() { return &___data_9; }
inline void set_data_9(DelegateData_t1677132599 * value)
{
___data_9 = value;
Il2CppCodeGenWriteBarrier((&___data_9), value);
}
inline static int32_t get_offset_of_method_is_virtual_10() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_is_virtual_10)); }
inline bool get_method_is_virtual_10() const { return ___method_is_virtual_10; }
inline bool* get_address_of_method_is_virtual_10() { return &___method_is_virtual_10; }
inline void set_method_is_virtual_10(bool value)
{
___method_is_virtual_10 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Delegate
struct Delegate_t1188392813_marshaled_pinvoke
{
intptr_t ___method_ptr_0;
intptr_t ___invoke_impl_1;
Il2CppIUnknown* ___m_target_2;
intptr_t ___method_3;
intptr_t ___delegate_trampoline_4;
intptr_t ___extra_arg_5;
intptr_t ___method_code_6;
MethodInfo_t * ___method_info_7;
MethodInfo_t * ___original_method_info_8;
DelegateData_t1677132599 * ___data_9;
int32_t ___method_is_virtual_10;
};
// Native definition for COM marshalling of System.Delegate
struct Delegate_t1188392813_marshaled_com
{
intptr_t ___method_ptr_0;
intptr_t ___invoke_impl_1;
Il2CppIUnknown* ___m_target_2;
intptr_t ___method_3;
intptr_t ___delegate_trampoline_4;
intptr_t ___extra_arg_5;
intptr_t ___method_code_6;
MethodInfo_t * ___method_info_7;
MethodInfo_t * ___original_method_info_8;
DelegateData_t1677132599 * ___data_9;
int32_t ___method_is_virtual_10;
};
#endif // DELEGATE_T1188392813_H
#ifndef U3CDRAWOVERTIMEU3ED__31_T814362136_H
#define U3CDRAWOVERTIMEU3ED__31_T814362136_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.ControllerExamples.Brush/<DrawOverTime>d__31
struct U3CDrawOverTimeU3Ed__31_t814362136 : public RuntimeObject
{
public:
// System.Int32 HoloToolkit.Unity.ControllerExamples.Brush/<DrawOverTime>d__31::<>1__state
int32_t ___U3CU3E1__state_0;
// System.Object HoloToolkit.Unity.ControllerExamples.Brush/<DrawOverTime>d__31::<>2__current
RuntimeObject * ___U3CU3E2__current_1;
// HoloToolkit.Unity.ControllerExamples.Brush HoloToolkit.Unity.ControllerExamples.Brush/<DrawOverTime>d__31::<>4__this
Brush_t1548626474 * ___U3CU3E4__this_2;
// UnityEngine.Vector3 HoloToolkit.Unity.ControllerExamples.Brush/<DrawOverTime>d__31::<lastPointPosition>5__1
Vector3_t3722313464 ___U3ClastPointPositionU3E5__1_3;
// UnityEngine.Vector3 HoloToolkit.Unity.ControllerExamples.Brush/<DrawOverTime>d__31::<startPosition>5__2
Vector3_t3722313464 ___U3CstartPositionU3E5__2_4;
// UnityEngine.GameObject HoloToolkit.Unity.ControllerExamples.Brush/<DrawOverTime>d__31::<newStroke>5__3
GameObject_t1113636619 * ___U3CnewStrokeU3E5__3_5;
// UnityEngine.LineRenderer HoloToolkit.Unity.ControllerExamples.Brush/<DrawOverTime>d__31::<line>5__4
LineRenderer_t3154350270 * ___U3ClineU3E5__4_6;
// System.Single HoloToolkit.Unity.ControllerExamples.Brush/<DrawOverTime>d__31::<initialWidth>5__5
float ___U3CinitialWidthU3E5__5_7;
public:
inline static int32_t get_offset_of_U3CU3E1__state_0() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__31_t814362136, ___U3CU3E1__state_0)); }
inline int32_t get_U3CU3E1__state_0() const { return ___U3CU3E1__state_0; }
inline int32_t* get_address_of_U3CU3E1__state_0() { return &___U3CU3E1__state_0; }
inline void set_U3CU3E1__state_0(int32_t value)
{
___U3CU3E1__state_0 = value;
}
inline static int32_t get_offset_of_U3CU3E2__current_1() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__31_t814362136, ___U3CU3E2__current_1)); }
inline RuntimeObject * get_U3CU3E2__current_1() const { return ___U3CU3E2__current_1; }
inline RuntimeObject ** get_address_of_U3CU3E2__current_1() { return &___U3CU3E2__current_1; }
inline void set_U3CU3E2__current_1(RuntimeObject * value)
{
___U3CU3E2__current_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E2__current_1), value);
}
inline static int32_t get_offset_of_U3CU3E4__this_2() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__31_t814362136, ___U3CU3E4__this_2)); }
inline Brush_t1548626474 * get_U3CU3E4__this_2() const { return ___U3CU3E4__this_2; }
inline Brush_t1548626474 ** get_address_of_U3CU3E4__this_2() { return &___U3CU3E4__this_2; }
inline void set_U3CU3E4__this_2(Brush_t1548626474 * value)
{
___U3CU3E4__this_2 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E4__this_2), value);
}
inline static int32_t get_offset_of_U3ClastPointPositionU3E5__1_3() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__31_t814362136, ___U3ClastPointPositionU3E5__1_3)); }
inline Vector3_t3722313464 get_U3ClastPointPositionU3E5__1_3() const { return ___U3ClastPointPositionU3E5__1_3; }
inline Vector3_t3722313464 * get_address_of_U3ClastPointPositionU3E5__1_3() { return &___U3ClastPointPositionU3E5__1_3; }
inline void set_U3ClastPointPositionU3E5__1_3(Vector3_t3722313464 value)
{
___U3ClastPointPositionU3E5__1_3 = value;
}
inline static int32_t get_offset_of_U3CstartPositionU3E5__2_4() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__31_t814362136, ___U3CstartPositionU3E5__2_4)); }
inline Vector3_t3722313464 get_U3CstartPositionU3E5__2_4() const { return ___U3CstartPositionU3E5__2_4; }
inline Vector3_t3722313464 * get_address_of_U3CstartPositionU3E5__2_4() { return &___U3CstartPositionU3E5__2_4; }
inline void set_U3CstartPositionU3E5__2_4(Vector3_t3722313464 value)
{
___U3CstartPositionU3E5__2_4 = value;
}
inline static int32_t get_offset_of_U3CnewStrokeU3E5__3_5() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__31_t814362136, ___U3CnewStrokeU3E5__3_5)); }
inline GameObject_t1113636619 * get_U3CnewStrokeU3E5__3_5() const { return ___U3CnewStrokeU3E5__3_5; }
inline GameObject_t1113636619 ** get_address_of_U3CnewStrokeU3E5__3_5() { return &___U3CnewStrokeU3E5__3_5; }
inline void set_U3CnewStrokeU3E5__3_5(GameObject_t1113636619 * value)
{
___U3CnewStrokeU3E5__3_5 = value;
Il2CppCodeGenWriteBarrier((&___U3CnewStrokeU3E5__3_5), value);
}
inline static int32_t get_offset_of_U3ClineU3E5__4_6() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__31_t814362136, ___U3ClineU3E5__4_6)); }
inline LineRenderer_t3154350270 * get_U3ClineU3E5__4_6() const { return ___U3ClineU3E5__4_6; }
inline LineRenderer_t3154350270 ** get_address_of_U3ClineU3E5__4_6() { return &___U3ClineU3E5__4_6; }
inline void set_U3ClineU3E5__4_6(LineRenderer_t3154350270 * value)
{
___U3ClineU3E5__4_6 = value;
Il2CppCodeGenWriteBarrier((&___U3ClineU3E5__4_6), value);
}
inline static int32_t get_offset_of_U3CinitialWidthU3E5__5_7() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__31_t814362136, ___U3CinitialWidthU3E5__5_7)); }
inline float get_U3CinitialWidthU3E5__5_7() const { return ___U3CinitialWidthU3E5__5_7; }
inline float* get_address_of_U3CinitialWidthU3E5__5_7() { return &___U3CinitialWidthU3E5__5_7; }
inline void set_U3CinitialWidthU3E5__5_7(float value)
{
___U3CinitialWidthU3E5__5_7 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CDRAWOVERTIMEU3ED__31_T814362136_H
#ifndef INTERPOLATIONMODEENUM_T4207999760_H
#define INTERPOLATIONMODEENUM_T4207999760_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Design.LineUtils/InterpolationModeEnum
struct InterpolationModeEnum_t4207999760
{
public:
// System.Int32 HoloToolkit.Unity.Design.LineUtils/InterpolationModeEnum::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InterpolationModeEnum_t4207999760, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INTERPOLATIONMODEENUM_T4207999760_H
#ifndef SPLINEPOINT_T3315310755_H
#define SPLINEPOINT_T3315310755_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Design.SplinePoint
struct SplinePoint_t3315310755
{
public:
// UnityEngine.Vector3 HoloToolkit.Unity.Design.SplinePoint::Point
Vector3_t3722313464 ___Point_0;
// UnityEngine.Quaternion HoloToolkit.Unity.Design.SplinePoint::Rotation
Quaternion_t2301928331 ___Rotation_1;
public:
inline static int32_t get_offset_of_Point_0() { return static_cast<int32_t>(offsetof(SplinePoint_t3315310755, ___Point_0)); }
inline Vector3_t3722313464 get_Point_0() const { return ___Point_0; }
inline Vector3_t3722313464 * get_address_of_Point_0() { return &___Point_0; }
inline void set_Point_0(Vector3_t3722313464 value)
{
___Point_0 = value;
}
inline static int32_t get_offset_of_Rotation_1() { return static_cast<int32_t>(offsetof(SplinePoint_t3315310755, ___Rotation_1)); }
inline Quaternion_t2301928331 get_Rotation_1() const { return ___Rotation_1; }
inline Quaternion_t2301928331 * get_address_of_Rotation_1() { return &___Rotation_1; }
inline void set_Rotation_1(Quaternion_t2301928331 value)
{
___Rotation_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SPLINEPOINT_T3315310755_H
#ifndef LINEUTILS_T4143855974_H
#define LINEUTILS_T4143855974_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Design.LineUtils
struct LineUtils_t4143855974 : public RuntimeObject
{
public:
public:
};
struct LineUtils_t4143855974_StaticFields
{
public:
// UnityEngine.Vector3 HoloToolkit.Unity.Design.LineUtils::DefaultUpVector
Vector3_t3722313464 ___DefaultUpVector_0;
public:
inline static int32_t get_offset_of_DefaultUpVector_0() { return static_cast<int32_t>(offsetof(LineUtils_t4143855974_StaticFields, ___DefaultUpVector_0)); }
inline Vector3_t3722313464 get_DefaultUpVector_0() const { return ___DefaultUpVector_0; }
inline Vector3_t3722313464 * get_address_of_DefaultUpVector_0() { return &___DefaultUpVector_0; }
inline void set_DefaultUpVector_0(Vector3_t3722313464 value)
{
___DefaultUpVector_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LINEUTILS_T4143855974_H
#ifndef INTERACTIONSOURCEFLAGS_T1798650303_H
#define INTERACTIONSOURCEFLAGS_T1798650303_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.XR.WSA.Input.InteractionSourceFlags
struct InteractionSourceFlags_t1798650303
{
public:
// System.Int32 UnityEngine.XR.WSA.Input.InteractionSourceFlags::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InteractionSourceFlags_t1798650303, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INTERACTIONSOURCEFLAGS_T1798650303_H
#ifndef INTERACTIONSOURCEKIND_T3005082353_H
#define INTERACTIONSOURCEKIND_T3005082353_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.XR.WSA.Input.InteractionSourceKind
struct InteractionSourceKind_t3005082353
{
public:
// System.Int32 UnityEngine.XR.WSA.Input.InteractionSourceKind::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InteractionSourceKind_t3005082353, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INTERACTIONSOURCEKIND_T3005082353_H
#ifndef ROTATIONTYPEENUM_T2752505697_H
#define ROTATIONTYPEENUM_T2752505697_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Design.LineUtils/RotationTypeEnum
struct RotationTypeEnum_t2752505697
{
public:
// System.Int32 HoloToolkit.Unity.Design.LineUtils/RotationTypeEnum::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(RotationTypeEnum_t2752505697, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ROTATIONTYPEENUM_T2752505697_H
#ifndef OBJECT_T631007953_H
#define OBJECT_T631007953_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Object
struct Object_t631007953 : public RuntimeObject
{
public:
// System.IntPtr UnityEngine.Object::m_CachedPtr
intptr_t ___m_CachedPtr_0;
public:
inline static int32_t get_offset_of_m_CachedPtr_0() { return static_cast<int32_t>(offsetof(Object_t631007953, ___m_CachedPtr_0)); }
inline intptr_t get_m_CachedPtr_0() const { return ___m_CachedPtr_0; }
inline intptr_t* get_address_of_m_CachedPtr_0() { return &___m_CachedPtr_0; }
inline void set_m_CachedPtr_0(intptr_t value)
{
___m_CachedPtr_0 = value;
}
};
struct Object_t631007953_StaticFields
{
public:
// System.Int32 UnityEngine.Object::OffsetOfInstanceIDInCPlusPlusObject
int32_t ___OffsetOfInstanceIDInCPlusPlusObject_1;
public:
inline static int32_t get_offset_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return static_cast<int32_t>(offsetof(Object_t631007953_StaticFields, ___OffsetOfInstanceIDInCPlusPlusObject_1)); }
inline int32_t get_OffsetOfInstanceIDInCPlusPlusObject_1() const { return ___OffsetOfInstanceIDInCPlusPlusObject_1; }
inline int32_t* get_address_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return &___OffsetOfInstanceIDInCPlusPlusObject_1; }
inline void set_OffsetOfInstanceIDInCPlusPlusObject_1(int32_t value)
{
___OffsetOfInstanceIDInCPlusPlusObject_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of UnityEngine.Object
struct Object_t631007953_marshaled_pinvoke
{
intptr_t ___m_CachedPtr_0;
};
// Native definition for COM marshalling of UnityEngine.Object
struct Object_t631007953_marshaled_com
{
intptr_t ___m_CachedPtr_0;
};
#endif // OBJECT_T631007953_H
#ifndef INTERPOLATIONENUM_T2040439712_H
#define INTERPOLATIONENUM_T2040439712_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Design.LineUtils/InterpolationEnum
struct InterpolationEnum_t2040439712
{
public:
// System.Int32 HoloToolkit.Unity.Design.LineUtils/InterpolationEnum::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InterpolationEnum_t2040439712, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INTERPOLATIONENUM_T2040439712_H
#ifndef SPACEENUM_T2918055180_H
#define SPACEENUM_T2918055180_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Design.LineUtils/SpaceEnum
struct SpaceEnum_t2918055180
{
public:
// System.Int32 HoloToolkit.Unity.Design.LineUtils/SpaceEnum::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(SpaceEnum_t2918055180, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SPACEENUM_T2918055180_H
#ifndef BOUNDS_T2266837910_H
#define BOUNDS_T2266837910_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Bounds
struct Bounds_t2266837910
{
public:
// UnityEngine.Vector3 UnityEngine.Bounds::m_Center
Vector3_t3722313464 ___m_Center_0;
// UnityEngine.Vector3 UnityEngine.Bounds::m_Extents
Vector3_t3722313464 ___m_Extents_1;
public:
inline static int32_t get_offset_of_m_Center_0() { return static_cast<int32_t>(offsetof(Bounds_t2266837910, ___m_Center_0)); }
inline Vector3_t3722313464 get_m_Center_0() const { return ___m_Center_0; }
inline Vector3_t3722313464 * get_address_of_m_Center_0() { return &___m_Center_0; }
inline void set_m_Center_0(Vector3_t3722313464 value)
{
___m_Center_0 = value;
}
inline static int32_t get_offset_of_m_Extents_1() { return static_cast<int32_t>(offsetof(Bounds_t2266837910, ___m_Extents_1)); }
inline Vector3_t3722313464 get_m_Extents_1() const { return ___m_Extents_1; }
inline Vector3_t3722313464 * get_address_of_m_Extents_1() { return &___m_Extents_1; }
inline void set_m_Extents_1(Vector3_t3722313464 value)
{
___m_Extents_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BOUNDS_T2266837910_H
#ifndef TRACKINGSPACETYPE_T4214487160_H
#define TRACKINGSPACETYPE_T4214487160_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.XR.TrackingSpaceType
struct TrackingSpaceType_t4214487160
{
public:
// System.Int32 UnityEngine.XR.TrackingSpaceType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TrackingSpaceType_t4214487160, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TRACKINGSPACETYPE_T4214487160_H
#ifndef RAYCASTHIT_T1056001966_H
#define RAYCASTHIT_T1056001966_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.RaycastHit
struct RaycastHit_t1056001966
{
public:
// UnityEngine.Vector3 UnityEngine.RaycastHit::m_Point
Vector3_t3722313464 ___m_Point_0;
// UnityEngine.Vector3 UnityEngine.RaycastHit::m_Normal
Vector3_t3722313464 ___m_Normal_1;
// System.Int32 UnityEngine.RaycastHit::m_FaceID
int32_t ___m_FaceID_2;
// System.Single UnityEngine.RaycastHit::m_Distance
float ___m_Distance_3;
// UnityEngine.Vector2 UnityEngine.RaycastHit::m_UV
Vector2_t2156229523 ___m_UV_4;
// System.Int32 UnityEngine.RaycastHit::m_Collider
int32_t ___m_Collider_5;
public:
inline static int32_t get_offset_of_m_Point_0() { return static_cast<int32_t>(offsetof(RaycastHit_t1056001966, ___m_Point_0)); }
inline Vector3_t3722313464 get_m_Point_0() const { return ___m_Point_0; }
inline Vector3_t3722313464 * get_address_of_m_Point_0() { return &___m_Point_0; }
inline void set_m_Point_0(Vector3_t3722313464 value)
{
___m_Point_0 = value;
}
inline static int32_t get_offset_of_m_Normal_1() { return static_cast<int32_t>(offsetof(RaycastHit_t1056001966, ___m_Normal_1)); }
inline Vector3_t3722313464 get_m_Normal_1() const { return ___m_Normal_1; }
inline Vector3_t3722313464 * get_address_of_m_Normal_1() { return &___m_Normal_1; }
inline void set_m_Normal_1(Vector3_t3722313464 value)
{
___m_Normal_1 = value;
}
inline static int32_t get_offset_of_m_FaceID_2() { return static_cast<int32_t>(offsetof(RaycastHit_t1056001966, ___m_FaceID_2)); }
inline int32_t get_m_FaceID_2() const { return ___m_FaceID_2; }
inline int32_t* get_address_of_m_FaceID_2() { return &___m_FaceID_2; }
inline void set_m_FaceID_2(int32_t value)
{
___m_FaceID_2 = value;
}
inline static int32_t get_offset_of_m_Distance_3() { return static_cast<int32_t>(offsetof(RaycastHit_t1056001966, ___m_Distance_3)); }
inline float get_m_Distance_3() const { return ___m_Distance_3; }
inline float* get_address_of_m_Distance_3() { return &___m_Distance_3; }
inline void set_m_Distance_3(float value)
{
___m_Distance_3 = value;
}
inline static int32_t get_offset_of_m_UV_4() { return static_cast<int32_t>(offsetof(RaycastHit_t1056001966, ___m_UV_4)); }
inline Vector2_t2156229523 get_m_UV_4() const { return ___m_UV_4; }
inline Vector2_t2156229523 * get_address_of_m_UV_4() { return &___m_UV_4; }
inline void set_m_UV_4(Vector2_t2156229523 value)
{
___m_UV_4 = value;
}
inline static int32_t get_offset_of_m_Collider_5() { return static_cast<int32_t>(offsetof(RaycastHit_t1056001966, ___m_Collider_5)); }
inline int32_t get_m_Collider_5() const { return ___m_Collider_5; }
inline int32_t* get_address_of_m_Collider_5() { return &___m_Collider_5; }
inline void set_m_Collider_5(int32_t value)
{
___m_Collider_5 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RAYCASTHIT_T1056001966_H
#ifndef XBOXCONTROLLERMAPPINGTYPES_T483245337_H
#define XBOXCONTROLLERMAPPINGTYPES_T483245337_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.XboxControllerMappingTypes
struct XboxControllerMappingTypes_t483245337
{
public:
// System.Int32 HoloToolkit.Unity.InputModule.XboxControllerMappingTypes::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(XboxControllerMappingTypes_t483245337, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // XBOXCONTROLLERMAPPINGTYPES_T483245337_H
#ifndef KEYCODE_T2599294277_H
#define KEYCODE_T2599294277_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.KeyCode
struct KeyCode_t2599294277
{
public:
// System.Int32 UnityEngine.KeyCode::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(KeyCode_t2599294277, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYCODE_T2599294277_H
#ifndef INTERACTIONSOURCEHANDEDNESS_T3096408347_H
#define INTERACTIONSOURCEHANDEDNESS_T3096408347_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.XR.WSA.Input.InteractionSourceHandedness
struct InteractionSourceHandedness_t3096408347
{
public:
// System.Int32 UnityEngine.XR.WSA.Input.InteractionSourceHandedness::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InteractionSourceHandedness_t3096408347, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INTERACTIONSOURCEHANDEDNESS_T3096408347_H
#ifndef CAMERACLEARFLAGS_T2362496923_H
#define CAMERACLEARFLAGS_T2362496923_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.CameraClearFlags
struct CameraClearFlags_t2362496923
{
public:
// System.Int32 UnityEngine.CameraClearFlags::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(CameraClearFlags_t2362496923, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CAMERACLEARFLAGS_T2362496923_H
#ifndef RAY_T3785851493_H
#define RAY_T3785851493_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Ray
struct Ray_t3785851493
{
public:
// UnityEngine.Vector3 UnityEngine.Ray::m_Origin
Vector3_t3722313464 ___m_Origin_0;
// UnityEngine.Vector3 UnityEngine.Ray::m_Direction
Vector3_t3722313464 ___m_Direction_1;
public:
inline static int32_t get_offset_of_m_Origin_0() { return static_cast<int32_t>(offsetof(Ray_t3785851493, ___m_Origin_0)); }
inline Vector3_t3722313464 get_m_Origin_0() const { return ___m_Origin_0; }
inline Vector3_t3722313464 * get_address_of_m_Origin_0() { return &___m_Origin_0; }
inline void set_m_Origin_0(Vector3_t3722313464 value)
{
___m_Origin_0 = value;
}
inline static int32_t get_offset_of_m_Direction_1() { return static_cast<int32_t>(offsetof(Ray_t3785851493, ___m_Direction_1)); }
inline Vector3_t3722313464 get_m_Direction_1() const { return ___m_Direction_1; }
inline Vector3_t3722313464 * get_address_of_m_Direction_1() { return &___m_Direction_1; }
inline void set_m_Direction_1(Vector3_t3722313464 value)
{
___m_Direction_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RAY_T3785851493_H
#ifndef SWIPEENUM_T3123030255_H
#define SWIPEENUM_T3123030255_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.ControllerExamples.BrushSelector/SwipeEnum
struct SwipeEnum_t3123030255
{
public:
// System.Int32 HoloToolkit.Unity.ControllerExamples.BrushSelector/SwipeEnum::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(SwipeEnum_t3123030255, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SWIPEENUM_T3123030255_H
#ifndef U3CDRAWOVERTIMEU3ED__24_T1141827424_H
#define U3CDRAWOVERTIMEU3ED__24_T1141827424_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.ControllerExamples.BrushController/<DrawOverTime>d__24
struct U3CDrawOverTimeU3Ed__24_t1141827424 : public RuntimeObject
{
public:
// System.Int32 HoloToolkit.Unity.ControllerExamples.BrushController/<DrawOverTime>d__24::<>1__state
int32_t ___U3CU3E1__state_0;
// System.Object HoloToolkit.Unity.ControllerExamples.BrushController/<DrawOverTime>d__24::<>2__current
RuntimeObject * ___U3CU3E2__current_1;
// HoloToolkit.Unity.ControllerExamples.BrushController HoloToolkit.Unity.ControllerExamples.BrushController/<DrawOverTime>d__24::<>4__this
BrushController_t3766631826 * ___U3CU3E4__this_2;
// UnityEngine.Vector3 HoloToolkit.Unity.ControllerExamples.BrushController/<DrawOverTime>d__24::<lastPointPosition>5__1
Vector3_t3722313464 ___U3ClastPointPositionU3E5__1_3;
// UnityEngine.Vector3 HoloToolkit.Unity.ControllerExamples.BrushController/<DrawOverTime>d__24::<startPosition>5__2
Vector3_t3722313464 ___U3CstartPositionU3E5__2_4;
// UnityEngine.GameObject HoloToolkit.Unity.ControllerExamples.BrushController/<DrawOverTime>d__24::<newStroke>5__3
GameObject_t1113636619 * ___U3CnewStrokeU3E5__3_5;
// UnityEngine.LineRenderer HoloToolkit.Unity.ControllerExamples.BrushController/<DrawOverTime>d__24::<line>5__4
LineRenderer_t3154350270 * ___U3ClineU3E5__4_6;
// System.Single HoloToolkit.Unity.ControllerExamples.BrushController/<DrawOverTime>d__24::<initialWidth>5__5
float ___U3CinitialWidthU3E5__5_7;
public:
inline static int32_t get_offset_of_U3CU3E1__state_0() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__24_t1141827424, ___U3CU3E1__state_0)); }
inline int32_t get_U3CU3E1__state_0() const { return ___U3CU3E1__state_0; }
inline int32_t* get_address_of_U3CU3E1__state_0() { return &___U3CU3E1__state_0; }
inline void set_U3CU3E1__state_0(int32_t value)
{
___U3CU3E1__state_0 = value;
}
inline static int32_t get_offset_of_U3CU3E2__current_1() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__24_t1141827424, ___U3CU3E2__current_1)); }
inline RuntimeObject * get_U3CU3E2__current_1() const { return ___U3CU3E2__current_1; }
inline RuntimeObject ** get_address_of_U3CU3E2__current_1() { return &___U3CU3E2__current_1; }
inline void set_U3CU3E2__current_1(RuntimeObject * value)
{
___U3CU3E2__current_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E2__current_1), value);
}
inline static int32_t get_offset_of_U3CU3E4__this_2() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__24_t1141827424, ___U3CU3E4__this_2)); }
inline BrushController_t3766631826 * get_U3CU3E4__this_2() const { return ___U3CU3E4__this_2; }
inline BrushController_t3766631826 ** get_address_of_U3CU3E4__this_2() { return &___U3CU3E4__this_2; }
inline void set_U3CU3E4__this_2(BrushController_t3766631826 * value)
{
___U3CU3E4__this_2 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E4__this_2), value);
}
inline static int32_t get_offset_of_U3ClastPointPositionU3E5__1_3() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__24_t1141827424, ___U3ClastPointPositionU3E5__1_3)); }
inline Vector3_t3722313464 get_U3ClastPointPositionU3E5__1_3() const { return ___U3ClastPointPositionU3E5__1_3; }
inline Vector3_t3722313464 * get_address_of_U3ClastPointPositionU3E5__1_3() { return &___U3ClastPointPositionU3E5__1_3; }
inline void set_U3ClastPointPositionU3E5__1_3(Vector3_t3722313464 value)
{
___U3ClastPointPositionU3E5__1_3 = value;
}
inline static int32_t get_offset_of_U3CstartPositionU3E5__2_4() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__24_t1141827424, ___U3CstartPositionU3E5__2_4)); }
inline Vector3_t3722313464 get_U3CstartPositionU3E5__2_4() const { return ___U3CstartPositionU3E5__2_4; }
inline Vector3_t3722313464 * get_address_of_U3CstartPositionU3E5__2_4() { return &___U3CstartPositionU3E5__2_4; }
inline void set_U3CstartPositionU3E5__2_4(Vector3_t3722313464 value)
{
___U3CstartPositionU3E5__2_4 = value;
}
inline static int32_t get_offset_of_U3CnewStrokeU3E5__3_5() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__24_t1141827424, ___U3CnewStrokeU3E5__3_5)); }
inline GameObject_t1113636619 * get_U3CnewStrokeU3E5__3_5() const { return ___U3CnewStrokeU3E5__3_5; }
inline GameObject_t1113636619 ** get_address_of_U3CnewStrokeU3E5__3_5() { return &___U3CnewStrokeU3E5__3_5; }
inline void set_U3CnewStrokeU3E5__3_5(GameObject_t1113636619 * value)
{
___U3CnewStrokeU3E5__3_5 = value;
Il2CppCodeGenWriteBarrier((&___U3CnewStrokeU3E5__3_5), value);
}
inline static int32_t get_offset_of_U3ClineU3E5__4_6() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__24_t1141827424, ___U3ClineU3E5__4_6)); }
inline LineRenderer_t3154350270 * get_U3ClineU3E5__4_6() const { return ___U3ClineU3E5__4_6; }
inline LineRenderer_t3154350270 ** get_address_of_U3ClineU3E5__4_6() { return &___U3ClineU3E5__4_6; }
inline void set_U3ClineU3E5__4_6(LineRenderer_t3154350270 * value)
{
___U3ClineU3E5__4_6 = value;
Il2CppCodeGenWriteBarrier((&___U3ClineU3E5__4_6), value);
}
inline static int32_t get_offset_of_U3CinitialWidthU3E5__5_7() { return static_cast<int32_t>(offsetof(U3CDrawOverTimeU3Ed__24_t1141827424, ___U3CinitialWidthU3E5__5_7)); }
inline float get_U3CinitialWidthU3E5__5_7() const { return ___U3CinitialWidthU3E5__5_7; }
inline float* get_address_of_U3CinitialWidthU3E5__5_7() { return &___U3CinitialWidthU3E5__5_7; }
inline void set_U3CinitialWidthU3E5__5_7(float value)
{
___U3CinitialWidthU3E5__5_7 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CDRAWOVERTIMEU3ED__24_T1141827424_H
#ifndef U3CERASESTROKESOVERTIMEU3ED__5_T963038218_H
#define U3CERASESTROKESOVERTIMEU3ED__5_T963038218_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.ControllerExamples.Eraser/<EraseStrokesOverTime>d__5
struct U3CEraseStrokesOverTimeU3Ed__5_t963038218 : public RuntimeObject
{
public:
// System.Int32 HoloToolkit.Unity.ControllerExamples.Eraser/<EraseStrokesOverTime>d__5::<>1__state
int32_t ___U3CU3E1__state_0;
// System.Object HoloToolkit.Unity.ControllerExamples.Eraser/<EraseStrokesOverTime>d__5::<>2__current
RuntimeObject * ___U3CU3E2__current_1;
// HoloToolkit.Unity.ControllerExamples.Eraser HoloToolkit.Unity.ControllerExamples.Eraser/<EraseStrokesOverTime>d__5::<>4__this
Eraser_t1049249012 * ___U3CU3E4__this_2;
// UnityEngine.LineRenderer HoloToolkit.Unity.ControllerExamples.Eraser/<EraseStrokesOverTime>d__5::<lineRenderer>5__1
LineRenderer_t3154350270 * ___U3ClineRendererU3E5__1_3;
// System.Single HoloToolkit.Unity.ControllerExamples.Eraser/<EraseStrokesOverTime>d__5::<startTime>5__2
float ___U3CstartTimeU3E5__2_4;
// System.Single HoloToolkit.Unity.ControllerExamples.Eraser/<EraseStrokesOverTime>d__5::<startWidth>5__3
float ___U3CstartWidthU3E5__3_5;
// UnityEngine.Vector3[] HoloToolkit.Unity.ControllerExamples.Eraser/<EraseStrokesOverTime>d__5::<startPositions>5__4
Vector3U5BU5D_t1718750761* ___U3CstartPositionsU3E5__4_6;
// UnityEngine.Vector3[] HoloToolkit.Unity.ControllerExamples.Eraser/<EraseStrokesOverTime>d__5::<endPositions>5__5
Vector3U5BU5D_t1718750761* ___U3CendPositionsU3E5__5_7;
// System.Single HoloToolkit.Unity.ControllerExamples.Eraser/<EraseStrokesOverTime>d__5::<normalizedTime>5__6
float ___U3CnormalizedTimeU3E5__6_8;
// System.Int32 HoloToolkit.Unity.ControllerExamples.Eraser/<EraseStrokesOverTime>d__5::<i>5__7
int32_t ___U3CiU3E5__7_9;
// UnityEngine.Vector3 HoloToolkit.Unity.ControllerExamples.Eraser/<EraseStrokesOverTime>d__5::<randomNoise>5__8
Vector3_t3722313464 ___U3CrandomNoiseU3E5__8_10;
public:
inline static int32_t get_offset_of_U3CU3E1__state_0() { return static_cast<int32_t>(offsetof(U3CEraseStrokesOverTimeU3Ed__5_t963038218, ___U3CU3E1__state_0)); }
inline int32_t get_U3CU3E1__state_0() const { return ___U3CU3E1__state_0; }
inline int32_t* get_address_of_U3CU3E1__state_0() { return &___U3CU3E1__state_0; }
inline void set_U3CU3E1__state_0(int32_t value)
{
___U3CU3E1__state_0 = value;
}
inline static int32_t get_offset_of_U3CU3E2__current_1() { return static_cast<int32_t>(offsetof(U3CEraseStrokesOverTimeU3Ed__5_t963038218, ___U3CU3E2__current_1)); }
inline RuntimeObject * get_U3CU3E2__current_1() const { return ___U3CU3E2__current_1; }
inline RuntimeObject ** get_address_of_U3CU3E2__current_1() { return &___U3CU3E2__current_1; }
inline void set_U3CU3E2__current_1(RuntimeObject * value)
{
___U3CU3E2__current_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E2__current_1), value);
}
inline static int32_t get_offset_of_U3CU3E4__this_2() { return static_cast<int32_t>(offsetof(U3CEraseStrokesOverTimeU3Ed__5_t963038218, ___U3CU3E4__this_2)); }
inline Eraser_t1049249012 * get_U3CU3E4__this_2() const { return ___U3CU3E4__this_2; }
inline Eraser_t1049249012 ** get_address_of_U3CU3E4__this_2() { return &___U3CU3E4__this_2; }
inline void set_U3CU3E4__this_2(Eraser_t1049249012 * value)
{
___U3CU3E4__this_2 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E4__this_2), value);
}
inline static int32_t get_offset_of_U3ClineRendererU3E5__1_3() { return static_cast<int32_t>(offsetof(U3CEraseStrokesOverTimeU3Ed__5_t963038218, ___U3ClineRendererU3E5__1_3)); }
inline LineRenderer_t3154350270 * get_U3ClineRendererU3E5__1_3() const { return ___U3ClineRendererU3E5__1_3; }
inline LineRenderer_t3154350270 ** get_address_of_U3ClineRendererU3E5__1_3() { return &___U3ClineRendererU3E5__1_3; }
inline void set_U3ClineRendererU3E5__1_3(LineRenderer_t3154350270 * value)
{
___U3ClineRendererU3E5__1_3 = value;
Il2CppCodeGenWriteBarrier((&___U3ClineRendererU3E5__1_3), value);
}
inline static int32_t get_offset_of_U3CstartTimeU3E5__2_4() { return static_cast<int32_t>(offsetof(U3CEraseStrokesOverTimeU3Ed__5_t963038218, ___U3CstartTimeU3E5__2_4)); }
inline float get_U3CstartTimeU3E5__2_4() const { return ___U3CstartTimeU3E5__2_4; }
inline float* get_address_of_U3CstartTimeU3E5__2_4() { return &___U3CstartTimeU3E5__2_4; }
inline void set_U3CstartTimeU3E5__2_4(float value)
{
___U3CstartTimeU3E5__2_4 = value;
}
inline static int32_t get_offset_of_U3CstartWidthU3E5__3_5() { return static_cast<int32_t>(offsetof(U3CEraseStrokesOverTimeU3Ed__5_t963038218, ___U3CstartWidthU3E5__3_5)); }
inline float get_U3CstartWidthU3E5__3_5() const { return ___U3CstartWidthU3E5__3_5; }
inline float* get_address_of_U3CstartWidthU3E5__3_5() { return &___U3CstartWidthU3E5__3_5; }
inline void set_U3CstartWidthU3E5__3_5(float value)
{
___U3CstartWidthU3E5__3_5 = value;
}
inline static int32_t get_offset_of_U3CstartPositionsU3E5__4_6() { return static_cast<int32_t>(offsetof(U3CEraseStrokesOverTimeU3Ed__5_t963038218, ___U3CstartPositionsU3E5__4_6)); }
inline Vector3U5BU5D_t1718750761* get_U3CstartPositionsU3E5__4_6() const { return ___U3CstartPositionsU3E5__4_6; }
inline Vector3U5BU5D_t1718750761** get_address_of_U3CstartPositionsU3E5__4_6() { return &___U3CstartPositionsU3E5__4_6; }
inline void set_U3CstartPositionsU3E5__4_6(Vector3U5BU5D_t1718750761* value)
{
___U3CstartPositionsU3E5__4_6 = value;
Il2CppCodeGenWriteBarrier((&___U3CstartPositionsU3E5__4_6), value);
}
inline static int32_t get_offset_of_U3CendPositionsU3E5__5_7() { return static_cast<int32_t>(offsetof(U3CEraseStrokesOverTimeU3Ed__5_t963038218, ___U3CendPositionsU3E5__5_7)); }
inline Vector3U5BU5D_t1718750761* get_U3CendPositionsU3E5__5_7() const { return ___U3CendPositionsU3E5__5_7; }
inline Vector3U5BU5D_t1718750761** get_address_of_U3CendPositionsU3E5__5_7() { return &___U3CendPositionsU3E5__5_7; }
inline void set_U3CendPositionsU3E5__5_7(Vector3U5BU5D_t1718750761* value)
{
___U3CendPositionsU3E5__5_7 = value;
Il2CppCodeGenWriteBarrier((&___U3CendPositionsU3E5__5_7), value);
}
inline static int32_t get_offset_of_U3CnormalizedTimeU3E5__6_8() { return static_cast<int32_t>(offsetof(U3CEraseStrokesOverTimeU3Ed__5_t963038218, ___U3CnormalizedTimeU3E5__6_8)); }
inline float get_U3CnormalizedTimeU3E5__6_8() const { return ___U3CnormalizedTimeU3E5__6_8; }
inline float* get_address_of_U3CnormalizedTimeU3E5__6_8() { return &___U3CnormalizedTimeU3E5__6_8; }
inline void set_U3CnormalizedTimeU3E5__6_8(float value)
{
___U3CnormalizedTimeU3E5__6_8 = value;
}
inline static int32_t get_offset_of_U3CiU3E5__7_9() { return static_cast<int32_t>(offsetof(U3CEraseStrokesOverTimeU3Ed__5_t963038218, ___U3CiU3E5__7_9)); }
inline int32_t get_U3CiU3E5__7_9() const { return ___U3CiU3E5__7_9; }
inline int32_t* get_address_of_U3CiU3E5__7_9() { return &___U3CiU3E5__7_9; }
inline void set_U3CiU3E5__7_9(int32_t value)
{
___U3CiU3E5__7_9 = value;
}
inline static int32_t get_offset_of_U3CrandomNoiseU3E5__8_10() { return static_cast<int32_t>(offsetof(U3CEraseStrokesOverTimeU3Ed__5_t963038218, ___U3CrandomNoiseU3E5__8_10)); }
inline Vector3_t3722313464 get_U3CrandomNoiseU3E5__8_10() const { return ___U3CrandomNoiseU3E5__8_10; }
inline Vector3_t3722313464 * get_address_of_U3CrandomNoiseU3E5__8_10() { return &___U3CrandomNoiseU3E5__8_10; }
inline void set_U3CrandomNoiseU3E5__8_10(Vector3_t3722313464 value)
{
___U3CrandomNoiseU3E5__8_10 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CERASESTROKESOVERTIMEU3ED__5_T963038218_H
#ifndef INTERACTIONSOURCEPRESSTYPE_T876504354_H
#define INTERACTIONSOURCEPRESSTYPE_T876504354_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.XR.WSA.Input.InteractionSourcePressType
struct InteractionSourcePressType_t876504354
{
public:
// System.Int32 UnityEngine.XR.WSA.Input.InteractionSourcePressType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InteractionSourcePressType_t876504354, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INTERACTIONSOURCEPRESSTYPE_T876504354_H
#ifndef U3CPRIVATEIMPLEMENTATIONDETAILSU3E_T3057255377_H
#define U3CPRIVATEIMPLEMENTATIONDETAILSU3E_T3057255377_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <PrivateImplementationDetails>
struct U3CPrivateImplementationDetailsU3E_t3057255377 : public RuntimeObject
{
public:
public:
};
struct U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields
{
public:
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=128 <PrivateImplementationDetails>::013E068C5CF13ADD6FADCBE20DC57D04D9748467
__StaticArrayInitTypeSizeU3D128_t531529104 ___013E068C5CF13ADD6FADCBE20DC57D04D9748467_0;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=864 <PrivateImplementationDetails>::0C334FA5B28CF955C37AF8CEFB7F11ED8156B371
__StaticArrayInitTypeSizeU3D864_t1736813345 ___0C334FA5B28CF955C37AF8CEFB7F11ED8156B371_1;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=200 <PrivateImplementationDetails>::0F9516F3B2268DEFAD0122DF5B7EB338BD7C6F20
__StaticArrayInitTypeSizeU3D200_t2134545495 ___0F9516F3B2268DEFAD0122DF5B7EB338BD7C6F20_2;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=2048 <PrivateImplementationDetails>::1D1DF6626546FCE866E0F077A81E3F15D2FDAA02
__StaticArrayInitTypeSizeU3D2048_t1070431641 ___1D1DF6626546FCE866E0F077A81E3F15D2FDAA02_3;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=36 <PrivateImplementationDetails>::326FF6F77BB5C244576A14A56AB1CB5F79950ED5
__StaticArrayInitTypeSizeU3D36_t385526563 ___326FF6F77BB5C244576A14A56AB1CB5F79950ED5_4;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=5120 <PrivateImplementationDetails>::39E2F60BD85399DDD5728E8DD2951FB4457ABEC4
__StaticArrayInitTypeSizeU3D5120_t1474365685 ___39E2F60BD85399DDD5728E8DD2951FB4457ABEC4_5;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=64 <PrivateImplementationDetails>::5D55BEE8A63F25A4C9ADC5776E15D1077A336940
__StaticArrayInitTypeSizeU3D64_t3517497838 ___5D55BEE8A63F25A4C9ADC5776E15D1077A336940_6;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=96 <PrivateImplementationDetails>::62E39AF6A4EDE5B98ACA51428D9AF0E37629FB4F
__StaticArrayInitTypeSizeU3D96_t385919777 ___62E39AF6A4EDE5B98ACA51428D9AF0E37629FB4F_7;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=100 <PrivateImplementationDetails>::6497EB3FE2DD456D24F706237E5A882D2BA9996F
__StaticArrayInitTypeSizeU3D100_t2134348887 ___6497EB3FE2DD456D24F706237E5A882D2BA9996F_8;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=96 <PrivateImplementationDetails>::77500517B2CAA87B3925D20EEAA1428A8CD11B9C
__StaticArrayInitTypeSizeU3D96_t385919777 ___77500517B2CAA87B3925D20EEAA1428A8CD11B9C_9;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=36 <PrivateImplementationDetails>::7C864787BEF4C9722095E7546132ACBC5C8FD940
__StaticArrayInitTypeSizeU3D36_t385526563 ___7C864787BEF4C9722095E7546132ACBC5C8FD940_10;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=64 <PrivateImplementationDetails>::8634E53F81A91ED972DCFB19F840F53AC39A67F9
__StaticArrayInitTypeSizeU3D64_t3517497838 ___8634E53F81A91ED972DCFB19F840F53AC39A67F9_11;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=576 <PrivateImplementationDetails>::888C635713ED1BDB91D86A17C2F3F4647CF4A55F
__StaticArrayInitTypeSizeU3D576_t2919708294 ___888C635713ED1BDB91D86A17C2F3F4647CF4A55F_12;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=576 <PrivateImplementationDetails>::8CFF0276DAC339BBEAD6BFC55B53ED9492217C08
__StaticArrayInitTypeSizeU3D576_t2919708294 ___8CFF0276DAC339BBEAD6BFC55B53ED9492217C08_13;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=4480 <PrivateImplementationDetails>::9AE3FD136714B4C4439E72CA48C36314C843CA0E
__StaticArrayInitTypeSizeU3D4480_t3791498020 ___9AE3FD136714B4C4439E72CA48C36314C843CA0E_14;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=200 <PrivateImplementationDetails>::A714705DEAA10EE10D925E684E64E7CC81896007
__StaticArrayInitTypeSizeU3D200_t2134545495 ___A714705DEAA10EE10D925E684E64E7CC81896007_15;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=100 <PrivateImplementationDetails>::C962AD6D5D1773668C4D37330DA336E1C53D07DE
__StaticArrayInitTypeSizeU3D100_t2134348887 ___C962AD6D5D1773668C4D37330DA336E1C53D07DE_16;
// <PrivateImplementationDetails>/__StaticArrayInitTypeSize=96 <PrivateImplementationDetails>::F84A5DF36B7884A8F76FAEED14A7E066C2DAA4DC
__StaticArrayInitTypeSizeU3D96_t385919777 ___F84A5DF36B7884A8F76FAEED14A7E066C2DAA4DC_17;
public:
inline static int32_t get_offset_of_U3013E068C5CF13ADD6FADCBE20DC57D04D9748467_0() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields, ___013E068C5CF13ADD6FADCBE20DC57D04D9748467_0)); }
inline __StaticArrayInitTypeSizeU3D128_t531529104 get_U3013E068C5CF13ADD6FADCBE20DC57D04D9748467_0() const { return ___013E068C5CF13ADD6FADCBE20DC57D04D9748467_0; }
inline __StaticArrayInitTypeSizeU3D128_t531529104 * get_address_of_U3013E068C5CF13ADD6FADCBE20DC57D04D9748467_0() { return &___013E068C5CF13ADD6FADCBE20DC57D04D9748467_0; }
inline void set_U3013E068C5CF13ADD6FADCBE20DC57D04D9748467_0(__StaticArrayInitTypeSizeU3D128_t531529104 value)
{
___013E068C5CF13ADD6FADCBE20DC57D04D9748467_0 = value;
}
inline static int32_t get_offset_of_U30C334FA5B28CF955C37AF8CEFB7F11ED8156B371_1() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields, ___0C334FA5B28CF955C37AF8CEFB7F11ED8156B371_1)); }
inline __StaticArrayInitTypeSizeU3D864_t1736813345 get_U30C334FA5B28CF955C37AF8CEFB7F11ED8156B371_1() const { return ___0C334FA5B28CF955C37AF8CEFB7F11ED8156B371_1; }
inline __StaticArrayInitTypeSizeU3D864_t1736813345 * get_address_of_U30C334FA5B28CF955C37AF8CEFB7F11ED8156B371_1() { return &___0C334FA5B28CF955C37AF8CEFB7F11ED8156B371_1; }
inline void set_U30C334FA5B28CF955C37AF8CEFB7F11ED8156B371_1(__StaticArrayInitTypeSizeU3D864_t1736813345 value)
{
___0C334FA5B28CF955C37AF8CEFB7F11ED8156B371_1 = value;
}
inline static int32_t get_offset_of_U30F9516F3B2268DEFAD0122DF5B7EB338BD7C6F20_2() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields, ___0F9516F3B2268DEFAD0122DF5B7EB338BD7C6F20_2)); }
inline __StaticArrayInitTypeSizeU3D200_t2134545495 get_U30F9516F3B2268DEFAD0122DF5B7EB338BD7C6F20_2() const { return ___0F9516F3B2268DEFAD0122DF5B7EB338BD7C6F20_2; }
inline __StaticArrayInitTypeSizeU3D200_t2134545495 * get_address_of_U30F9516F3B2268DEFAD0122DF5B7EB338BD7C6F20_2() { return &___0F9516F3B2268DEFAD0122DF5B7EB338BD7C6F20_2; }
inline void set_U30F9516F3B2268DEFAD0122DF5B7EB338BD7C6F20_2(__StaticArrayInitTypeSizeU3D200_t2134545495 value)
{
___0F9516F3B2268DEFAD0122DF5B7EB338BD7C6F20_2 = value;
}
inline static int32_t get_offset_of_U31D1DF6626546FCE866E0F077A81E3F15D2FDAA02_3() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields, ___1D1DF6626546FCE866E0F077A81E3F15D2FDAA02_3)); }
inline __StaticArrayInitTypeSizeU3D2048_t1070431641 get_U31D1DF6626546FCE866E0F077A81E3F15D2FDAA02_3() const { return ___1D1DF6626546FCE866E0F077A81E3F15D2FDAA02_3; }
inline __StaticArrayInitTypeSizeU3D2048_t1070431641 * get_address_of_U31D1DF6626546FCE866E0F077A81E3F15D2FDAA02_3() { return &___1D1DF6626546FCE866E0F077A81E3F15D2FDAA02_3; }
inline void set_U31D1DF6626546FCE866E0F077A81E3F15D2FDAA02_3(__StaticArrayInitTypeSizeU3D2048_t1070431641 value)
{
___1D1DF6626546FCE866E0F077A81E3F15D2FDAA02_3 = value;
}
inline static int32_t get_offset_of_U3326FF6F77BB5C244576A14A56AB1CB5F79950ED5_4() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields, ___326FF6F77BB5C244576A14A56AB1CB5F79950ED5_4)); }
inline __StaticArrayInitTypeSizeU3D36_t385526563 get_U3326FF6F77BB5C244576A14A56AB1CB5F79950ED5_4() const { return ___326FF6F77BB5C244576A14A56AB1CB5F79950ED5_4; }
inline __StaticArrayInitTypeSizeU3D36_t385526563 * get_address_of_U3326FF6F77BB5C244576A14A56AB1CB5F79950ED5_4() { return &___326FF6F77BB5C244576A14A56AB1CB5F79950ED5_4; }
inline void set_U3326FF6F77BB5C244576A14A56AB1CB5F79950ED5_4(__StaticArrayInitTypeSizeU3D36_t385526563 value)
{
___326FF6F77BB5C244576A14A56AB1CB5F79950ED5_4 = value;
}
inline static int32_t get_offset_of_U339E2F60BD85399DDD5728E8DD2951FB4457ABEC4_5() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields, ___39E2F60BD85399DDD5728E8DD2951FB4457ABEC4_5)); }
inline __StaticArrayInitTypeSizeU3D5120_t1474365685 get_U339E2F60BD85399DDD5728E8DD2951FB4457ABEC4_5() const { return ___39E2F60BD85399DDD5728E8DD2951FB4457ABEC4_5; }
inline __StaticArrayInitTypeSizeU3D5120_t1474365685 * get_address_of_U339E2F60BD85399DDD5728E8DD2951FB4457ABEC4_5() { return &___39E2F60BD85399DDD5728E8DD2951FB4457ABEC4_5; }
inline void set_U339E2F60BD85399DDD5728E8DD2951FB4457ABEC4_5(__StaticArrayInitTypeSizeU3D5120_t1474365685 value)
{
___39E2F60BD85399DDD5728E8DD2951FB4457ABEC4_5 = value;
}
inline static int32_t get_offset_of_U35D55BEE8A63F25A4C9ADC5776E15D1077A336940_6() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields, ___5D55BEE8A63F25A4C9ADC5776E15D1077A336940_6)); }
inline __StaticArrayInitTypeSizeU3D64_t3517497838 get_U35D55BEE8A63F25A4C9ADC5776E15D1077A336940_6() const { return ___5D55BEE8A63F25A4C9ADC5776E15D1077A336940_6; }
inline __StaticArrayInitTypeSizeU3D64_t3517497838 * get_address_of_U35D55BEE8A63F25A4C9ADC5776E15D1077A336940_6() { return &___5D55BEE8A63F25A4C9ADC5776E15D1077A336940_6; }
inline void set_U35D55BEE8A63F25A4C9ADC5776E15D1077A336940_6(__StaticArrayInitTypeSizeU3D64_t3517497838 value)
{
___5D55BEE8A63F25A4C9ADC5776E15D1077A336940_6 = value;
}
inline static int32_t get_offset_of_U362E39AF6A4EDE5B98ACA51428D9AF0E37629FB4F_7() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields, ___62E39AF6A4EDE5B98ACA51428D9AF0E37629FB4F_7)); }
inline __StaticArrayInitTypeSizeU3D96_t385919777 get_U362E39AF6A4EDE5B98ACA51428D9AF0E37629FB4F_7() const { return ___62E39AF6A4EDE5B98ACA51428D9AF0E37629FB4F_7; }
inline __StaticArrayInitTypeSizeU3D96_t385919777 * get_address_of_U362E39AF6A4EDE5B98ACA51428D9AF0E37629FB4F_7() { return &___62E39AF6A4EDE5B98ACA51428D9AF0E37629FB4F_7; }
inline void set_U362E39AF6A4EDE5B98ACA51428D9AF0E37629FB4F_7(__StaticArrayInitTypeSizeU3D96_t385919777 value)
{
___62E39AF6A4EDE5B98ACA51428D9AF0E37629FB4F_7 = value;
}
inline static int32_t get_offset_of_U36497EB3FE2DD456D24F706237E5A882D2BA9996F_8() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields, ___6497EB3FE2DD456D24F706237E5A882D2BA9996F_8)); }
inline __StaticArrayInitTypeSizeU3D100_t2134348887 get_U36497EB3FE2DD456D24F706237E5A882D2BA9996F_8() const { return ___6497EB3FE2DD456D24F706237E5A882D2BA9996F_8; }
inline __StaticArrayInitTypeSizeU3D100_t2134348887 * get_address_of_U36497EB3FE2DD456D24F706237E5A882D2BA9996F_8() { return &___6497EB3FE2DD456D24F706237E5A882D2BA9996F_8; }
inline void set_U36497EB3FE2DD456D24F706237E5A882D2BA9996F_8(__StaticArrayInitTypeSizeU3D100_t2134348887 value)
{
___6497EB3FE2DD456D24F706237E5A882D2BA9996F_8 = value;
}
inline static int32_t get_offset_of_U377500517B2CAA87B3925D20EEAA1428A8CD11B9C_9() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields, ___77500517B2CAA87B3925D20EEAA1428A8CD11B9C_9)); }
inline __StaticArrayInitTypeSizeU3D96_t385919777 get_U377500517B2CAA87B3925D20EEAA1428A8CD11B9C_9() const { return ___77500517B2CAA87B3925D20EEAA1428A8CD11B9C_9; }
inline __StaticArrayInitTypeSizeU3D96_t385919777 * get_address_of_U377500517B2CAA87B3925D20EEAA1428A8CD11B9C_9() { return &___77500517B2CAA87B3925D20EEAA1428A8CD11B9C_9; }
inline void set_U377500517B2CAA87B3925D20EEAA1428A8CD11B9C_9(__StaticArrayInitTypeSizeU3D96_t385919777 value)
{
___77500517B2CAA87B3925D20EEAA1428A8CD11B9C_9 = value;
}
inline static int32_t get_offset_of_U37C864787BEF4C9722095E7546132ACBC5C8FD940_10() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields, ___7C864787BEF4C9722095E7546132ACBC5C8FD940_10)); }
inline __StaticArrayInitTypeSizeU3D36_t385526563 get_U37C864787BEF4C9722095E7546132ACBC5C8FD940_10() const { return ___7C864787BEF4C9722095E7546132ACBC5C8FD940_10; }
inline __StaticArrayInitTypeSizeU3D36_t385526563 * get_address_of_U37C864787BEF4C9722095E7546132ACBC5C8FD940_10() { return &___7C864787BEF4C9722095E7546132ACBC5C8FD940_10; }
inline void set_U37C864787BEF4C9722095E7546132ACBC5C8FD940_10(__StaticArrayInitTypeSizeU3D36_t385526563 value)
{
___7C864787BEF4C9722095E7546132ACBC5C8FD940_10 = value;
}
inline static int32_t get_offset_of_U38634E53F81A91ED972DCFB19F840F53AC39A67F9_11() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields, ___8634E53F81A91ED972DCFB19F840F53AC39A67F9_11)); }
inline __StaticArrayInitTypeSizeU3D64_t3517497838 get_U38634E53F81A91ED972DCFB19F840F53AC39A67F9_11() const { return ___8634E53F81A91ED972DCFB19F840F53AC39A67F9_11; }
inline __StaticArrayInitTypeSizeU3D64_t3517497838 * get_address_of_U38634E53F81A91ED972DCFB19F840F53AC39A67F9_11() { return &___8634E53F81A91ED972DCFB19F840F53AC39A67F9_11; }
inline void set_U38634E53F81A91ED972DCFB19F840F53AC39A67F9_11(__StaticArrayInitTypeSizeU3D64_t3517497838 value)
{
___8634E53F81A91ED972DCFB19F840F53AC39A67F9_11 = value;
}
inline static int32_t get_offset_of_U3888C635713ED1BDB91D86A17C2F3F4647CF4A55F_12() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields, ___888C635713ED1BDB91D86A17C2F3F4647CF4A55F_12)); }
inline __StaticArrayInitTypeSizeU3D576_t2919708294 get_U3888C635713ED1BDB91D86A17C2F3F4647CF4A55F_12() const { return ___888C635713ED1BDB91D86A17C2F3F4647CF4A55F_12; }
inline __StaticArrayInitTypeSizeU3D576_t2919708294 * get_address_of_U3888C635713ED1BDB91D86A17C2F3F4647CF4A55F_12() { return &___888C635713ED1BDB91D86A17C2F3F4647CF4A55F_12; }
inline void set_U3888C635713ED1BDB91D86A17C2F3F4647CF4A55F_12(__StaticArrayInitTypeSizeU3D576_t2919708294 value)
{
___888C635713ED1BDB91D86A17C2F3F4647CF4A55F_12 = value;
}
inline static int32_t get_offset_of_U38CFF0276DAC339BBEAD6BFC55B53ED9492217C08_13() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields, ___8CFF0276DAC339BBEAD6BFC55B53ED9492217C08_13)); }
inline __StaticArrayInitTypeSizeU3D576_t2919708294 get_U38CFF0276DAC339BBEAD6BFC55B53ED9492217C08_13() const { return ___8CFF0276DAC339BBEAD6BFC55B53ED9492217C08_13; }
inline __StaticArrayInitTypeSizeU3D576_t2919708294 * get_address_of_U38CFF0276DAC339BBEAD6BFC55B53ED9492217C08_13() { return &___8CFF0276DAC339BBEAD6BFC55B53ED9492217C08_13; }
inline void set_U38CFF0276DAC339BBEAD6BFC55B53ED9492217C08_13(__StaticArrayInitTypeSizeU3D576_t2919708294 value)
{
___8CFF0276DAC339BBEAD6BFC55B53ED9492217C08_13 = value;
}
inline static int32_t get_offset_of_U39AE3FD136714B4C4439E72CA48C36314C843CA0E_14() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields, ___9AE3FD136714B4C4439E72CA48C36314C843CA0E_14)); }
inline __StaticArrayInitTypeSizeU3D4480_t3791498020 get_U39AE3FD136714B4C4439E72CA48C36314C843CA0E_14() const { return ___9AE3FD136714B4C4439E72CA48C36314C843CA0E_14; }
inline __StaticArrayInitTypeSizeU3D4480_t3791498020 * get_address_of_U39AE3FD136714B4C4439E72CA48C36314C843CA0E_14() { return &___9AE3FD136714B4C4439E72CA48C36314C843CA0E_14; }
inline void set_U39AE3FD136714B4C4439E72CA48C36314C843CA0E_14(__StaticArrayInitTypeSizeU3D4480_t3791498020 value)
{
___9AE3FD136714B4C4439E72CA48C36314C843CA0E_14 = value;
}
inline static int32_t get_offset_of_A714705DEAA10EE10D925E684E64E7CC81896007_15() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields, ___A714705DEAA10EE10D925E684E64E7CC81896007_15)); }
inline __StaticArrayInitTypeSizeU3D200_t2134545495 get_A714705DEAA10EE10D925E684E64E7CC81896007_15() const { return ___A714705DEAA10EE10D925E684E64E7CC81896007_15; }
inline __StaticArrayInitTypeSizeU3D200_t2134545495 * get_address_of_A714705DEAA10EE10D925E684E64E7CC81896007_15() { return &___A714705DEAA10EE10D925E684E64E7CC81896007_15; }
inline void set_A714705DEAA10EE10D925E684E64E7CC81896007_15(__StaticArrayInitTypeSizeU3D200_t2134545495 value)
{
___A714705DEAA10EE10D925E684E64E7CC81896007_15 = value;
}
inline static int32_t get_offset_of_C962AD6D5D1773668C4D37330DA336E1C53D07DE_16() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields, ___C962AD6D5D1773668C4D37330DA336E1C53D07DE_16)); }
inline __StaticArrayInitTypeSizeU3D100_t2134348887 get_C962AD6D5D1773668C4D37330DA336E1C53D07DE_16() const { return ___C962AD6D5D1773668C4D37330DA336E1C53D07DE_16; }
inline __StaticArrayInitTypeSizeU3D100_t2134348887 * get_address_of_C962AD6D5D1773668C4D37330DA336E1C53D07DE_16() { return &___C962AD6D5D1773668C4D37330DA336E1C53D07DE_16; }
inline void set_C962AD6D5D1773668C4D37330DA336E1C53D07DE_16(__StaticArrayInitTypeSizeU3D100_t2134348887 value)
{
___C962AD6D5D1773668C4D37330DA336E1C53D07DE_16 = value;
}
inline static int32_t get_offset_of_F84A5DF36B7884A8F76FAEED14A7E066C2DAA4DC_17() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields, ___F84A5DF36B7884A8F76FAEED14A7E066C2DAA4DC_17)); }
inline __StaticArrayInitTypeSizeU3D96_t385919777 get_F84A5DF36B7884A8F76FAEED14A7E066C2DAA4DC_17() const { return ___F84A5DF36B7884A8F76FAEED14A7E066C2DAA4DC_17; }
inline __StaticArrayInitTypeSizeU3D96_t385919777 * get_address_of_F84A5DF36B7884A8F76FAEED14A7E066C2DAA4DC_17() { return &___F84A5DF36B7884A8F76FAEED14A7E066C2DAA4DC_17; }
inline void set_F84A5DF36B7884A8F76FAEED14A7E066C2DAA4DC_17(__StaticArrayInitTypeSizeU3D96_t385919777 value)
{
___F84A5DF36B7884A8F76FAEED14A7E066C2DAA4DC_17 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CPRIVATEIMPLEMENTATIONDETAILSU3E_T3057255377_H
#ifndef STATEENUM_T2160764486_H
#define STATEENUM_T2160764486_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.ControllerExamples.ObjectSpawner/StateEnum
struct StateEnum_t2160764486
{
public:
// System.Int32 HoloToolkit.Unity.ControllerExamples.ObjectSpawner/StateEnum::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(StateEnum_t2160764486, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // STATEENUM_T2160764486_H
#ifndef INPUTSOURCENUMBER_T4204415176_H
#define INPUTSOURCENUMBER_T4204415176_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.CustomInputSelector/InputSourceNumber
struct InputSourceNumber_t4204415176
{
public:
// System.Int32 HoloToolkit.Unity.InputModule.CustomInputSelector/InputSourceNumber::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InputSourceNumber_t4204415176, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INPUTSOURCENUMBER_T4204415176_H
#ifndef DISPLAYTYPE_T1965195260_H
#define DISPLAYTYPE_T1965195260_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.MixedRealityCameraManager/DisplayType
struct DisplayType_t1965195260
{
public:
// System.Int32 HoloToolkit.Unity.InputModule.MixedRealityCameraManager/DisplayType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(DisplayType_t1965195260, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DISPLAYTYPE_T1965195260_H
#ifndef ALIGNMENTTYPE_T4238599496_H
#define ALIGNMENTTYPE_T4238599496_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Boundary.SceneContentAdjuster/AlignmentType
struct AlignmentType_t4238599496
{
public:
// System.Int32 HoloToolkit.Unity.Boundary.SceneContentAdjuster/AlignmentType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(AlignmentType_t4238599496, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ALIGNMENTTYPE_T4238599496_H
#ifndef POINTERSURFACERESULTENUM_T86002505_H
#define POINTERSURFACERESULTENUM_T86002505_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Controllers.PointerSurfaceResultEnum
struct PointerSurfaceResultEnum_t86002505
{
public:
// System.Int32 HoloToolkit.Unity.Controllers.PointerSurfaceResultEnum::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(PointerSurfaceResultEnum_t86002505, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // POINTERSURFACERESULTENUM_T86002505_H
#ifndef CONTROLLERELEMENTENUM_T4108764020_H
#define CONTROLLERELEMENTENUM_T4108764020_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.MotionControllerInfo/ControllerElementEnum
struct ControllerElementEnum_t4108764020
{
public:
// System.Int32 HoloToolkit.Unity.InputModule.MotionControllerInfo/ControllerElementEnum::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ControllerElementEnum_t4108764020, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CONTROLLERELEMENTENUM_T4108764020_H
#ifndef STREAMCATEGORY_T2445411138_H
#define STREAMCATEGORY_T2445411138_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.MicStream/StreamCategory
struct StreamCategory_t2445411138
{
public:
// System.Int32 HoloToolkit.Unity.InputModule.MicStream/StreamCategory::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(StreamCategory_t2445411138, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // STREAMCATEGORY_T2445411138_H
#ifndef ERRORCODES_T3343133449_H
#define ERRORCODES_T3343133449_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.MicStream/ErrorCodes
struct ErrorCodes_t3343133449
{
public:
// System.Int32 HoloToolkit.Unity.InputModule.MicStream/ErrorCodes::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ErrorCodes_t3343133449, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ERRORCODES_T3343133449_H
#ifndef ROTATIONMODEENUM_T1696056988_H
#define ROTATIONMODEENUM_T1696056988_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.HandDraggable/RotationModeEnum
struct RotationModeEnum_t1696056988
{
public:
// System.Int32 HoloToolkit.Unity.InputModule.HandDraggable/RotationModeEnum::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(RotationModeEnum_t1696056988, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ROTATIONMODEENUM_T1696056988_H
#ifndef U3CU3EC__DISPLAYCLASS26_0_T3736397246_H
#define U3CU3EC__DISPLAYCLASS26_0_T3736397246_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.MixedRealityTeleport/<>c__DisplayClass26_0
struct U3CU3Ec__DisplayClass26_0_t3736397246 : public RuntimeObject
{
public:
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.MixedRealityTeleport/<>c__DisplayClass26_0::hitPos
Vector3_t3722313464 ___hitPos_0;
// HoloToolkit.Unity.InputModule.MixedRealityTeleport HoloToolkit.Unity.InputModule.MixedRealityTeleport/<>c__DisplayClass26_0::<>4__this
MixedRealityTeleport_t2468362838 * ___U3CU3E4__this_1;
public:
inline static int32_t get_offset_of_hitPos_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass26_0_t3736397246, ___hitPos_0)); }
inline Vector3_t3722313464 get_hitPos_0() const { return ___hitPos_0; }
inline Vector3_t3722313464 * get_address_of_hitPos_0() { return &___hitPos_0; }
inline void set_hitPos_0(Vector3_t3722313464 value)
{
___hitPos_0 = value;
}
inline static int32_t get_offset_of_U3CU3E4__this_1() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass26_0_t3736397246, ___U3CU3E4__this_1)); }
inline MixedRealityTeleport_t2468362838 * get_U3CU3E4__this_1() const { return ___U3CU3E4__this_1; }
inline MixedRealityTeleport_t2468362838 ** get_address_of_U3CU3E4__this_1() { return &___U3CU3E4__this_1; }
inline void set_U3CU3E4__this_1(MixedRealityTeleport_t2468362838 * value)
{
___U3CU3E4__this_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E4__this_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS26_0_T3736397246_H
#ifndef U3CU3EC__DISPLAYCLASS28_0_T3736790462_H
#define U3CU3EC__DISPLAYCLASS28_0_T3736790462_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.MixedRealityTeleport/<>c__DisplayClass28_0
struct U3CU3Ec__DisplayClass28_0_t3736790462 : public RuntimeObject
{
public:
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.MixedRealityTeleport/<>c__DisplayClass28_0::strafeAmount
Vector3_t3722313464 ___strafeAmount_0;
// HoloToolkit.Unity.InputModule.MixedRealityTeleport HoloToolkit.Unity.InputModule.MixedRealityTeleport/<>c__DisplayClass28_0::<>4__this
MixedRealityTeleport_t2468362838 * ___U3CU3E4__this_1;
public:
inline static int32_t get_offset_of_strafeAmount_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass28_0_t3736790462, ___strafeAmount_0)); }
inline Vector3_t3722313464 get_strafeAmount_0() const { return ___strafeAmount_0; }
inline Vector3_t3722313464 * get_address_of_strafeAmount_0() { return &___strafeAmount_0; }
inline void set_strafeAmount_0(Vector3_t3722313464 value)
{
___strafeAmount_0 = value;
}
inline static int32_t get_offset_of_U3CU3E4__this_1() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass28_0_t3736790462, ___U3CU3E4__this_1)); }
inline MixedRealityTeleport_t2468362838 * get_U3CU3E4__this_1() const { return ___U3CU3E4__this_1; }
inline MixedRealityTeleport_t2468362838 ** get_address_of_U3CU3E4__this_1() { return &___U3CU3E4__this_1; }
inline void set_U3CU3E4__this_1(MixedRealityTeleport_t2468362838 * value)
{
___U3CU3E4__this_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E4__this_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS28_0_T3736790462_H
#ifndef KEYEVENT_T245959883_H
#define KEYEVENT_T245959883_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.KeyboardManager/KeyEvent
struct KeyEvent_t245959883
{
public:
// System.Int32 HoloToolkit.Unity.InputModule.KeyboardManager/KeyEvent::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(KeyEvent_t245959883, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYEVENT_T245959883_H
#ifndef AXISDESTINATION_T1407114111_H
#define AXISDESTINATION_T1407114111_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.AxisController/AxisDestination
struct AxisDestination_t1407114111
{
public:
// System.Int32 HoloToolkit.Unity.InputModule.AxisController/AxisDestination::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(AxisDestination_t1407114111, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // AXISDESTINATION_T1407114111_H
#ifndef AXISTYPE_T3765642005_H
#define AXISTYPE_T3765642005_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.AxisController/AxisType
struct AxisType_t3765642005
{
public:
// System.Int32 HoloToolkit.Unity.InputModule.AxisController/AxisType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(AxisType_t3765642005, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // AXISTYPE_T3765642005_H
#ifndef INPUTSOURCETYPE_T1321505344_H
#define INPUTSOURCETYPE_T1321505344_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.CustomInputSelector/InputSourceType
struct InputSourceType_t1321505344
{
public:
// System.Int32 HoloToolkit.Unity.InputModule.CustomInputSelector/InputSourceType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InputSourceType_t1321505344, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INPUTSOURCETYPE_T1321505344_H
#ifndef BUTTONTYPE_T2268838932_H
#define BUTTONTYPE_T2268838932_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.ButtonController/ButtonType
struct ButtonType_t2268838932
{
public:
// System.Int32 HoloToolkit.Unity.InputModule.ButtonController/ButtonType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ButtonType_t2268838932, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BUTTONTYPE_T2268838932_H
#ifndef POINTDISTRIBUTIONTYPEENUM_T4198058532_H
#define POINTDISTRIBUTIONTYPEENUM_T4198058532_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Design.LineUtils/PointDistributionTypeEnum
struct PointDistributionTypeEnum_t4198058532
{
public:
// System.Int32 HoloToolkit.Unity.Design.LineUtils/PointDistributionTypeEnum::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(PointDistributionTypeEnum_t4198058532, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // POINTDISTRIBUTIONTYPEENUM_T4198058532_H
#ifndef INTERACTIONSOURCE_T872619030_H
#define INTERACTIONSOURCE_T872619030_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.XR.WSA.Input.InteractionSource
struct InteractionSource_t872619030
{
public:
// System.UInt32 UnityEngine.XR.WSA.Input.InteractionSource::m_Id
uint32_t ___m_Id_0;
// UnityEngine.XR.WSA.Input.InteractionSourceKind UnityEngine.XR.WSA.Input.InteractionSource::m_SourceKind
int32_t ___m_SourceKind_1;
// UnityEngine.XR.WSA.Input.InteractionSourceHandedness UnityEngine.XR.WSA.Input.InteractionSource::m_Handedness
int32_t ___m_Handedness_2;
// UnityEngine.XR.WSA.Input.InteractionSourceFlags UnityEngine.XR.WSA.Input.InteractionSource::m_Flags
int32_t ___m_Flags_3;
// System.UInt16 UnityEngine.XR.WSA.Input.InteractionSource::m_VendorId
uint16_t ___m_VendorId_4;
// System.UInt16 UnityEngine.XR.WSA.Input.InteractionSource::m_ProductId
uint16_t ___m_ProductId_5;
// System.UInt16 UnityEngine.XR.WSA.Input.InteractionSource::m_ProductVersion
uint16_t ___m_ProductVersion_6;
public:
inline static int32_t get_offset_of_m_Id_0() { return static_cast<int32_t>(offsetof(InteractionSource_t872619030, ___m_Id_0)); }
inline uint32_t get_m_Id_0() const { return ___m_Id_0; }
inline uint32_t* get_address_of_m_Id_0() { return &___m_Id_0; }
inline void set_m_Id_0(uint32_t value)
{
___m_Id_0 = value;
}
inline static int32_t get_offset_of_m_SourceKind_1() { return static_cast<int32_t>(offsetof(InteractionSource_t872619030, ___m_SourceKind_1)); }
inline int32_t get_m_SourceKind_1() const { return ___m_SourceKind_1; }
inline int32_t* get_address_of_m_SourceKind_1() { return &___m_SourceKind_1; }
inline void set_m_SourceKind_1(int32_t value)
{
___m_SourceKind_1 = value;
}
inline static int32_t get_offset_of_m_Handedness_2() { return static_cast<int32_t>(offsetof(InteractionSource_t872619030, ___m_Handedness_2)); }
inline int32_t get_m_Handedness_2() const { return ___m_Handedness_2; }
inline int32_t* get_address_of_m_Handedness_2() { return &___m_Handedness_2; }
inline void set_m_Handedness_2(int32_t value)
{
___m_Handedness_2 = value;
}
inline static int32_t get_offset_of_m_Flags_3() { return static_cast<int32_t>(offsetof(InteractionSource_t872619030, ___m_Flags_3)); }
inline int32_t get_m_Flags_3() const { return ___m_Flags_3; }
inline int32_t* get_address_of_m_Flags_3() { return &___m_Flags_3; }
inline void set_m_Flags_3(int32_t value)
{
___m_Flags_3 = value;
}
inline static int32_t get_offset_of_m_VendorId_4() { return static_cast<int32_t>(offsetof(InteractionSource_t872619030, ___m_VendorId_4)); }
inline uint16_t get_m_VendorId_4() const { return ___m_VendorId_4; }
inline uint16_t* get_address_of_m_VendorId_4() { return &___m_VendorId_4; }
inline void set_m_VendorId_4(uint16_t value)
{
___m_VendorId_4 = value;
}
inline static int32_t get_offset_of_m_ProductId_5() { return static_cast<int32_t>(offsetof(InteractionSource_t872619030, ___m_ProductId_5)); }
inline uint16_t get_m_ProductId_5() const { return ___m_ProductId_5; }
inline uint16_t* get_address_of_m_ProductId_5() { return &___m_ProductId_5; }
inline void set_m_ProductId_5(uint16_t value)
{
___m_ProductId_5 = value;
}
inline static int32_t get_offset_of_m_ProductVersion_6() { return static_cast<int32_t>(offsetof(InteractionSource_t872619030, ___m_ProductVersion_6)); }
inline uint16_t get_m_ProductVersion_6() const { return ___m_ProductVersion_6; }
inline uint16_t* get_address_of_m_ProductVersion_6() { return &___m_ProductVersion_6; }
inline void set_m_ProductVersion_6(uint16_t value)
{
___m_ProductVersion_6 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INTERACTIONSOURCE_T872619030_H
#ifndef MOTIONCONTROLLERINFO_T938152223_H
#define MOTIONCONTROLLERINFO_T938152223_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.MotionControllerInfo
struct MotionControllerInfo_t938152223 : public RuntimeObject
{
public:
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.MotionControllerInfo::ControllerParent
GameObject_t1113636619 * ___ControllerParent_0;
// UnityEngine.XR.WSA.Input.InteractionSourceHandedness HoloToolkit.Unity.InputModule.MotionControllerInfo::Handedness
int32_t ___Handedness_1;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.MotionControllerInfo::home
GameObject_t1113636619 * ___home_2;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::homePressed
Transform_t3600365921 * ___homePressed_3;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::homeUnpressed
Transform_t3600365921 * ___homeUnpressed_4;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.MotionControllerInfo::menu
GameObject_t1113636619 * ___menu_5;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::menuPressed
Transform_t3600365921 * ___menuPressed_6;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::menuUnpressed
Transform_t3600365921 * ___menuUnpressed_7;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.MotionControllerInfo::grasp
GameObject_t1113636619 * ___grasp_8;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::graspPressed
Transform_t3600365921 * ___graspPressed_9;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::graspUnpressed
Transform_t3600365921 * ___graspUnpressed_10;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.MotionControllerInfo::thumbstickPress
GameObject_t1113636619 * ___thumbstickPress_11;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::thumbstickPressed
Transform_t3600365921 * ___thumbstickPressed_12;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::thumbstickUnpressed
Transform_t3600365921 * ___thumbstickUnpressed_13;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.MotionControllerInfo::thumbstickX
GameObject_t1113636619 * ___thumbstickX_14;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::thumbstickXMin
Transform_t3600365921 * ___thumbstickXMin_15;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::thumbstickXMax
Transform_t3600365921 * ___thumbstickXMax_16;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.MotionControllerInfo::thumbstickY
GameObject_t1113636619 * ___thumbstickY_17;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::thumbstickYMin
Transform_t3600365921 * ___thumbstickYMin_18;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::thumbstickYMax
Transform_t3600365921 * ___thumbstickYMax_19;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.MotionControllerInfo::select
GameObject_t1113636619 * ___select_20;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::selectPressed
Transform_t3600365921 * ___selectPressed_21;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::selectUnpressed
Transform_t3600365921 * ___selectUnpressed_22;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.MotionControllerInfo::touchpadPress
GameObject_t1113636619 * ___touchpadPress_23;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::touchpadPressed
Transform_t3600365921 * ___touchpadPressed_24;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::touchpadUnpressed
Transform_t3600365921 * ___touchpadUnpressed_25;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.MotionControllerInfo::touchpadTouchX
GameObject_t1113636619 * ___touchpadTouchX_26;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::touchpadTouchXMin
Transform_t3600365921 * ___touchpadTouchXMin_27;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::touchpadTouchXMax
Transform_t3600365921 * ___touchpadTouchXMax_28;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.MotionControllerInfo::touchpadTouchY
GameObject_t1113636619 * ___touchpadTouchY_29;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::touchpadTouchYMin
Transform_t3600365921 * ___touchpadTouchYMin_30;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.MotionControllerInfo::touchpadTouchYMax
Transform_t3600365921 * ___touchpadTouchYMax_31;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.MotionControllerInfo::touchpadTouchVisualizer
GameObject_t1113636619 * ___touchpadTouchVisualizer_32;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.MotionControllerInfo::pointingPose
GameObject_t1113636619 * ___pointingPose_33;
// System.Boolean HoloToolkit.Unity.InputModule.MotionControllerInfo::wasGrasped
bool ___wasGrasped_34;
// System.Boolean HoloToolkit.Unity.InputModule.MotionControllerInfo::wasMenuPressed
bool ___wasMenuPressed_35;
// System.Boolean HoloToolkit.Unity.InputModule.MotionControllerInfo::wasHomePressed
bool ___wasHomePressed_36;
// System.Boolean HoloToolkit.Unity.InputModule.MotionControllerInfo::wasThumbstickPressed
bool ___wasThumbstickPressed_37;
// System.Boolean HoloToolkit.Unity.InputModule.MotionControllerInfo::wasTouchpadPressed
bool ___wasTouchpadPressed_38;
// System.Boolean HoloToolkit.Unity.InputModule.MotionControllerInfo::wasTouchpadTouched
bool ___wasTouchpadTouched_39;
// UnityEngine.Vector2 HoloToolkit.Unity.InputModule.MotionControllerInfo::lastThumbstickPosition
Vector2_t2156229523 ___lastThumbstickPosition_40;
// UnityEngine.Vector2 HoloToolkit.Unity.InputModule.MotionControllerInfo::lastTouchpadPosition
Vector2_t2156229523 ___lastTouchpadPosition_41;
// System.Double HoloToolkit.Unity.InputModule.MotionControllerInfo::lastSelectPressedAmount
double ___lastSelectPressedAmount_42;
public:
inline static int32_t get_offset_of_ControllerParent_0() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___ControllerParent_0)); }
inline GameObject_t1113636619 * get_ControllerParent_0() const { return ___ControllerParent_0; }
inline GameObject_t1113636619 ** get_address_of_ControllerParent_0() { return &___ControllerParent_0; }
inline void set_ControllerParent_0(GameObject_t1113636619 * value)
{
___ControllerParent_0 = value;
Il2CppCodeGenWriteBarrier((&___ControllerParent_0), value);
}
inline static int32_t get_offset_of_Handedness_1() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___Handedness_1)); }
inline int32_t get_Handedness_1() const { return ___Handedness_1; }
inline int32_t* get_address_of_Handedness_1() { return &___Handedness_1; }
inline void set_Handedness_1(int32_t value)
{
___Handedness_1 = value;
}
inline static int32_t get_offset_of_home_2() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___home_2)); }
inline GameObject_t1113636619 * get_home_2() const { return ___home_2; }
inline GameObject_t1113636619 ** get_address_of_home_2() { return &___home_2; }
inline void set_home_2(GameObject_t1113636619 * value)
{
___home_2 = value;
Il2CppCodeGenWriteBarrier((&___home_2), value);
}
inline static int32_t get_offset_of_homePressed_3() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___homePressed_3)); }
inline Transform_t3600365921 * get_homePressed_3() const { return ___homePressed_3; }
inline Transform_t3600365921 ** get_address_of_homePressed_3() { return &___homePressed_3; }
inline void set_homePressed_3(Transform_t3600365921 * value)
{
___homePressed_3 = value;
Il2CppCodeGenWriteBarrier((&___homePressed_3), value);
}
inline static int32_t get_offset_of_homeUnpressed_4() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___homeUnpressed_4)); }
inline Transform_t3600365921 * get_homeUnpressed_4() const { return ___homeUnpressed_4; }
inline Transform_t3600365921 ** get_address_of_homeUnpressed_4() { return &___homeUnpressed_4; }
inline void set_homeUnpressed_4(Transform_t3600365921 * value)
{
___homeUnpressed_4 = value;
Il2CppCodeGenWriteBarrier((&___homeUnpressed_4), value);
}
inline static int32_t get_offset_of_menu_5() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___menu_5)); }
inline GameObject_t1113636619 * get_menu_5() const { return ___menu_5; }
inline GameObject_t1113636619 ** get_address_of_menu_5() { return &___menu_5; }
inline void set_menu_5(GameObject_t1113636619 * value)
{
___menu_5 = value;
Il2CppCodeGenWriteBarrier((&___menu_5), value);
}
inline static int32_t get_offset_of_menuPressed_6() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___menuPressed_6)); }
inline Transform_t3600365921 * get_menuPressed_6() const { return ___menuPressed_6; }
inline Transform_t3600365921 ** get_address_of_menuPressed_6() { return &___menuPressed_6; }
inline void set_menuPressed_6(Transform_t3600365921 * value)
{
___menuPressed_6 = value;
Il2CppCodeGenWriteBarrier((&___menuPressed_6), value);
}
inline static int32_t get_offset_of_menuUnpressed_7() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___menuUnpressed_7)); }
inline Transform_t3600365921 * get_menuUnpressed_7() const { return ___menuUnpressed_7; }
inline Transform_t3600365921 ** get_address_of_menuUnpressed_7() { return &___menuUnpressed_7; }
inline void set_menuUnpressed_7(Transform_t3600365921 * value)
{
___menuUnpressed_7 = value;
Il2CppCodeGenWriteBarrier((&___menuUnpressed_7), value);
}
inline static int32_t get_offset_of_grasp_8() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___grasp_8)); }
inline GameObject_t1113636619 * get_grasp_8() const { return ___grasp_8; }
inline GameObject_t1113636619 ** get_address_of_grasp_8() { return &___grasp_8; }
inline void set_grasp_8(GameObject_t1113636619 * value)
{
___grasp_8 = value;
Il2CppCodeGenWriteBarrier((&___grasp_8), value);
}
inline static int32_t get_offset_of_graspPressed_9() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___graspPressed_9)); }
inline Transform_t3600365921 * get_graspPressed_9() const { return ___graspPressed_9; }
inline Transform_t3600365921 ** get_address_of_graspPressed_9() { return &___graspPressed_9; }
inline void set_graspPressed_9(Transform_t3600365921 * value)
{
___graspPressed_9 = value;
Il2CppCodeGenWriteBarrier((&___graspPressed_9), value);
}
inline static int32_t get_offset_of_graspUnpressed_10() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___graspUnpressed_10)); }
inline Transform_t3600365921 * get_graspUnpressed_10() const { return ___graspUnpressed_10; }
inline Transform_t3600365921 ** get_address_of_graspUnpressed_10() { return &___graspUnpressed_10; }
inline void set_graspUnpressed_10(Transform_t3600365921 * value)
{
___graspUnpressed_10 = value;
Il2CppCodeGenWriteBarrier((&___graspUnpressed_10), value);
}
inline static int32_t get_offset_of_thumbstickPress_11() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___thumbstickPress_11)); }
inline GameObject_t1113636619 * get_thumbstickPress_11() const { return ___thumbstickPress_11; }
inline GameObject_t1113636619 ** get_address_of_thumbstickPress_11() { return &___thumbstickPress_11; }
inline void set_thumbstickPress_11(GameObject_t1113636619 * value)
{
___thumbstickPress_11 = value;
Il2CppCodeGenWriteBarrier((&___thumbstickPress_11), value);
}
inline static int32_t get_offset_of_thumbstickPressed_12() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___thumbstickPressed_12)); }
inline Transform_t3600365921 * get_thumbstickPressed_12() const { return ___thumbstickPressed_12; }
inline Transform_t3600365921 ** get_address_of_thumbstickPressed_12() { return &___thumbstickPressed_12; }
inline void set_thumbstickPressed_12(Transform_t3600365921 * value)
{
___thumbstickPressed_12 = value;
Il2CppCodeGenWriteBarrier((&___thumbstickPressed_12), value);
}
inline static int32_t get_offset_of_thumbstickUnpressed_13() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___thumbstickUnpressed_13)); }
inline Transform_t3600365921 * get_thumbstickUnpressed_13() const { return ___thumbstickUnpressed_13; }
inline Transform_t3600365921 ** get_address_of_thumbstickUnpressed_13() { return &___thumbstickUnpressed_13; }
inline void set_thumbstickUnpressed_13(Transform_t3600365921 * value)
{
___thumbstickUnpressed_13 = value;
Il2CppCodeGenWriteBarrier((&___thumbstickUnpressed_13), value);
}
inline static int32_t get_offset_of_thumbstickX_14() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___thumbstickX_14)); }
inline GameObject_t1113636619 * get_thumbstickX_14() const { return ___thumbstickX_14; }
inline GameObject_t1113636619 ** get_address_of_thumbstickX_14() { return &___thumbstickX_14; }
inline void set_thumbstickX_14(GameObject_t1113636619 * value)
{
___thumbstickX_14 = value;
Il2CppCodeGenWriteBarrier((&___thumbstickX_14), value);
}
inline static int32_t get_offset_of_thumbstickXMin_15() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___thumbstickXMin_15)); }
inline Transform_t3600365921 * get_thumbstickXMin_15() const { return ___thumbstickXMin_15; }
inline Transform_t3600365921 ** get_address_of_thumbstickXMin_15() { return &___thumbstickXMin_15; }
inline void set_thumbstickXMin_15(Transform_t3600365921 * value)
{
___thumbstickXMin_15 = value;
Il2CppCodeGenWriteBarrier((&___thumbstickXMin_15), value);
}
inline static int32_t get_offset_of_thumbstickXMax_16() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___thumbstickXMax_16)); }
inline Transform_t3600365921 * get_thumbstickXMax_16() const { return ___thumbstickXMax_16; }
inline Transform_t3600365921 ** get_address_of_thumbstickXMax_16() { return &___thumbstickXMax_16; }
inline void set_thumbstickXMax_16(Transform_t3600365921 * value)
{
___thumbstickXMax_16 = value;
Il2CppCodeGenWriteBarrier((&___thumbstickXMax_16), value);
}
inline static int32_t get_offset_of_thumbstickY_17() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___thumbstickY_17)); }
inline GameObject_t1113636619 * get_thumbstickY_17() const { return ___thumbstickY_17; }
inline GameObject_t1113636619 ** get_address_of_thumbstickY_17() { return &___thumbstickY_17; }
inline void set_thumbstickY_17(GameObject_t1113636619 * value)
{
___thumbstickY_17 = value;
Il2CppCodeGenWriteBarrier((&___thumbstickY_17), value);
}
inline static int32_t get_offset_of_thumbstickYMin_18() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___thumbstickYMin_18)); }
inline Transform_t3600365921 * get_thumbstickYMin_18() const { return ___thumbstickYMin_18; }
inline Transform_t3600365921 ** get_address_of_thumbstickYMin_18() { return &___thumbstickYMin_18; }
inline void set_thumbstickYMin_18(Transform_t3600365921 * value)
{
___thumbstickYMin_18 = value;
Il2CppCodeGenWriteBarrier((&___thumbstickYMin_18), value);
}
inline static int32_t get_offset_of_thumbstickYMax_19() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___thumbstickYMax_19)); }
inline Transform_t3600365921 * get_thumbstickYMax_19() const { return ___thumbstickYMax_19; }
inline Transform_t3600365921 ** get_address_of_thumbstickYMax_19() { return &___thumbstickYMax_19; }
inline void set_thumbstickYMax_19(Transform_t3600365921 * value)
{
___thumbstickYMax_19 = value;
Il2CppCodeGenWriteBarrier((&___thumbstickYMax_19), value);
}
inline static int32_t get_offset_of_select_20() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___select_20)); }
inline GameObject_t1113636619 * get_select_20() const { return ___select_20; }
inline GameObject_t1113636619 ** get_address_of_select_20() { return &___select_20; }
inline void set_select_20(GameObject_t1113636619 * value)
{
___select_20 = value;
Il2CppCodeGenWriteBarrier((&___select_20), value);
}
inline static int32_t get_offset_of_selectPressed_21() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___selectPressed_21)); }
inline Transform_t3600365921 * get_selectPressed_21() const { return ___selectPressed_21; }
inline Transform_t3600365921 ** get_address_of_selectPressed_21() { return &___selectPressed_21; }
inline void set_selectPressed_21(Transform_t3600365921 * value)
{
___selectPressed_21 = value;
Il2CppCodeGenWriteBarrier((&___selectPressed_21), value);
}
inline static int32_t get_offset_of_selectUnpressed_22() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___selectUnpressed_22)); }
inline Transform_t3600365921 * get_selectUnpressed_22() const { return ___selectUnpressed_22; }
inline Transform_t3600365921 ** get_address_of_selectUnpressed_22() { return &___selectUnpressed_22; }
inline void set_selectUnpressed_22(Transform_t3600365921 * value)
{
___selectUnpressed_22 = value;
Il2CppCodeGenWriteBarrier((&___selectUnpressed_22), value);
}
inline static int32_t get_offset_of_touchpadPress_23() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___touchpadPress_23)); }
inline GameObject_t1113636619 * get_touchpadPress_23() const { return ___touchpadPress_23; }
inline GameObject_t1113636619 ** get_address_of_touchpadPress_23() { return &___touchpadPress_23; }
inline void set_touchpadPress_23(GameObject_t1113636619 * value)
{
___touchpadPress_23 = value;
Il2CppCodeGenWriteBarrier((&___touchpadPress_23), value);
}
inline static int32_t get_offset_of_touchpadPressed_24() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___touchpadPressed_24)); }
inline Transform_t3600365921 * get_touchpadPressed_24() const { return ___touchpadPressed_24; }
inline Transform_t3600365921 ** get_address_of_touchpadPressed_24() { return &___touchpadPressed_24; }
inline void set_touchpadPressed_24(Transform_t3600365921 * value)
{
___touchpadPressed_24 = value;
Il2CppCodeGenWriteBarrier((&___touchpadPressed_24), value);
}
inline static int32_t get_offset_of_touchpadUnpressed_25() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___touchpadUnpressed_25)); }
inline Transform_t3600365921 * get_touchpadUnpressed_25() const { return ___touchpadUnpressed_25; }
inline Transform_t3600365921 ** get_address_of_touchpadUnpressed_25() { return &___touchpadUnpressed_25; }
inline void set_touchpadUnpressed_25(Transform_t3600365921 * value)
{
___touchpadUnpressed_25 = value;
Il2CppCodeGenWriteBarrier((&___touchpadUnpressed_25), value);
}
inline static int32_t get_offset_of_touchpadTouchX_26() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___touchpadTouchX_26)); }
inline GameObject_t1113636619 * get_touchpadTouchX_26() const { return ___touchpadTouchX_26; }
inline GameObject_t1113636619 ** get_address_of_touchpadTouchX_26() { return &___touchpadTouchX_26; }
inline void set_touchpadTouchX_26(GameObject_t1113636619 * value)
{
___touchpadTouchX_26 = value;
Il2CppCodeGenWriteBarrier((&___touchpadTouchX_26), value);
}
inline static int32_t get_offset_of_touchpadTouchXMin_27() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___touchpadTouchXMin_27)); }
inline Transform_t3600365921 * get_touchpadTouchXMin_27() const { return ___touchpadTouchXMin_27; }
inline Transform_t3600365921 ** get_address_of_touchpadTouchXMin_27() { return &___touchpadTouchXMin_27; }
inline void set_touchpadTouchXMin_27(Transform_t3600365921 * value)
{
___touchpadTouchXMin_27 = value;
Il2CppCodeGenWriteBarrier((&___touchpadTouchXMin_27), value);
}
inline static int32_t get_offset_of_touchpadTouchXMax_28() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___touchpadTouchXMax_28)); }
inline Transform_t3600365921 * get_touchpadTouchXMax_28() const { return ___touchpadTouchXMax_28; }
inline Transform_t3600365921 ** get_address_of_touchpadTouchXMax_28() { return &___touchpadTouchXMax_28; }
inline void set_touchpadTouchXMax_28(Transform_t3600365921 * value)
{
___touchpadTouchXMax_28 = value;
Il2CppCodeGenWriteBarrier((&___touchpadTouchXMax_28), value);
}
inline static int32_t get_offset_of_touchpadTouchY_29() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___touchpadTouchY_29)); }
inline GameObject_t1113636619 * get_touchpadTouchY_29() const { return ___touchpadTouchY_29; }
inline GameObject_t1113636619 ** get_address_of_touchpadTouchY_29() { return &___touchpadTouchY_29; }
inline void set_touchpadTouchY_29(GameObject_t1113636619 * value)
{
___touchpadTouchY_29 = value;
Il2CppCodeGenWriteBarrier((&___touchpadTouchY_29), value);
}
inline static int32_t get_offset_of_touchpadTouchYMin_30() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___touchpadTouchYMin_30)); }
inline Transform_t3600365921 * get_touchpadTouchYMin_30() const { return ___touchpadTouchYMin_30; }
inline Transform_t3600365921 ** get_address_of_touchpadTouchYMin_30() { return &___touchpadTouchYMin_30; }
inline void set_touchpadTouchYMin_30(Transform_t3600365921 * value)
{
___touchpadTouchYMin_30 = value;
Il2CppCodeGenWriteBarrier((&___touchpadTouchYMin_30), value);
}
inline static int32_t get_offset_of_touchpadTouchYMax_31() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___touchpadTouchYMax_31)); }
inline Transform_t3600365921 * get_touchpadTouchYMax_31() const { return ___touchpadTouchYMax_31; }
inline Transform_t3600365921 ** get_address_of_touchpadTouchYMax_31() { return &___touchpadTouchYMax_31; }
inline void set_touchpadTouchYMax_31(Transform_t3600365921 * value)
{
___touchpadTouchYMax_31 = value;
Il2CppCodeGenWriteBarrier((&___touchpadTouchYMax_31), value);
}
inline static int32_t get_offset_of_touchpadTouchVisualizer_32() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___touchpadTouchVisualizer_32)); }
inline GameObject_t1113636619 * get_touchpadTouchVisualizer_32() const { return ___touchpadTouchVisualizer_32; }
inline GameObject_t1113636619 ** get_address_of_touchpadTouchVisualizer_32() { return &___touchpadTouchVisualizer_32; }
inline void set_touchpadTouchVisualizer_32(GameObject_t1113636619 * value)
{
___touchpadTouchVisualizer_32 = value;
Il2CppCodeGenWriteBarrier((&___touchpadTouchVisualizer_32), value);
}
inline static int32_t get_offset_of_pointingPose_33() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___pointingPose_33)); }
inline GameObject_t1113636619 * get_pointingPose_33() const { return ___pointingPose_33; }
inline GameObject_t1113636619 ** get_address_of_pointingPose_33() { return &___pointingPose_33; }
inline void set_pointingPose_33(GameObject_t1113636619 * value)
{
___pointingPose_33 = value;
Il2CppCodeGenWriteBarrier((&___pointingPose_33), value);
}
inline static int32_t get_offset_of_wasGrasped_34() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___wasGrasped_34)); }
inline bool get_wasGrasped_34() const { return ___wasGrasped_34; }
inline bool* get_address_of_wasGrasped_34() { return &___wasGrasped_34; }
inline void set_wasGrasped_34(bool value)
{
___wasGrasped_34 = value;
}
inline static int32_t get_offset_of_wasMenuPressed_35() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___wasMenuPressed_35)); }
inline bool get_wasMenuPressed_35() const { return ___wasMenuPressed_35; }
inline bool* get_address_of_wasMenuPressed_35() { return &___wasMenuPressed_35; }
inline void set_wasMenuPressed_35(bool value)
{
___wasMenuPressed_35 = value;
}
inline static int32_t get_offset_of_wasHomePressed_36() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___wasHomePressed_36)); }
inline bool get_wasHomePressed_36() const { return ___wasHomePressed_36; }
inline bool* get_address_of_wasHomePressed_36() { return &___wasHomePressed_36; }
inline void set_wasHomePressed_36(bool value)
{
___wasHomePressed_36 = value;
}
inline static int32_t get_offset_of_wasThumbstickPressed_37() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___wasThumbstickPressed_37)); }
inline bool get_wasThumbstickPressed_37() const { return ___wasThumbstickPressed_37; }
inline bool* get_address_of_wasThumbstickPressed_37() { return &___wasThumbstickPressed_37; }
inline void set_wasThumbstickPressed_37(bool value)
{
___wasThumbstickPressed_37 = value;
}
inline static int32_t get_offset_of_wasTouchpadPressed_38() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___wasTouchpadPressed_38)); }
inline bool get_wasTouchpadPressed_38() const { return ___wasTouchpadPressed_38; }
inline bool* get_address_of_wasTouchpadPressed_38() { return &___wasTouchpadPressed_38; }
inline void set_wasTouchpadPressed_38(bool value)
{
___wasTouchpadPressed_38 = value;
}
inline static int32_t get_offset_of_wasTouchpadTouched_39() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___wasTouchpadTouched_39)); }
inline bool get_wasTouchpadTouched_39() const { return ___wasTouchpadTouched_39; }
inline bool* get_address_of_wasTouchpadTouched_39() { return &___wasTouchpadTouched_39; }
inline void set_wasTouchpadTouched_39(bool value)
{
___wasTouchpadTouched_39 = value;
}
inline static int32_t get_offset_of_lastThumbstickPosition_40() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___lastThumbstickPosition_40)); }
inline Vector2_t2156229523 get_lastThumbstickPosition_40() const { return ___lastThumbstickPosition_40; }
inline Vector2_t2156229523 * get_address_of_lastThumbstickPosition_40() { return &___lastThumbstickPosition_40; }
inline void set_lastThumbstickPosition_40(Vector2_t2156229523 value)
{
___lastThumbstickPosition_40 = value;
}
inline static int32_t get_offset_of_lastTouchpadPosition_41() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___lastTouchpadPosition_41)); }
inline Vector2_t2156229523 get_lastTouchpadPosition_41() const { return ___lastTouchpadPosition_41; }
inline Vector2_t2156229523 * get_address_of_lastTouchpadPosition_41() { return &___lastTouchpadPosition_41; }
inline void set_lastTouchpadPosition_41(Vector2_t2156229523 value)
{
___lastTouchpadPosition_41 = value;
}
inline static int32_t get_offset_of_lastSelectPressedAmount_42() { return static_cast<int32_t>(offsetof(MotionControllerInfo_t938152223, ___lastSelectPressedAmount_42)); }
inline double get_lastSelectPressedAmount_42() const { return ___lastSelectPressedAmount_42; }
inline double* get_address_of_lastSelectPressedAmount_42() { return &___lastSelectPressedAmount_42; }
inline void set_lastSelectPressedAmount_42(double value)
{
___lastSelectPressedAmount_42 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // MOTIONCONTROLLERINFO_T938152223_H
#ifndef COMPONENT_T1923634451_H
#define COMPONENT_T1923634451_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Component
struct Component_t1923634451 : public Object_t631007953
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // COMPONENT_T1923634451_H
#ifndef MULTICASTDELEGATE_T_H
#define MULTICASTDELEGATE_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.MulticastDelegate
struct MulticastDelegate_t : public Delegate_t1188392813
{
public:
// System.Delegate[] System.MulticastDelegate::delegates
DelegateU5BU5D_t1703627840* ___delegates_11;
public:
inline static int32_t get_offset_of_delegates_11() { return static_cast<int32_t>(offsetof(MulticastDelegate_t, ___delegates_11)); }
inline DelegateU5BU5D_t1703627840* get_delegates_11() const { return ___delegates_11; }
inline DelegateU5BU5D_t1703627840** get_address_of_delegates_11() { return &___delegates_11; }
inline void set_delegates_11(DelegateU5BU5D_t1703627840* value)
{
___delegates_11 = value;
Il2CppCodeGenWriteBarrier((&___delegates_11), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.MulticastDelegate
struct MulticastDelegate_t_marshaled_pinvoke : public Delegate_t1188392813_marshaled_pinvoke
{
DelegateU5BU5D_t1703627840* ___delegates_11;
};
// Native definition for COM marshalling of System.MulticastDelegate
struct MulticastDelegate_t_marshaled_com : public Delegate_t1188392813_marshaled_com
{
DelegateU5BU5D_t1703627840* ___delegates_11;
};
#endif // MULTICASTDELEGATE_T_H
#ifndef KEYCODEEVENTPAIR_T1510105498_H
#define KEYCODEEVENTPAIR_T1510105498_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.KeyboardManager/KeyCodeEventPair
struct KeyCodeEventPair_t1510105498
{
public:
// UnityEngine.KeyCode HoloToolkit.Unity.InputModule.KeyboardManager/KeyCodeEventPair::KeyCode
int32_t ___KeyCode_0;
// HoloToolkit.Unity.InputModule.KeyboardManager/KeyEvent HoloToolkit.Unity.InputModule.KeyboardManager/KeyCodeEventPair::KeyEvent
int32_t ___KeyEvent_1;
public:
inline static int32_t get_offset_of_KeyCode_0() { return static_cast<int32_t>(offsetof(KeyCodeEventPair_t1510105498, ___KeyCode_0)); }
inline int32_t get_KeyCode_0() const { return ___KeyCode_0; }
inline int32_t* get_address_of_KeyCode_0() { return &___KeyCode_0; }
inline void set_KeyCode_0(int32_t value)
{
___KeyCode_0 = value;
}
inline static int32_t get_offset_of_KeyEvent_1() { return static_cast<int32_t>(offsetof(KeyCodeEventPair_t1510105498, ___KeyEvent_1)); }
inline int32_t get_KeyEvent_1() const { return ___KeyEvent_1; }
inline int32_t* get_address_of_KeyEvent_1() { return &___KeyEvent_1; }
inline void set_KeyEvent_1(int32_t value)
{
___KeyEvent_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYCODEEVENTPAIR_T1510105498_H
#ifndef U3CUPDATEDISPLAYMODEU3ED__32_T268247815_H
#define U3CUPDATEDISPLAYMODEU3ED__32_T268247815_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.ControllerExamples.Brush/<UpdateDisplayMode>d__32
struct U3CUpdateDisplayModeU3Ed__32_t268247815 : public RuntimeObject
{
public:
// System.Int32 HoloToolkit.Unity.ControllerExamples.Brush/<UpdateDisplayMode>d__32::<>1__state
int32_t ___U3CU3E1__state_0;
// System.Object HoloToolkit.Unity.ControllerExamples.Brush/<UpdateDisplayMode>d__32::<>2__current
RuntimeObject * ___U3CU3E2__current_1;
// HoloToolkit.Unity.ControllerExamples.Brush HoloToolkit.Unity.ControllerExamples.Brush/<UpdateDisplayMode>d__32::<>4__this
Brush_t1548626474 * ___U3CU3E4__this_2;
// UnityEngine.Vector3 HoloToolkit.Unity.ControllerExamples.Brush/<UpdateDisplayMode>d__32::<targetPosition>5__1
Vector3_t3722313464 ___U3CtargetPositionU3E5__1_3;
// UnityEngine.Vector3 HoloToolkit.Unity.ControllerExamples.Brush/<UpdateDisplayMode>d__32::<targetScale>5__2
Vector3_t3722313464 ___U3CtargetScaleU3E5__2_4;
// UnityEngine.Quaternion HoloToolkit.Unity.ControllerExamples.Brush/<UpdateDisplayMode>d__32::<targetRotation>5__3
Quaternion_t2301928331 ___U3CtargetRotationU3E5__3_5;
// UnityEngine.Vector3 HoloToolkit.Unity.ControllerExamples.Brush/<UpdateDisplayMode>d__32::<startPosition>5__4
Vector3_t3722313464 ___U3CstartPositionU3E5__4_6;
// UnityEngine.Vector3 HoloToolkit.Unity.ControllerExamples.Brush/<UpdateDisplayMode>d__32::<startScale>5__5
Vector3_t3722313464 ___U3CstartScaleU3E5__5_7;
// UnityEngine.Quaternion HoloToolkit.Unity.ControllerExamples.Brush/<UpdateDisplayMode>d__32::<startRotation>5__6
Quaternion_t2301928331 ___U3CstartRotationU3E5__6_8;
// HoloToolkit.Unity.ControllerExamples.Brush/DisplayModeEnum HoloToolkit.Unity.ControllerExamples.Brush/<UpdateDisplayMode>d__32::<lastDisplayMode>5__7
int32_t ___U3ClastDisplayModeU3E5__7_9;
// System.Single HoloToolkit.Unity.ControllerExamples.Brush/<UpdateDisplayMode>d__32::<startTime>5__8
float ___U3CstartTimeU3E5__8_10;
// System.Single HoloToolkit.Unity.ControllerExamples.Brush/<UpdateDisplayMode>d__32::<normalizedTime>5__9
float ___U3CnormalizedTimeU3E5__9_11;
public:
inline static int32_t get_offset_of_U3CU3E1__state_0() { return static_cast<int32_t>(offsetof(U3CUpdateDisplayModeU3Ed__32_t268247815, ___U3CU3E1__state_0)); }
inline int32_t get_U3CU3E1__state_0() const { return ___U3CU3E1__state_0; }
inline int32_t* get_address_of_U3CU3E1__state_0() { return &___U3CU3E1__state_0; }
inline void set_U3CU3E1__state_0(int32_t value)
{
___U3CU3E1__state_0 = value;
}
inline static int32_t get_offset_of_U3CU3E2__current_1() { return static_cast<int32_t>(offsetof(U3CUpdateDisplayModeU3Ed__32_t268247815, ___U3CU3E2__current_1)); }
inline RuntimeObject * get_U3CU3E2__current_1() const { return ___U3CU3E2__current_1; }
inline RuntimeObject ** get_address_of_U3CU3E2__current_1() { return &___U3CU3E2__current_1; }
inline void set_U3CU3E2__current_1(RuntimeObject * value)
{
___U3CU3E2__current_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E2__current_1), value);
}
inline static int32_t get_offset_of_U3CU3E4__this_2() { return static_cast<int32_t>(offsetof(U3CUpdateDisplayModeU3Ed__32_t268247815, ___U3CU3E4__this_2)); }
inline Brush_t1548626474 * get_U3CU3E4__this_2() const { return ___U3CU3E4__this_2; }
inline Brush_t1548626474 ** get_address_of_U3CU3E4__this_2() { return &___U3CU3E4__this_2; }
inline void set_U3CU3E4__this_2(Brush_t1548626474 * value)
{
___U3CU3E4__this_2 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E4__this_2), value);
}
inline static int32_t get_offset_of_U3CtargetPositionU3E5__1_3() { return static_cast<int32_t>(offsetof(U3CUpdateDisplayModeU3Ed__32_t268247815, ___U3CtargetPositionU3E5__1_3)); }
inline Vector3_t3722313464 get_U3CtargetPositionU3E5__1_3() const { return ___U3CtargetPositionU3E5__1_3; }
inline Vector3_t3722313464 * get_address_of_U3CtargetPositionU3E5__1_3() { return &___U3CtargetPositionU3E5__1_3; }
inline void set_U3CtargetPositionU3E5__1_3(Vector3_t3722313464 value)
{
___U3CtargetPositionU3E5__1_3 = value;
}
inline static int32_t get_offset_of_U3CtargetScaleU3E5__2_4() { return static_cast<int32_t>(offsetof(U3CUpdateDisplayModeU3Ed__32_t268247815, ___U3CtargetScaleU3E5__2_4)); }
inline Vector3_t3722313464 get_U3CtargetScaleU3E5__2_4() const { return ___U3CtargetScaleU3E5__2_4; }
inline Vector3_t3722313464 * get_address_of_U3CtargetScaleU3E5__2_4() { return &___U3CtargetScaleU3E5__2_4; }
inline void set_U3CtargetScaleU3E5__2_4(Vector3_t3722313464 value)
{
___U3CtargetScaleU3E5__2_4 = value;
}
inline static int32_t get_offset_of_U3CtargetRotationU3E5__3_5() { return static_cast<int32_t>(offsetof(U3CUpdateDisplayModeU3Ed__32_t268247815, ___U3CtargetRotationU3E5__3_5)); }
inline Quaternion_t2301928331 get_U3CtargetRotationU3E5__3_5() const { return ___U3CtargetRotationU3E5__3_5; }
inline Quaternion_t2301928331 * get_address_of_U3CtargetRotationU3E5__3_5() { return &___U3CtargetRotationU3E5__3_5; }
inline void set_U3CtargetRotationU3E5__3_5(Quaternion_t2301928331 value)
{
___U3CtargetRotationU3E5__3_5 = value;
}
inline static int32_t get_offset_of_U3CstartPositionU3E5__4_6() { return static_cast<int32_t>(offsetof(U3CUpdateDisplayModeU3Ed__32_t268247815, ___U3CstartPositionU3E5__4_6)); }
inline Vector3_t3722313464 get_U3CstartPositionU3E5__4_6() const { return ___U3CstartPositionU3E5__4_6; }
inline Vector3_t3722313464 * get_address_of_U3CstartPositionU3E5__4_6() { return &___U3CstartPositionU3E5__4_6; }
inline void set_U3CstartPositionU3E5__4_6(Vector3_t3722313464 value)
{
___U3CstartPositionU3E5__4_6 = value;
}
inline static int32_t get_offset_of_U3CstartScaleU3E5__5_7() { return static_cast<int32_t>(offsetof(U3CUpdateDisplayModeU3Ed__32_t268247815, ___U3CstartScaleU3E5__5_7)); }
inline Vector3_t3722313464 get_U3CstartScaleU3E5__5_7() const { return ___U3CstartScaleU3E5__5_7; }
inline Vector3_t3722313464 * get_address_of_U3CstartScaleU3E5__5_7() { return &___U3CstartScaleU3E5__5_7; }
inline void set_U3CstartScaleU3E5__5_7(Vector3_t3722313464 value)
{
___U3CstartScaleU3E5__5_7 = value;
}
inline static int32_t get_offset_of_U3CstartRotationU3E5__6_8() { return static_cast<int32_t>(offsetof(U3CUpdateDisplayModeU3Ed__32_t268247815, ___U3CstartRotationU3E5__6_8)); }
inline Quaternion_t2301928331 get_U3CstartRotationU3E5__6_8() const { return ___U3CstartRotationU3E5__6_8; }
inline Quaternion_t2301928331 * get_address_of_U3CstartRotationU3E5__6_8() { return &___U3CstartRotationU3E5__6_8; }
inline void set_U3CstartRotationU3E5__6_8(Quaternion_t2301928331 value)
{
___U3CstartRotationU3E5__6_8 = value;
}
inline static int32_t get_offset_of_U3ClastDisplayModeU3E5__7_9() { return static_cast<int32_t>(offsetof(U3CUpdateDisplayModeU3Ed__32_t268247815, ___U3ClastDisplayModeU3E5__7_9)); }
inline int32_t get_U3ClastDisplayModeU3E5__7_9() const { return ___U3ClastDisplayModeU3E5__7_9; }
inline int32_t* get_address_of_U3ClastDisplayModeU3E5__7_9() { return &___U3ClastDisplayModeU3E5__7_9; }
inline void set_U3ClastDisplayModeU3E5__7_9(int32_t value)
{
___U3ClastDisplayModeU3E5__7_9 = value;
}
inline static int32_t get_offset_of_U3CstartTimeU3E5__8_10() { return static_cast<int32_t>(offsetof(U3CUpdateDisplayModeU3Ed__32_t268247815, ___U3CstartTimeU3E5__8_10)); }
inline float get_U3CstartTimeU3E5__8_10() const { return ___U3CstartTimeU3E5__8_10; }
inline float* get_address_of_U3CstartTimeU3E5__8_10() { return &___U3CstartTimeU3E5__8_10; }
inline void set_U3CstartTimeU3E5__8_10(float value)
{
___U3CstartTimeU3E5__8_10 = value;
}
inline static int32_t get_offset_of_U3CnormalizedTimeU3E5__9_11() { return static_cast<int32_t>(offsetof(U3CUpdateDisplayModeU3Ed__32_t268247815, ___U3CnormalizedTimeU3E5__9_11)); }
inline float get_U3CnormalizedTimeU3E5__9_11() const { return ___U3CnormalizedTimeU3E5__9_11; }
inline float* get_address_of_U3CnormalizedTimeU3E5__9_11() { return &___U3CnormalizedTimeU3E5__9_11; }
inline void set_U3CnormalizedTimeU3E5__9_11(float value)
{
___U3CnormalizedTimeU3E5__9_11 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CUPDATEDISPLAYMODEU3ED__32_T268247815_H
#ifndef KEYWORDANDKEYCODE_T2714956691_H
#define KEYWORDANDKEYCODE_T2714956691_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.KeywordAndKeyCode
struct KeywordAndKeyCode_t2714956691
{
public:
// System.String HoloToolkit.Unity.InputModule.KeywordAndKeyCode::Keyword
String_t* ___Keyword_0;
// UnityEngine.KeyCode HoloToolkit.Unity.InputModule.KeywordAndKeyCode::KeyCode
int32_t ___KeyCode_1;
public:
inline static int32_t get_offset_of_Keyword_0() { return static_cast<int32_t>(offsetof(KeywordAndKeyCode_t2714956691, ___Keyword_0)); }
inline String_t* get_Keyword_0() const { return ___Keyword_0; }
inline String_t** get_address_of_Keyword_0() { return &___Keyword_0; }
inline void set_Keyword_0(String_t* value)
{
___Keyword_0 = value;
Il2CppCodeGenWriteBarrier((&___Keyword_0), value);
}
inline static int32_t get_offset_of_KeyCode_1() { return static_cast<int32_t>(offsetof(KeywordAndKeyCode_t2714956691, ___KeyCode_1)); }
inline int32_t get_KeyCode_1() const { return ___KeyCode_1; }
inline int32_t* get_address_of_KeyCode_1() { return &___KeyCode_1; }
inline void set_KeyCode_1(int32_t value)
{
___KeyCode_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of HoloToolkit.Unity.InputModule.KeywordAndKeyCode
struct KeywordAndKeyCode_t2714956691_marshaled_pinvoke
{
char* ___Keyword_0;
int32_t ___KeyCode_1;
};
// Native definition for COM marshalling of HoloToolkit.Unity.InputModule.KeywordAndKeyCode
struct KeywordAndKeyCode_t2714956691_marshaled_com
{
Il2CppChar* ___Keyword_0;
int32_t ___KeyCode_1;
};
#endif // KEYWORDANDKEYCODE_T2714956691_H
#ifndef NULLABLE_1_T1213446279_H
#define NULLABLE_1_T1213446279_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Nullable`1<UnityEngine.Ray>
struct Nullable_1_t1213446279
{
public:
// T System.Nullable`1::value
Ray_t3785851493 ___value_0;
// System.Boolean System.Nullable`1::has_value
bool ___has_value_1;
public:
inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(Nullable_1_t1213446279, ___value_0)); }
inline Ray_t3785851493 get_value_0() const { return ___value_0; }
inline Ray_t3785851493 * get_address_of_value_0() { return &___value_0; }
inline void set_value_0(Ray_t3785851493 value)
{
___value_0 = value;
}
inline static int32_t get_offset_of_has_value_1() { return static_cast<int32_t>(offsetof(Nullable_1_t1213446279, ___has_value_1)); }
inline bool get_has_value_1() const { return ___has_value_1; }
inline bool* get_address_of_has_value_1() { return &___has_value_1; }
inline void set_has_value_1(bool value)
{
___has_value_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // NULLABLE_1_T1213446279_H
#ifndef DISPLAYEVENTHANDLER_T3688058425_H
#define DISPLAYEVENTHANDLER_T3688058425_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.MixedRealityCameraManager/DisplayEventHandler
struct DisplayEventHandler_t3688058425 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DISPLAYEVENTHANDLER_T3688058425_H
#ifndef LIVEMICCALLBACK_T4027000814_H
#define LIVEMICCALLBACK_T4027000814_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.MicStream/LiveMicCallback
struct LiveMicCallback_t4027000814 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LIVEMICCALLBACK_T4027000814_H
#ifndef KEYBOARDCALLBACK_T3784036511_H
#define KEYBOARDCALLBACK_T3784036511_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.KeyboardManager/KeyboardCallback
struct KeyboardCallback_t3784036511 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYBOARDCALLBACK_T3784036511_H
#ifndef KEYBOARDREGISTRATION_T3963964306_H
#define KEYBOARDREGISTRATION_T3963964306_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.KeyboardManager/KeyboardRegistration
struct KeyboardRegistration_t3963964306 : public RuntimeObject
{
public:
// HoloToolkit.Unity.InputModule.KeyboardManager/KeyCodeEventPair HoloToolkit.Unity.InputModule.KeyboardManager/KeyboardRegistration::keyCodeEvent
KeyCodeEventPair_t1510105498 ___keyCodeEvent_0;
// HoloToolkit.Unity.InputModule.KeyboardManager/KeyboardCallback HoloToolkit.Unity.InputModule.KeyboardManager/KeyboardRegistration::callback
KeyboardCallback_t3784036511 * ___callback_1;
// System.Boolean HoloToolkit.Unity.InputModule.KeyboardManager/KeyboardRegistration::isRegistered
bool ___isRegistered_2;
public:
inline static int32_t get_offset_of_keyCodeEvent_0() { return static_cast<int32_t>(offsetof(KeyboardRegistration_t3963964306, ___keyCodeEvent_0)); }
inline KeyCodeEventPair_t1510105498 get_keyCodeEvent_0() const { return ___keyCodeEvent_0; }
inline KeyCodeEventPair_t1510105498 * get_address_of_keyCodeEvent_0() { return &___keyCodeEvent_0; }
inline void set_keyCodeEvent_0(KeyCodeEventPair_t1510105498 value)
{
___keyCodeEvent_0 = value;
}
inline static int32_t get_offset_of_callback_1() { return static_cast<int32_t>(offsetof(KeyboardRegistration_t3963964306, ___callback_1)); }
inline KeyboardCallback_t3784036511 * get_callback_1() const { return ___callback_1; }
inline KeyboardCallback_t3784036511 ** get_address_of_callback_1() { return &___callback_1; }
inline void set_callback_1(KeyboardCallback_t3784036511 * value)
{
___callback_1 = value;
Il2CppCodeGenWriteBarrier((&___callback_1), value);
}
inline static int32_t get_offset_of_isRegistered_2() { return static_cast<int32_t>(offsetof(KeyboardRegistration_t3963964306, ___isRegistered_2)); }
inline bool get_isRegistered_2() const { return ___isRegistered_2; }
inline bool* get_address_of_isRegistered_2() { return &___isRegistered_2; }
inline void set_isRegistered_2(bool value)
{
___isRegistered_2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYBOARDREGISTRATION_T3963964306_H
#ifndef DEBUGINTERACTIONSOURCEPOSE_T924263473_H
#define DEBUGINTERACTIONSOURCEPOSE_T924263473_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.DebugInteractionSourcePose
struct DebugInteractionSourcePose_t924263473 : public RuntimeObject
{
public:
// System.Boolean HoloToolkit.Unity.InputModule.DebugInteractionSourcePose::TryGetFunctionsReturnTrue
bool ___TryGetFunctionsReturnTrue_0;
// System.Boolean HoloToolkit.Unity.InputModule.DebugInteractionSourcePose::IsPositionAvailable
bool ___IsPositionAvailable_1;
// System.Boolean HoloToolkit.Unity.InputModule.DebugInteractionSourcePose::IsRotationAvailable
bool ___IsRotationAvailable_2;
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.DebugInteractionSourcePose::Position
Vector3_t3722313464 ___Position_3;
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.DebugInteractionSourcePose::Velocity
Vector3_t3722313464 ___Velocity_4;
// UnityEngine.Quaternion HoloToolkit.Unity.InputModule.DebugInteractionSourcePose::Rotation
Quaternion_t2301928331 ___Rotation_5;
// System.Nullable`1<UnityEngine.Ray> HoloToolkit.Unity.InputModule.DebugInteractionSourcePose::PointerRay
Nullable_1_t1213446279 ___PointerRay_6;
public:
inline static int32_t get_offset_of_TryGetFunctionsReturnTrue_0() { return static_cast<int32_t>(offsetof(DebugInteractionSourcePose_t924263473, ___TryGetFunctionsReturnTrue_0)); }
inline bool get_TryGetFunctionsReturnTrue_0() const { return ___TryGetFunctionsReturnTrue_0; }
inline bool* get_address_of_TryGetFunctionsReturnTrue_0() { return &___TryGetFunctionsReturnTrue_0; }
inline void set_TryGetFunctionsReturnTrue_0(bool value)
{
___TryGetFunctionsReturnTrue_0 = value;
}
inline static int32_t get_offset_of_IsPositionAvailable_1() { return static_cast<int32_t>(offsetof(DebugInteractionSourcePose_t924263473, ___IsPositionAvailable_1)); }
inline bool get_IsPositionAvailable_1() const { return ___IsPositionAvailable_1; }
inline bool* get_address_of_IsPositionAvailable_1() { return &___IsPositionAvailable_1; }
inline void set_IsPositionAvailable_1(bool value)
{
___IsPositionAvailable_1 = value;
}
inline static int32_t get_offset_of_IsRotationAvailable_2() { return static_cast<int32_t>(offsetof(DebugInteractionSourcePose_t924263473, ___IsRotationAvailable_2)); }
inline bool get_IsRotationAvailable_2() const { return ___IsRotationAvailable_2; }
inline bool* get_address_of_IsRotationAvailable_2() { return &___IsRotationAvailable_2; }
inline void set_IsRotationAvailable_2(bool value)
{
___IsRotationAvailable_2 = value;
}
inline static int32_t get_offset_of_Position_3() { return static_cast<int32_t>(offsetof(DebugInteractionSourcePose_t924263473, ___Position_3)); }
inline Vector3_t3722313464 get_Position_3() const { return ___Position_3; }
inline Vector3_t3722313464 * get_address_of_Position_3() { return &___Position_3; }
inline void set_Position_3(Vector3_t3722313464 value)
{
___Position_3 = value;
}
inline static int32_t get_offset_of_Velocity_4() { return static_cast<int32_t>(offsetof(DebugInteractionSourcePose_t924263473, ___Velocity_4)); }
inline Vector3_t3722313464 get_Velocity_4() const { return ___Velocity_4; }
inline Vector3_t3722313464 * get_address_of_Velocity_4() { return &___Velocity_4; }
inline void set_Velocity_4(Vector3_t3722313464 value)
{
___Velocity_4 = value;
}
inline static int32_t get_offset_of_Rotation_5() { return static_cast<int32_t>(offsetof(DebugInteractionSourcePose_t924263473, ___Rotation_5)); }
inline Quaternion_t2301928331 get_Rotation_5() const { return ___Rotation_5; }
inline Quaternion_t2301928331 * get_address_of_Rotation_5() { return &___Rotation_5; }
inline void set_Rotation_5(Quaternion_t2301928331 value)
{
___Rotation_5 = value;
}
inline static int32_t get_offset_of_PointerRay_6() { return static_cast<int32_t>(offsetof(DebugInteractionSourcePose_t924263473, ___PointerRay_6)); }
inline Nullable_1_t1213446279 get_PointerRay_6() const { return ___PointerRay_6; }
inline Nullable_1_t1213446279 * get_address_of_PointerRay_6() { return &___PointerRay_6; }
inline void set_PointerRay_6(Nullable_1_t1213446279 value)
{
___PointerRay_6 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DEBUGINTERACTIONSOURCEPOSE_T924263473_H
#ifndef BEHAVIOUR_T1437897464_H
#define BEHAVIOUR_T1437897464_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Behaviour
struct Behaviour_t1437897464 : public Component_t1923634451
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BEHAVIOUR_T1437897464_H
#ifndef U3CLOADCONTROLLERMODELU3ED__27_T1961351108_H
#define U3CLOADCONTROLLERMODELU3ED__27_T1961351108_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.MotionControllerVisualizer/<LoadControllerModel>d__27
struct U3CLoadControllerModelU3Ed__27_t1961351108 : public RuntimeObject
{
public:
// System.Int32 HoloToolkit.Unity.InputModule.MotionControllerVisualizer/<LoadControllerModel>d__27::<>1__state
int32_t ___U3CU3E1__state_0;
// System.Object HoloToolkit.Unity.InputModule.MotionControllerVisualizer/<LoadControllerModel>d__27::<>2__current
RuntimeObject * ___U3CU3E2__current_1;
// UnityEngine.XR.WSA.Input.InteractionSource HoloToolkit.Unity.InputModule.MotionControllerVisualizer/<LoadControllerModel>d__27::source
InteractionSource_t872619030 ___source_2;
// HoloToolkit.Unity.InputModule.MotionControllerVisualizer HoloToolkit.Unity.InputModule.MotionControllerVisualizer/<LoadControllerModel>d__27::<>4__this
MotionControllerVisualizer_t392243420 * ___U3CU3E4__this_3;
public:
inline static int32_t get_offset_of_U3CU3E1__state_0() { return static_cast<int32_t>(offsetof(U3CLoadControllerModelU3Ed__27_t1961351108, ___U3CU3E1__state_0)); }
inline int32_t get_U3CU3E1__state_0() const { return ___U3CU3E1__state_0; }
inline int32_t* get_address_of_U3CU3E1__state_0() { return &___U3CU3E1__state_0; }
inline void set_U3CU3E1__state_0(int32_t value)
{
___U3CU3E1__state_0 = value;
}
inline static int32_t get_offset_of_U3CU3E2__current_1() { return static_cast<int32_t>(offsetof(U3CLoadControllerModelU3Ed__27_t1961351108, ___U3CU3E2__current_1)); }
inline RuntimeObject * get_U3CU3E2__current_1() const { return ___U3CU3E2__current_1; }
inline RuntimeObject ** get_address_of_U3CU3E2__current_1() { return &___U3CU3E2__current_1; }
inline void set_U3CU3E2__current_1(RuntimeObject * value)
{
___U3CU3E2__current_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E2__current_1), value);
}
inline static int32_t get_offset_of_source_2() { return static_cast<int32_t>(offsetof(U3CLoadControllerModelU3Ed__27_t1961351108, ___source_2)); }
inline InteractionSource_t872619030 get_source_2() const { return ___source_2; }
inline InteractionSource_t872619030 * get_address_of_source_2() { return &___source_2; }
inline void set_source_2(InteractionSource_t872619030 value)
{
___source_2 = value;
}
inline static int32_t get_offset_of_U3CU3E4__this_3() { return static_cast<int32_t>(offsetof(U3CLoadControllerModelU3Ed__27_t1961351108, ___U3CU3E4__this_3)); }
inline MotionControllerVisualizer_t392243420 * get_U3CU3E4__this_3() const { return ___U3CU3E4__this_3; }
inline MotionControllerVisualizer_t392243420 ** get_address_of_U3CU3E4__this_3() { return &___U3CU3E4__this_3; }
inline void set_U3CU3E4__this_3(MotionControllerVisualizer_t392243420 * value)
{
___U3CU3E4__this_3 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E4__this_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CLOADCONTROLLERMODELU3ED__27_T1961351108_H
#ifndef U3CLOADSOURCECONTROLLERMODELU3ED__28_T2257991569_H
#define U3CLOADSOURCECONTROLLERMODELU3ED__28_T2257991569_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.MotionControllerVisualizer/<LoadSourceControllerModel>d__28
struct U3CLoadSourceControllerModelU3Ed__28_t2257991569 : public RuntimeObject
{
public:
// System.Int32 HoloToolkit.Unity.InputModule.MotionControllerVisualizer/<LoadSourceControllerModel>d__28::<>1__state
int32_t ___U3CU3E1__state_0;
// System.Object HoloToolkit.Unity.InputModule.MotionControllerVisualizer/<LoadSourceControllerModel>d__28::<>2__current
RuntimeObject * ___U3CU3E2__current_1;
// UnityEngine.XR.WSA.Input.InteractionSource HoloToolkit.Unity.InputModule.MotionControllerVisualizer/<LoadSourceControllerModel>d__28::source
InteractionSource_t872619030 ___source_2;
// HoloToolkit.Unity.InputModule.MotionControllerVisualizer HoloToolkit.Unity.InputModule.MotionControllerVisualizer/<LoadSourceControllerModel>d__28::<>4__this
MotionControllerVisualizer_t392243420 * ___U3CU3E4__this_3;
// System.Byte[] HoloToolkit.Unity.InputModule.MotionControllerVisualizer/<LoadSourceControllerModel>d__28::<fileBytes>5__1
ByteU5BU5D_t4116647657* ___U3CfileBytesU3E5__1_4;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.MotionControllerVisualizer/<LoadSourceControllerModel>d__28::<controllerModelGameObject>5__2
GameObject_t1113636619 * ___U3CcontrollerModelGameObjectU3E5__2_5;
// Windows.Foundation.IAsyncOperation`1<Windows.Storage.Streams.IRandomAccessStreamWithContentType> HoloToolkit.Unity.InputModule.MotionControllerVisualizer/<LoadSourceControllerModel>d__28::<modelTask>5__3
RuntimeObject* ___U3CmodelTaskU3E5__3_6;
// Windows.Storage.Streams.IRandomAccessStreamWithContentType HoloToolkit.Unity.InputModule.MotionControllerVisualizer/<LoadSourceControllerModel>d__28::<modelStream>5__4
RuntimeObject* ___U3CmodelStreamU3E5__4_7;
// UnityGLTF.GLTFComponent HoloToolkit.Unity.InputModule.MotionControllerVisualizer/<LoadSourceControllerModel>d__28::<gltfScript>5__5
GLTFComponent_t238219215 * ___U3CgltfScriptU3E5__5_8;
// Windows.Storage.Streams.DataReader HoloToolkit.Unity.InputModule.MotionControllerVisualizer/<LoadSourceControllerModel>d__28::<reader>5__6
DataReader_t2381813649 * ___U3CreaderU3E5__6_9;
// Windows.Storage.Streams.DataReaderLoadOperation HoloToolkit.Unity.InputModule.MotionControllerVisualizer/<LoadSourceControllerModel>d__28::<loadModelOp>5__7
DataReaderLoadOperation_t4248924386 * ___U3CloadModelOpU3E5__7_10;
public:
inline static int32_t get_offset_of_U3CU3E1__state_0() { return static_cast<int32_t>(offsetof(U3CLoadSourceControllerModelU3Ed__28_t2257991569, ___U3CU3E1__state_0)); }
inline int32_t get_U3CU3E1__state_0() const { return ___U3CU3E1__state_0; }
inline int32_t* get_address_of_U3CU3E1__state_0() { return &___U3CU3E1__state_0; }
inline void set_U3CU3E1__state_0(int32_t value)
{
___U3CU3E1__state_0 = value;
}
inline static int32_t get_offset_of_U3CU3E2__current_1() { return static_cast<int32_t>(offsetof(U3CLoadSourceControllerModelU3Ed__28_t2257991569, ___U3CU3E2__current_1)); }
inline RuntimeObject * get_U3CU3E2__current_1() const { return ___U3CU3E2__current_1; }
inline RuntimeObject ** get_address_of_U3CU3E2__current_1() { return &___U3CU3E2__current_1; }
inline void set_U3CU3E2__current_1(RuntimeObject * value)
{
___U3CU3E2__current_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E2__current_1), value);
}
inline static int32_t get_offset_of_source_2() { return static_cast<int32_t>(offsetof(U3CLoadSourceControllerModelU3Ed__28_t2257991569, ___source_2)); }
inline InteractionSource_t872619030 get_source_2() const { return ___source_2; }
inline InteractionSource_t872619030 * get_address_of_source_2() { return &___source_2; }
inline void set_source_2(InteractionSource_t872619030 value)
{
___source_2 = value;
}
inline static int32_t get_offset_of_U3CU3E4__this_3() { return static_cast<int32_t>(offsetof(U3CLoadSourceControllerModelU3Ed__28_t2257991569, ___U3CU3E4__this_3)); }
inline MotionControllerVisualizer_t392243420 * get_U3CU3E4__this_3() const { return ___U3CU3E4__this_3; }
inline MotionControllerVisualizer_t392243420 ** get_address_of_U3CU3E4__this_3() { return &___U3CU3E4__this_3; }
inline void set_U3CU3E4__this_3(MotionControllerVisualizer_t392243420 * value)
{
___U3CU3E4__this_3 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E4__this_3), value);
}
inline static int32_t get_offset_of_U3CfileBytesU3E5__1_4() { return static_cast<int32_t>(offsetof(U3CLoadSourceControllerModelU3Ed__28_t2257991569, ___U3CfileBytesU3E5__1_4)); }
inline ByteU5BU5D_t4116647657* get_U3CfileBytesU3E5__1_4() const { return ___U3CfileBytesU3E5__1_4; }
inline ByteU5BU5D_t4116647657** get_address_of_U3CfileBytesU3E5__1_4() { return &___U3CfileBytesU3E5__1_4; }
inline void set_U3CfileBytesU3E5__1_4(ByteU5BU5D_t4116647657* value)
{
___U3CfileBytesU3E5__1_4 = value;
Il2CppCodeGenWriteBarrier((&___U3CfileBytesU3E5__1_4), value);
}
inline static int32_t get_offset_of_U3CcontrollerModelGameObjectU3E5__2_5() { return static_cast<int32_t>(offsetof(U3CLoadSourceControllerModelU3Ed__28_t2257991569, ___U3CcontrollerModelGameObjectU3E5__2_5)); }
inline GameObject_t1113636619 * get_U3CcontrollerModelGameObjectU3E5__2_5() const { return ___U3CcontrollerModelGameObjectU3E5__2_5; }
inline GameObject_t1113636619 ** get_address_of_U3CcontrollerModelGameObjectU3E5__2_5() { return &___U3CcontrollerModelGameObjectU3E5__2_5; }
inline void set_U3CcontrollerModelGameObjectU3E5__2_5(GameObject_t1113636619 * value)
{
___U3CcontrollerModelGameObjectU3E5__2_5 = value;
Il2CppCodeGenWriteBarrier((&___U3CcontrollerModelGameObjectU3E5__2_5), value);
}
inline static int32_t get_offset_of_U3CmodelTaskU3E5__3_6() { return static_cast<int32_t>(offsetof(U3CLoadSourceControllerModelU3Ed__28_t2257991569, ___U3CmodelTaskU3E5__3_6)); }
inline RuntimeObject* get_U3CmodelTaskU3E5__3_6() const { return ___U3CmodelTaskU3E5__3_6; }
inline RuntimeObject** get_address_of_U3CmodelTaskU3E5__3_6() { return &___U3CmodelTaskU3E5__3_6; }
inline void set_U3CmodelTaskU3E5__3_6(RuntimeObject* value)
{
___U3CmodelTaskU3E5__3_6 = value;
Il2CppCodeGenWriteBarrier((&___U3CmodelTaskU3E5__3_6), value);
}
inline static int32_t get_offset_of_U3CmodelStreamU3E5__4_7() { return static_cast<int32_t>(offsetof(U3CLoadSourceControllerModelU3Ed__28_t2257991569, ___U3CmodelStreamU3E5__4_7)); }
inline RuntimeObject* get_U3CmodelStreamU3E5__4_7() const { return ___U3CmodelStreamU3E5__4_7; }
inline RuntimeObject** get_address_of_U3CmodelStreamU3E5__4_7() { return &___U3CmodelStreamU3E5__4_7; }
inline void set_U3CmodelStreamU3E5__4_7(RuntimeObject* value)
{
___U3CmodelStreamU3E5__4_7 = value;
Il2CppCodeGenWriteBarrier((&___U3CmodelStreamU3E5__4_7), value);
}
inline static int32_t get_offset_of_U3CgltfScriptU3E5__5_8() { return static_cast<int32_t>(offsetof(U3CLoadSourceControllerModelU3Ed__28_t2257991569, ___U3CgltfScriptU3E5__5_8)); }
inline GLTFComponent_t238219215 * get_U3CgltfScriptU3E5__5_8() const { return ___U3CgltfScriptU3E5__5_8; }
inline GLTFComponent_t238219215 ** get_address_of_U3CgltfScriptU3E5__5_8() { return &___U3CgltfScriptU3E5__5_8; }
inline void set_U3CgltfScriptU3E5__5_8(GLTFComponent_t238219215 * value)
{
___U3CgltfScriptU3E5__5_8 = value;
Il2CppCodeGenWriteBarrier((&___U3CgltfScriptU3E5__5_8), value);
}
inline static int32_t get_offset_of_U3CreaderU3E5__6_9() { return static_cast<int32_t>(offsetof(U3CLoadSourceControllerModelU3Ed__28_t2257991569, ___U3CreaderU3E5__6_9)); }
inline DataReader_t2381813649 * get_U3CreaderU3E5__6_9() const { return ___U3CreaderU3E5__6_9; }
inline DataReader_t2381813649 ** get_address_of_U3CreaderU3E5__6_9() { return &___U3CreaderU3E5__6_9; }
inline void set_U3CreaderU3E5__6_9(DataReader_t2381813649 * value)
{
___U3CreaderU3E5__6_9 = value;
Il2CppCodeGenWriteBarrier((&___U3CreaderU3E5__6_9), value);
}
inline static int32_t get_offset_of_U3CloadModelOpU3E5__7_10() { return static_cast<int32_t>(offsetof(U3CLoadSourceControllerModelU3Ed__28_t2257991569, ___U3CloadModelOpU3E5__7_10)); }
inline DataReaderLoadOperation_t4248924386 * get_U3CloadModelOpU3E5__7_10() const { return ___U3CloadModelOpU3E5__7_10; }
inline DataReaderLoadOperation_t4248924386 ** get_address_of_U3CloadModelOpU3E5__7_10() { return &___U3CloadModelOpU3E5__7_10; }
inline void set_U3CloadModelOpU3E5__7_10(DataReaderLoadOperation_t4248924386 * value)
{
___U3CloadModelOpU3E5__7_10 = value;
Il2CppCodeGenWriteBarrier((&___U3CloadModelOpU3E5__7_10), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CLOADSOURCECONTROLLERMODELU3ED__28_T2257991569_H
#ifndef MONOBEHAVIOUR_T3962482529_H
#define MONOBEHAVIOUR_T3962482529_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.MonoBehaviour
struct MonoBehaviour_t3962482529 : public Behaviour_t1437897464
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // MONOBEHAVIOUR_T3962482529_H
#ifndef SINGLETON_1_T2186788972_H
#define SINGLETON_1_T2186788972_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Singleton`1<HoloToolkit.Unity.InputModule.KeyboardManager>
struct Singleton_1_t2186788972 : public MonoBehaviour_t3962482529
{
public:
public:
};
struct Singleton_1_t2186788972_StaticFields
{
public:
// T HoloToolkit.Unity.Singleton`1::instance
KeyboardManager_t1786564518 * ___instance_2;
// System.Boolean HoloToolkit.Unity.Singleton`1::searchForInstance
bool ___searchForInstance_3;
public:
inline static int32_t get_offset_of_instance_2() { return static_cast<int32_t>(offsetof(Singleton_1_t2186788972_StaticFields, ___instance_2)); }
inline KeyboardManager_t1786564518 * get_instance_2() const { return ___instance_2; }
inline KeyboardManager_t1786564518 ** get_address_of_instance_2() { return &___instance_2; }
inline void set_instance_2(KeyboardManager_t1786564518 * value)
{
___instance_2 = value;
Il2CppCodeGenWriteBarrier((&___instance_2), value);
}
inline static int32_t get_offset_of_searchForInstance_3() { return static_cast<int32_t>(offsetof(Singleton_1_t2186788972_StaticFields, ___searchForInstance_3)); }
inline bool get_searchForInstance_3() const { return ___searchForInstance_3; }
inline bool* get_address_of_searchForInstance_3() { return &___searchForInstance_3; }
inline void set_searchForInstance_3(bool value)
{
___searchForInstance_3 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SINGLETON_1_T2186788972_H
#ifndef CONTROLLERFINDER_T3151550888_H
#define CONTROLLERFINDER_T3151550888_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.ControllerFinder
struct ControllerFinder_t3151550888 : public MonoBehaviour_t3962482529
{
public:
// HoloToolkit.Unity.InputModule.MotionControllerInfo/ControllerElementEnum HoloToolkit.Unity.InputModule.ControllerFinder::element
int32_t ___element_2;
// UnityEngine.XR.WSA.Input.InteractionSourceHandedness HoloToolkit.Unity.InputModule.ControllerFinder::handedness
int32_t ___handedness_3;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.ControllerFinder::elementTransform
Transform_t3600365921 * ___elementTransform_4;
// HoloToolkit.Unity.InputModule.MotionControllerInfo HoloToolkit.Unity.InputModule.ControllerFinder::ControllerInfo
MotionControllerInfo_t938152223 * ___ControllerInfo_5;
public:
inline static int32_t get_offset_of_element_2() { return static_cast<int32_t>(offsetof(ControllerFinder_t3151550888, ___element_2)); }
inline int32_t get_element_2() const { return ___element_2; }
inline int32_t* get_address_of_element_2() { return &___element_2; }
inline void set_element_2(int32_t value)
{
___element_2 = value;
}
inline static int32_t get_offset_of_handedness_3() { return static_cast<int32_t>(offsetof(ControllerFinder_t3151550888, ___handedness_3)); }
inline int32_t get_handedness_3() const { return ___handedness_3; }
inline int32_t* get_address_of_handedness_3() { return &___handedness_3; }
inline void set_handedness_3(int32_t value)
{
___handedness_3 = value;
}
inline static int32_t get_offset_of_elementTransform_4() { return static_cast<int32_t>(offsetof(ControllerFinder_t3151550888, ___elementTransform_4)); }
inline Transform_t3600365921 * get_elementTransform_4() const { return ___elementTransform_4; }
inline Transform_t3600365921 ** get_address_of_elementTransform_4() { return &___elementTransform_4; }
inline void set_elementTransform_4(Transform_t3600365921 * value)
{
___elementTransform_4 = value;
Il2CppCodeGenWriteBarrier((&___elementTransform_4), value);
}
inline static int32_t get_offset_of_ControllerInfo_5() { return static_cast<int32_t>(offsetof(ControllerFinder_t3151550888, ___ControllerInfo_5)); }
inline MotionControllerInfo_t938152223 * get_ControllerInfo_5() const { return ___ControllerInfo_5; }
inline MotionControllerInfo_t938152223 ** get_address_of_ControllerInfo_5() { return &___ControllerInfo_5; }
inline void set_ControllerInfo_5(MotionControllerInfo_t938152223 * value)
{
___ControllerInfo_5 = value;
Il2CppCodeGenWriteBarrier((&___ControllerInfo_5), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CONTROLLERFINDER_T3151550888_H
#ifndef SINGLETON_1_T4017920184_H
#define SINGLETON_1_T4017920184_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Singleton`1<HoloToolkit.Unity.InputModule.InputManager>
struct Singleton_1_t4017920184 : public MonoBehaviour_t3962482529
{
public:
public:
};
struct Singleton_1_t4017920184_StaticFields
{
public:
// T HoloToolkit.Unity.Singleton`1::instance
InputManager_t3617695730 * ___instance_2;
// System.Boolean HoloToolkit.Unity.Singleton`1::searchForInstance
bool ___searchForInstance_3;
public:
inline static int32_t get_offset_of_instance_2() { return static_cast<int32_t>(offsetof(Singleton_1_t4017920184_StaticFields, ___instance_2)); }
inline InputManager_t3617695730 * get_instance_2() const { return ___instance_2; }
inline InputManager_t3617695730 ** get_address_of_instance_2() { return &___instance_2; }
inline void set_instance_2(InputManager_t3617695730 * value)
{
___instance_2 = value;
Il2CppCodeGenWriteBarrier((&___instance_2), value);
}
inline static int32_t get_offset_of_searchForInstance_3() { return static_cast<int32_t>(offsetof(Singleton_1_t4017920184_StaticFields, ___searchForInstance_3)); }
inline bool get_searchForInstance_3() const { return ___searchForInstance_3; }
inline bool* get_address_of_searchForInstance_3() { return &___searchForInstance_3; }
inline void set_searchForInstance_3(bool value)
{
___searchForInstance_3 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SINGLETON_1_T4017920184_H
#ifndef SINGLETON_1_T612194013_H
#define SINGLETON_1_T612194013_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Singleton`1<HoloToolkit.Unity.InputModule.HandGuidance>
struct Singleton_1_t612194013 : public MonoBehaviour_t3962482529
{
public:
public:
};
struct Singleton_1_t612194013_StaticFields
{
public:
// T HoloToolkit.Unity.Singleton`1::instance
HandGuidance_t211969559 * ___instance_2;
// System.Boolean HoloToolkit.Unity.Singleton`1::searchForInstance
bool ___searchForInstance_3;
public:
inline static int32_t get_offset_of_instance_2() { return static_cast<int32_t>(offsetof(Singleton_1_t612194013_StaticFields, ___instance_2)); }
inline HandGuidance_t211969559 * get_instance_2() const { return ___instance_2; }
inline HandGuidance_t211969559 ** get_address_of_instance_2() { return &___instance_2; }
inline void set_instance_2(HandGuidance_t211969559 * value)
{
___instance_2 = value;
Il2CppCodeGenWriteBarrier((&___instance_2), value);
}
inline static int32_t get_offset_of_searchForInstance_3() { return static_cast<int32_t>(offsetof(Singleton_1_t612194013_StaticFields, ___searchForInstance_3)); }
inline bool get_searchForInstance_3() const { return ___searchForInstance_3; }
inline bool* get_address_of_searchForInstance_3() { return &___searchForInstance_3; }
inline void set_searchForInstance_3(bool value)
{
___searchForInstance_3 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SINGLETON_1_T612194013_H
#ifndef AXISCONTROLLER_T4134225610_H
#define AXISCONTROLLER_T4134225610_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.AxisController
struct AxisController_t4134225610 : public MonoBehaviour_t3962482529
{
public:
// System.Single HoloToolkit.Unity.InputModule.AxisController::SensitivityScale
float ___SensitivityScale_2;
// System.Boolean HoloToolkit.Unity.InputModule.AxisController::UseUnscaledTime
bool ___UseUnscaledTime_3;
// HoloToolkit.Unity.InputModule.AxisController/AxisType HoloToolkit.Unity.InputModule.AxisController::axisType
int32_t ___axisType_4;
// HoloToolkit.Unity.InputModule.ButtonController/ButtonType HoloToolkit.Unity.InputModule.AxisController::buttonType
int32_t ___buttonType_5;
// System.String HoloToolkit.Unity.InputModule.AxisController::InputManagerHorizontalAxisName
String_t* ___InputManagerHorizontalAxisName_6;
// System.String HoloToolkit.Unity.InputModule.AxisController::InputManagerVerticalAxisName
String_t* ___InputManagerVerticalAxisName_7;
// HoloToolkit.Unity.InputModule.AxisController/AxisDestination HoloToolkit.Unity.InputModule.AxisController::Axis0Destination
int32_t ___Axis0Destination_8;
// HoloToolkit.Unity.InputModule.AxisController/AxisDestination HoloToolkit.Unity.InputModule.AxisController::Axis1Destination
int32_t ___Axis1Destination_9;
// HoloToolkit.Unity.InputModule.AxisController/AxisDestination HoloToolkit.Unity.InputModule.AxisController::Axis2Destination
int32_t ___Axis2Destination_10;
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.AxisController::lastMousePosition
Vector3_t3722313464 ___lastMousePosition_11;
// System.Boolean HoloToolkit.Unity.InputModule.AxisController::isMouseJumping
bool ___isMouseJumping_16;
// System.Boolean HoloToolkit.Unity.InputModule.AxisController::appHasFocus
bool ___appHasFocus_17;
// System.Boolean HoloToolkit.Unity.InputModule.AxisController::usingMouse
bool ___usingMouse_18;
// System.Boolean HoloToolkit.Unity.InputModule.AxisController::inputManagerAxesNeedApproval
bool ___inputManagerAxesNeedApproval_19;
// System.Boolean HoloToolkit.Unity.InputModule.AxisController::inputManagerHorizontalAxisApproved
bool ___inputManagerHorizontalAxisApproved_20;
// System.Boolean HoloToolkit.Unity.InputModule.AxisController::inputManagerVerticalAxisApproved
bool ___inputManagerVerticalAxisApproved_21;
public:
inline static int32_t get_offset_of_SensitivityScale_2() { return static_cast<int32_t>(offsetof(AxisController_t4134225610, ___SensitivityScale_2)); }
inline float get_SensitivityScale_2() const { return ___SensitivityScale_2; }
inline float* get_address_of_SensitivityScale_2() { return &___SensitivityScale_2; }
inline void set_SensitivityScale_2(float value)
{
___SensitivityScale_2 = value;
}
inline static int32_t get_offset_of_UseUnscaledTime_3() { return static_cast<int32_t>(offsetof(AxisController_t4134225610, ___UseUnscaledTime_3)); }
inline bool get_UseUnscaledTime_3() const { return ___UseUnscaledTime_3; }
inline bool* get_address_of_UseUnscaledTime_3() { return &___UseUnscaledTime_3; }
inline void set_UseUnscaledTime_3(bool value)
{
___UseUnscaledTime_3 = value;
}
inline static int32_t get_offset_of_axisType_4() { return static_cast<int32_t>(offsetof(AxisController_t4134225610, ___axisType_4)); }
inline int32_t get_axisType_4() const { return ___axisType_4; }
inline int32_t* get_address_of_axisType_4() { return &___axisType_4; }
inline void set_axisType_4(int32_t value)
{
___axisType_4 = value;
}
inline static int32_t get_offset_of_buttonType_5() { return static_cast<int32_t>(offsetof(AxisController_t4134225610, ___buttonType_5)); }
inline int32_t get_buttonType_5() const { return ___buttonType_5; }
inline int32_t* get_address_of_buttonType_5() { return &___buttonType_5; }
inline void set_buttonType_5(int32_t value)
{
___buttonType_5 = value;
}
inline static int32_t get_offset_of_InputManagerHorizontalAxisName_6() { return static_cast<int32_t>(offsetof(AxisController_t4134225610, ___InputManagerHorizontalAxisName_6)); }
inline String_t* get_InputManagerHorizontalAxisName_6() const { return ___InputManagerHorizontalAxisName_6; }
inline String_t** get_address_of_InputManagerHorizontalAxisName_6() { return &___InputManagerHorizontalAxisName_6; }
inline void set_InputManagerHorizontalAxisName_6(String_t* value)
{
___InputManagerHorizontalAxisName_6 = value;
Il2CppCodeGenWriteBarrier((&___InputManagerHorizontalAxisName_6), value);
}
inline static int32_t get_offset_of_InputManagerVerticalAxisName_7() { return static_cast<int32_t>(offsetof(AxisController_t4134225610, ___InputManagerVerticalAxisName_7)); }
inline String_t* get_InputManagerVerticalAxisName_7() const { return ___InputManagerVerticalAxisName_7; }
inline String_t** get_address_of_InputManagerVerticalAxisName_7() { return &___InputManagerVerticalAxisName_7; }
inline void set_InputManagerVerticalAxisName_7(String_t* value)
{
___InputManagerVerticalAxisName_7 = value;
Il2CppCodeGenWriteBarrier((&___InputManagerVerticalAxisName_7), value);
}
inline static int32_t get_offset_of_Axis0Destination_8() { return static_cast<int32_t>(offsetof(AxisController_t4134225610, ___Axis0Destination_8)); }
inline int32_t get_Axis0Destination_8() const { return ___Axis0Destination_8; }
inline int32_t* get_address_of_Axis0Destination_8() { return &___Axis0Destination_8; }
inline void set_Axis0Destination_8(int32_t value)
{
___Axis0Destination_8 = value;
}
inline static int32_t get_offset_of_Axis1Destination_9() { return static_cast<int32_t>(offsetof(AxisController_t4134225610, ___Axis1Destination_9)); }
inline int32_t get_Axis1Destination_9() const { return ___Axis1Destination_9; }
inline int32_t* get_address_of_Axis1Destination_9() { return &___Axis1Destination_9; }
inline void set_Axis1Destination_9(int32_t value)
{
___Axis1Destination_9 = value;
}
inline static int32_t get_offset_of_Axis2Destination_10() { return static_cast<int32_t>(offsetof(AxisController_t4134225610, ___Axis2Destination_10)); }
inline int32_t get_Axis2Destination_10() const { return ___Axis2Destination_10; }
inline int32_t* get_address_of_Axis2Destination_10() { return &___Axis2Destination_10; }
inline void set_Axis2Destination_10(int32_t value)
{
___Axis2Destination_10 = value;
}
inline static int32_t get_offset_of_lastMousePosition_11() { return static_cast<int32_t>(offsetof(AxisController_t4134225610, ___lastMousePosition_11)); }
inline Vector3_t3722313464 get_lastMousePosition_11() const { return ___lastMousePosition_11; }
inline Vector3_t3722313464 * get_address_of_lastMousePosition_11() { return &___lastMousePosition_11; }
inline void set_lastMousePosition_11(Vector3_t3722313464 value)
{
___lastMousePosition_11 = value;
}
inline static int32_t get_offset_of_isMouseJumping_16() { return static_cast<int32_t>(offsetof(AxisController_t4134225610, ___isMouseJumping_16)); }
inline bool get_isMouseJumping_16() const { return ___isMouseJumping_16; }
inline bool* get_address_of_isMouseJumping_16() { return &___isMouseJumping_16; }
inline void set_isMouseJumping_16(bool value)
{
___isMouseJumping_16 = value;
}
inline static int32_t get_offset_of_appHasFocus_17() { return static_cast<int32_t>(offsetof(AxisController_t4134225610, ___appHasFocus_17)); }
inline bool get_appHasFocus_17() const { return ___appHasFocus_17; }
inline bool* get_address_of_appHasFocus_17() { return &___appHasFocus_17; }
inline void set_appHasFocus_17(bool value)
{
___appHasFocus_17 = value;
}
inline static int32_t get_offset_of_usingMouse_18() { return static_cast<int32_t>(offsetof(AxisController_t4134225610, ___usingMouse_18)); }
inline bool get_usingMouse_18() const { return ___usingMouse_18; }
inline bool* get_address_of_usingMouse_18() { return &___usingMouse_18; }
inline void set_usingMouse_18(bool value)
{
___usingMouse_18 = value;
}
inline static int32_t get_offset_of_inputManagerAxesNeedApproval_19() { return static_cast<int32_t>(offsetof(AxisController_t4134225610, ___inputManagerAxesNeedApproval_19)); }
inline bool get_inputManagerAxesNeedApproval_19() const { return ___inputManagerAxesNeedApproval_19; }
inline bool* get_address_of_inputManagerAxesNeedApproval_19() { return &___inputManagerAxesNeedApproval_19; }
inline void set_inputManagerAxesNeedApproval_19(bool value)
{
___inputManagerAxesNeedApproval_19 = value;
}
inline static int32_t get_offset_of_inputManagerHorizontalAxisApproved_20() { return static_cast<int32_t>(offsetof(AxisController_t4134225610, ___inputManagerHorizontalAxisApproved_20)); }
inline bool get_inputManagerHorizontalAxisApproved_20() const { return ___inputManagerHorizontalAxisApproved_20; }
inline bool* get_address_of_inputManagerHorizontalAxisApproved_20() { return &___inputManagerHorizontalAxisApproved_20; }
inline void set_inputManagerHorizontalAxisApproved_20(bool value)
{
___inputManagerHorizontalAxisApproved_20 = value;
}
inline static int32_t get_offset_of_inputManagerVerticalAxisApproved_21() { return static_cast<int32_t>(offsetof(AxisController_t4134225610, ___inputManagerVerticalAxisApproved_21)); }
inline bool get_inputManagerVerticalAxisApproved_21() const { return ___inputManagerVerticalAxisApproved_21; }
inline bool* get_address_of_inputManagerVerticalAxisApproved_21() { return &___inputManagerVerticalAxisApproved_21; }
inline void set_inputManagerVerticalAxisApproved_21(bool value)
{
___inputManagerVerticalAxisApproved_21 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // AXISCONTROLLER_T4134225610_H
#ifndef TRIGGERBUTTON_T188319007_H
#define TRIGGERBUTTON_T188319007_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.TriggerButton
struct TriggerButton_t188319007 : public MonoBehaviour_t3962482529
{
public:
// System.Boolean HoloToolkit.Unity.InputModule.TriggerButton::IsEnabled
bool ___IsEnabled_2;
// System.Action HoloToolkit.Unity.InputModule.TriggerButton::ButtonPressed
Action_t1264377477 * ___ButtonPressed_3;
public:
inline static int32_t get_offset_of_IsEnabled_2() { return static_cast<int32_t>(offsetof(TriggerButton_t188319007, ___IsEnabled_2)); }
inline bool get_IsEnabled_2() const { return ___IsEnabled_2; }
inline bool* get_address_of_IsEnabled_2() { return &___IsEnabled_2; }
inline void set_IsEnabled_2(bool value)
{
___IsEnabled_2 = value;
}
inline static int32_t get_offset_of_ButtonPressed_3() { return static_cast<int32_t>(offsetof(TriggerButton_t188319007, ___ButtonPressed_3)); }
inline Action_t1264377477 * get_ButtonPressed_3() const { return ___ButtonPressed_3; }
inline Action_t1264377477 ** get_address_of_ButtonPressed_3() { return &___ButtonPressed_3; }
inline void set_ButtonPressed_3(Action_t1264377477 * value)
{
___ButtonPressed_3 = value;
Il2CppCodeGenWriteBarrier((&___ButtonPressed_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TRIGGERBUTTON_T188319007_H
#ifndef BUTTONCONTROLLER_T4125738237_H
#define BUTTONCONTROLLER_T4125738237_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.ButtonController
struct ButtonController_t4125738237 : public MonoBehaviour_t3962482529
{
public:
// HoloToolkit.Unity.InputModule.ButtonController/ButtonType HoloToolkit.Unity.InputModule.ButtonController::buttonType
int32_t ___buttonType_2;
// System.Boolean HoloToolkit.Unity.InputModule.ButtonController::appHasFocus
bool ___appHasFocus_3;
public:
inline static int32_t get_offset_of_buttonType_2() { return static_cast<int32_t>(offsetof(ButtonController_t4125738237, ___buttonType_2)); }
inline int32_t get_buttonType_2() const { return ___buttonType_2; }
inline int32_t* get_address_of_buttonType_2() { return &___buttonType_2; }
inline void set_buttonType_2(int32_t value)
{
___buttonType_2 = value;
}
inline static int32_t get_offset_of_appHasFocus_3() { return static_cast<int32_t>(offsetof(ButtonController_t4125738237, ___appHasFocus_3)); }
inline bool get_appHasFocus_3() const { return ___appHasFocus_3; }
inline bool* get_address_of_appHasFocus_3() { return &___appHasFocus_3; }
inline void set_appHasFocus_3(bool value)
{
___appHasFocus_3 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BUTTONCONTROLLER_T4125738237_H
#ifndef CUSTOMINPUTCONTROL_T1681541923_H
#define CUSTOMINPUTCONTROL_T1681541923_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.CustomInputControl
struct CustomInputControl_t1681541923 : public MonoBehaviour_t3962482529
{
public:
// System.Single HoloToolkit.Unity.InputModule.CustomInputControl::ControllerReturnFactor
float ___ControllerReturnFactor_2;
// System.Single HoloToolkit.Unity.InputModule.CustomInputControl::ControllerTimeBeforeReturn
float ___ControllerTimeBeforeReturn_3;
// System.Boolean HoloToolkit.Unity.InputModule.CustomInputControl::UseUnscaledTime
bool ___UseUnscaledTime_4;
// HoloToolkit.Unity.InputModule.AxisController HoloToolkit.Unity.InputModule.CustomInputControl::PrimaryAxisTranslateControl
AxisController_t4134225610 * ___PrimaryAxisTranslateControl_5;
// HoloToolkit.Unity.InputModule.AxisController HoloToolkit.Unity.InputModule.CustomInputControl::SecondaryAxisTranslateControl
AxisController_t4134225610 * ___SecondaryAxisTranslateControl_6;
// HoloToolkit.Unity.InputModule.AxisController HoloToolkit.Unity.InputModule.CustomInputControl::PrimaryAxisRotateControl
AxisController_t4134225610 * ___PrimaryAxisRotateControl_7;
// HoloToolkit.Unity.InputModule.AxisController HoloToolkit.Unity.InputModule.CustomInputControl::SecondaryAxisRotateControl
AxisController_t4134225610 * ___SecondaryAxisRotateControl_8;
// HoloToolkit.Unity.InputModule.AxisController HoloToolkit.Unity.InputModule.CustomInputControl::TertiaryAxisRotateControl
AxisController_t4134225610 * ___TertiaryAxisRotateControl_9;
// HoloToolkit.Unity.InputModule.ButtonController HoloToolkit.Unity.InputModule.CustomInputControl::SelectButtonControl
ButtonController_t4125738237 * ___SelectButtonControl_10;
// HoloToolkit.Unity.InputModule.ButtonController HoloToolkit.Unity.InputModule.CustomInputControl::MenuButtonControl
ButtonController_t4125738237 * ___MenuButtonControl_11;
// HoloToolkit.Unity.InputModule.ButtonController HoloToolkit.Unity.InputModule.CustomInputControl::GraspControl
ButtonController_t4125738237 * ___GraspControl_12;
// HoloToolkit.Unity.InputModule.DebugInteractionSourceState HoloToolkit.Unity.InputModule.CustomInputControl::ControllerSourceState
DebugInteractionSourceState_t431096814 ___ControllerSourceState_13;
// UnityEngine.Color HoloToolkit.Unity.InputModule.CustomInputControl::ActiveControllerColor
Color_t2555686324 ___ActiveControllerColor_14;
// UnityEngine.Color HoloToolkit.Unity.InputModule.CustomInputControl::DroppedControllerColor
Color_t2555686324 ___DroppedControllerColor_15;
// System.Boolean HoloToolkit.Unity.InputModule.CustomInputControl::VisualizeController
bool ___VisualizeController_16;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.CustomInputControl::ControllerVisualizer
GameObject_t1113636619 * ___ControllerVisualizer_17;
// UnityEngine.Texture HoloToolkit.Unity.InputModule.CustomInputControl::HandUpTexture
Texture_t3661962703 * ___HandUpTexture_18;
// UnityEngine.Texture HoloToolkit.Unity.InputModule.CustomInputControl::HandDownTexture
Texture_t3661962703 * ___HandDownTexture_19;
// System.Boolean HoloToolkit.Unity.InputModule.CustomInputControl::ShowPointingRay
bool ___ShowPointingRay_20;
// System.Boolean HoloToolkit.Unity.InputModule.CustomInputControl::<ControllerInView>k__BackingField
bool ___U3CControllerInViewU3Ek__BackingField_21;
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.CustomInputControl::InitialPosition
Vector3_t3722313464 ___InitialPosition_22;
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.CustomInputControl::localPosition
Vector3_t3722313464 ___localPosition_23;
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.CustomInputControl::localRotation
Vector3_t3722313464 ___localRotation_24;
// UnityEngine.Renderer HoloToolkit.Unity.InputModule.CustomInputControl::visualRenderer
Renderer_t2627027031 * ___visualRenderer_25;
// UnityEngine.MaterialPropertyBlock HoloToolkit.Unity.InputModule.CustomInputControl::visualPropertyBlock
MaterialPropertyBlock_t3213117958 * ___visualPropertyBlock_26;
// System.Int32 HoloToolkit.Unity.InputModule.CustomInputControl::mainTexId
int32_t ___mainTexId_27;
// System.Single HoloToolkit.Unity.InputModule.CustomInputControl::timeBeforeReturn
float ___timeBeforeReturn_28;
public:
inline static int32_t get_offset_of_ControllerReturnFactor_2() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___ControllerReturnFactor_2)); }
inline float get_ControllerReturnFactor_2() const { return ___ControllerReturnFactor_2; }
inline float* get_address_of_ControllerReturnFactor_2() { return &___ControllerReturnFactor_2; }
inline void set_ControllerReturnFactor_2(float value)
{
___ControllerReturnFactor_2 = value;
}
inline static int32_t get_offset_of_ControllerTimeBeforeReturn_3() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___ControllerTimeBeforeReturn_3)); }
inline float get_ControllerTimeBeforeReturn_3() const { return ___ControllerTimeBeforeReturn_3; }
inline float* get_address_of_ControllerTimeBeforeReturn_3() { return &___ControllerTimeBeforeReturn_3; }
inline void set_ControllerTimeBeforeReturn_3(float value)
{
___ControllerTimeBeforeReturn_3 = value;
}
inline static int32_t get_offset_of_UseUnscaledTime_4() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___UseUnscaledTime_4)); }
inline bool get_UseUnscaledTime_4() const { return ___UseUnscaledTime_4; }
inline bool* get_address_of_UseUnscaledTime_4() { return &___UseUnscaledTime_4; }
inline void set_UseUnscaledTime_4(bool value)
{
___UseUnscaledTime_4 = value;
}
inline static int32_t get_offset_of_PrimaryAxisTranslateControl_5() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___PrimaryAxisTranslateControl_5)); }
inline AxisController_t4134225610 * get_PrimaryAxisTranslateControl_5() const { return ___PrimaryAxisTranslateControl_5; }
inline AxisController_t4134225610 ** get_address_of_PrimaryAxisTranslateControl_5() { return &___PrimaryAxisTranslateControl_5; }
inline void set_PrimaryAxisTranslateControl_5(AxisController_t4134225610 * value)
{
___PrimaryAxisTranslateControl_5 = value;
Il2CppCodeGenWriteBarrier((&___PrimaryAxisTranslateControl_5), value);
}
inline static int32_t get_offset_of_SecondaryAxisTranslateControl_6() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___SecondaryAxisTranslateControl_6)); }
inline AxisController_t4134225610 * get_SecondaryAxisTranslateControl_6() const { return ___SecondaryAxisTranslateControl_6; }
inline AxisController_t4134225610 ** get_address_of_SecondaryAxisTranslateControl_6() { return &___SecondaryAxisTranslateControl_6; }
inline void set_SecondaryAxisTranslateControl_6(AxisController_t4134225610 * value)
{
___SecondaryAxisTranslateControl_6 = value;
Il2CppCodeGenWriteBarrier((&___SecondaryAxisTranslateControl_6), value);
}
inline static int32_t get_offset_of_PrimaryAxisRotateControl_7() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___PrimaryAxisRotateControl_7)); }
inline AxisController_t4134225610 * get_PrimaryAxisRotateControl_7() const { return ___PrimaryAxisRotateControl_7; }
inline AxisController_t4134225610 ** get_address_of_PrimaryAxisRotateControl_7() { return &___PrimaryAxisRotateControl_7; }
inline void set_PrimaryAxisRotateControl_7(AxisController_t4134225610 * value)
{
___PrimaryAxisRotateControl_7 = value;
Il2CppCodeGenWriteBarrier((&___PrimaryAxisRotateControl_7), value);
}
inline static int32_t get_offset_of_SecondaryAxisRotateControl_8() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___SecondaryAxisRotateControl_8)); }
inline AxisController_t4134225610 * get_SecondaryAxisRotateControl_8() const { return ___SecondaryAxisRotateControl_8; }
inline AxisController_t4134225610 ** get_address_of_SecondaryAxisRotateControl_8() { return &___SecondaryAxisRotateControl_8; }
inline void set_SecondaryAxisRotateControl_8(AxisController_t4134225610 * value)
{
___SecondaryAxisRotateControl_8 = value;
Il2CppCodeGenWriteBarrier((&___SecondaryAxisRotateControl_8), value);
}
inline static int32_t get_offset_of_TertiaryAxisRotateControl_9() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___TertiaryAxisRotateControl_9)); }
inline AxisController_t4134225610 * get_TertiaryAxisRotateControl_9() const { return ___TertiaryAxisRotateControl_9; }
inline AxisController_t4134225610 ** get_address_of_TertiaryAxisRotateControl_9() { return &___TertiaryAxisRotateControl_9; }
inline void set_TertiaryAxisRotateControl_9(AxisController_t4134225610 * value)
{
___TertiaryAxisRotateControl_9 = value;
Il2CppCodeGenWriteBarrier((&___TertiaryAxisRotateControl_9), value);
}
inline static int32_t get_offset_of_SelectButtonControl_10() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___SelectButtonControl_10)); }
inline ButtonController_t4125738237 * get_SelectButtonControl_10() const { return ___SelectButtonControl_10; }
inline ButtonController_t4125738237 ** get_address_of_SelectButtonControl_10() { return &___SelectButtonControl_10; }
inline void set_SelectButtonControl_10(ButtonController_t4125738237 * value)
{
___SelectButtonControl_10 = value;
Il2CppCodeGenWriteBarrier((&___SelectButtonControl_10), value);
}
inline static int32_t get_offset_of_MenuButtonControl_11() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___MenuButtonControl_11)); }
inline ButtonController_t4125738237 * get_MenuButtonControl_11() const { return ___MenuButtonControl_11; }
inline ButtonController_t4125738237 ** get_address_of_MenuButtonControl_11() { return &___MenuButtonControl_11; }
inline void set_MenuButtonControl_11(ButtonController_t4125738237 * value)
{
___MenuButtonControl_11 = value;
Il2CppCodeGenWriteBarrier((&___MenuButtonControl_11), value);
}
inline static int32_t get_offset_of_GraspControl_12() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___GraspControl_12)); }
inline ButtonController_t4125738237 * get_GraspControl_12() const { return ___GraspControl_12; }
inline ButtonController_t4125738237 ** get_address_of_GraspControl_12() { return &___GraspControl_12; }
inline void set_GraspControl_12(ButtonController_t4125738237 * value)
{
___GraspControl_12 = value;
Il2CppCodeGenWriteBarrier((&___GraspControl_12), value);
}
inline static int32_t get_offset_of_ControllerSourceState_13() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___ControllerSourceState_13)); }
inline DebugInteractionSourceState_t431096814 get_ControllerSourceState_13() const { return ___ControllerSourceState_13; }
inline DebugInteractionSourceState_t431096814 * get_address_of_ControllerSourceState_13() { return &___ControllerSourceState_13; }
inline void set_ControllerSourceState_13(DebugInteractionSourceState_t431096814 value)
{
___ControllerSourceState_13 = value;
}
inline static int32_t get_offset_of_ActiveControllerColor_14() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___ActiveControllerColor_14)); }
inline Color_t2555686324 get_ActiveControllerColor_14() const { return ___ActiveControllerColor_14; }
inline Color_t2555686324 * get_address_of_ActiveControllerColor_14() { return &___ActiveControllerColor_14; }
inline void set_ActiveControllerColor_14(Color_t2555686324 value)
{
___ActiveControllerColor_14 = value;
}
inline static int32_t get_offset_of_DroppedControllerColor_15() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___DroppedControllerColor_15)); }
inline Color_t2555686324 get_DroppedControllerColor_15() const { return ___DroppedControllerColor_15; }
inline Color_t2555686324 * get_address_of_DroppedControllerColor_15() { return &___DroppedControllerColor_15; }
inline void set_DroppedControllerColor_15(Color_t2555686324 value)
{
___DroppedControllerColor_15 = value;
}
inline static int32_t get_offset_of_VisualizeController_16() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___VisualizeController_16)); }
inline bool get_VisualizeController_16() const { return ___VisualizeController_16; }
inline bool* get_address_of_VisualizeController_16() { return &___VisualizeController_16; }
inline void set_VisualizeController_16(bool value)
{
___VisualizeController_16 = value;
}
inline static int32_t get_offset_of_ControllerVisualizer_17() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___ControllerVisualizer_17)); }
inline GameObject_t1113636619 * get_ControllerVisualizer_17() const { return ___ControllerVisualizer_17; }
inline GameObject_t1113636619 ** get_address_of_ControllerVisualizer_17() { return &___ControllerVisualizer_17; }
inline void set_ControllerVisualizer_17(GameObject_t1113636619 * value)
{
___ControllerVisualizer_17 = value;
Il2CppCodeGenWriteBarrier((&___ControllerVisualizer_17), value);
}
inline static int32_t get_offset_of_HandUpTexture_18() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___HandUpTexture_18)); }
inline Texture_t3661962703 * get_HandUpTexture_18() const { return ___HandUpTexture_18; }
inline Texture_t3661962703 ** get_address_of_HandUpTexture_18() { return &___HandUpTexture_18; }
inline void set_HandUpTexture_18(Texture_t3661962703 * value)
{
___HandUpTexture_18 = value;
Il2CppCodeGenWriteBarrier((&___HandUpTexture_18), value);
}
inline static int32_t get_offset_of_HandDownTexture_19() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___HandDownTexture_19)); }
inline Texture_t3661962703 * get_HandDownTexture_19() const { return ___HandDownTexture_19; }
inline Texture_t3661962703 ** get_address_of_HandDownTexture_19() { return &___HandDownTexture_19; }
inline void set_HandDownTexture_19(Texture_t3661962703 * value)
{
___HandDownTexture_19 = value;
Il2CppCodeGenWriteBarrier((&___HandDownTexture_19), value);
}
inline static int32_t get_offset_of_ShowPointingRay_20() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___ShowPointingRay_20)); }
inline bool get_ShowPointingRay_20() const { return ___ShowPointingRay_20; }
inline bool* get_address_of_ShowPointingRay_20() { return &___ShowPointingRay_20; }
inline void set_ShowPointingRay_20(bool value)
{
___ShowPointingRay_20 = value;
}
inline static int32_t get_offset_of_U3CControllerInViewU3Ek__BackingField_21() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___U3CControllerInViewU3Ek__BackingField_21)); }
inline bool get_U3CControllerInViewU3Ek__BackingField_21() const { return ___U3CControllerInViewU3Ek__BackingField_21; }
inline bool* get_address_of_U3CControllerInViewU3Ek__BackingField_21() { return &___U3CControllerInViewU3Ek__BackingField_21; }
inline void set_U3CControllerInViewU3Ek__BackingField_21(bool value)
{
___U3CControllerInViewU3Ek__BackingField_21 = value;
}
inline static int32_t get_offset_of_InitialPosition_22() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___InitialPosition_22)); }
inline Vector3_t3722313464 get_InitialPosition_22() const { return ___InitialPosition_22; }
inline Vector3_t3722313464 * get_address_of_InitialPosition_22() { return &___InitialPosition_22; }
inline void set_InitialPosition_22(Vector3_t3722313464 value)
{
___InitialPosition_22 = value;
}
inline static int32_t get_offset_of_localPosition_23() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___localPosition_23)); }
inline Vector3_t3722313464 get_localPosition_23() const { return ___localPosition_23; }
inline Vector3_t3722313464 * get_address_of_localPosition_23() { return &___localPosition_23; }
inline void set_localPosition_23(Vector3_t3722313464 value)
{
___localPosition_23 = value;
}
inline static int32_t get_offset_of_localRotation_24() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___localRotation_24)); }
inline Vector3_t3722313464 get_localRotation_24() const { return ___localRotation_24; }
inline Vector3_t3722313464 * get_address_of_localRotation_24() { return &___localRotation_24; }
inline void set_localRotation_24(Vector3_t3722313464 value)
{
___localRotation_24 = value;
}
inline static int32_t get_offset_of_visualRenderer_25() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___visualRenderer_25)); }
inline Renderer_t2627027031 * get_visualRenderer_25() const { return ___visualRenderer_25; }
inline Renderer_t2627027031 ** get_address_of_visualRenderer_25() { return &___visualRenderer_25; }
inline void set_visualRenderer_25(Renderer_t2627027031 * value)
{
___visualRenderer_25 = value;
Il2CppCodeGenWriteBarrier((&___visualRenderer_25), value);
}
inline static int32_t get_offset_of_visualPropertyBlock_26() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___visualPropertyBlock_26)); }
inline MaterialPropertyBlock_t3213117958 * get_visualPropertyBlock_26() const { return ___visualPropertyBlock_26; }
inline MaterialPropertyBlock_t3213117958 ** get_address_of_visualPropertyBlock_26() { return &___visualPropertyBlock_26; }
inline void set_visualPropertyBlock_26(MaterialPropertyBlock_t3213117958 * value)
{
___visualPropertyBlock_26 = value;
Il2CppCodeGenWriteBarrier((&___visualPropertyBlock_26), value);
}
inline static int32_t get_offset_of_mainTexId_27() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___mainTexId_27)); }
inline int32_t get_mainTexId_27() const { return ___mainTexId_27; }
inline int32_t* get_address_of_mainTexId_27() { return &___mainTexId_27; }
inline void set_mainTexId_27(int32_t value)
{
___mainTexId_27 = value;
}
inline static int32_t get_offset_of_timeBeforeReturn_28() { return static_cast<int32_t>(offsetof(CustomInputControl_t1681541923, ___timeBeforeReturn_28)); }
inline float get_timeBeforeReturn_28() const { return ___timeBeforeReturn_28; }
inline float* get_address_of_timeBeforeReturn_28() { return &___timeBeforeReturn_28; }
inline void set_timeBeforeReturn_28(float value)
{
___timeBeforeReturn_28 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CUSTOMINPUTCONTROL_T1681541923_H
#ifndef SINGLETON_1_T792467874_H
#define SINGLETON_1_T792467874_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Singleton`1<HoloToolkit.Unity.InputModule.MotionControllerVisualizer>
struct Singleton_1_t792467874 : public MonoBehaviour_t3962482529
{
public:
public:
};
struct Singleton_1_t792467874_StaticFields
{
public:
// T HoloToolkit.Unity.Singleton`1::instance
MotionControllerVisualizer_t392243420 * ___instance_2;
// System.Boolean HoloToolkit.Unity.Singleton`1::searchForInstance
bool ___searchForInstance_3;
public:
inline static int32_t get_offset_of_instance_2() { return static_cast<int32_t>(offsetof(Singleton_1_t792467874_StaticFields, ___instance_2)); }
inline MotionControllerVisualizer_t392243420 * get_instance_2() const { return ___instance_2; }
inline MotionControllerVisualizer_t392243420 ** get_address_of_instance_2() { return &___instance_2; }
inline void set_instance_2(MotionControllerVisualizer_t392243420 * value)
{
___instance_2 = value;
Il2CppCodeGenWriteBarrier((&___instance_2), value);
}
inline static int32_t get_offset_of_searchForInstance_3() { return static_cast<int32_t>(offsetof(Singleton_1_t792467874_StaticFields, ___searchForInstance_3)); }
inline bool get_searchForInstance_3() const { return ___searchForInstance_3; }
inline bool* get_address_of_searchForInstance_3() { return &___searchForInstance_3; }
inline void set_searchForInstance_3(bool value)
{
___searchForInstance_3 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SINGLETON_1_T792467874_H
#ifndef SINGLETON_1_T3989529555_H
#define SINGLETON_1_T3989529555_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Singleton`1<HoloToolkit.Unity.InputModule.MixedRealityCameraManager>
struct Singleton_1_t3989529555 : public MonoBehaviour_t3962482529
{
public:
public:
};
struct Singleton_1_t3989529555_StaticFields
{
public:
// T HoloToolkit.Unity.Singleton`1::instance
MixedRealityCameraManager_t3589305101 * ___instance_2;
// System.Boolean HoloToolkit.Unity.Singleton`1::searchForInstance
bool ___searchForInstance_3;
public:
inline static int32_t get_offset_of_instance_2() { return static_cast<int32_t>(offsetof(Singleton_1_t3989529555_StaticFields, ___instance_2)); }
inline MixedRealityCameraManager_t3589305101 * get_instance_2() const { return ___instance_2; }
inline MixedRealityCameraManager_t3589305101 ** get_address_of_instance_2() { return &___instance_2; }
inline void set_instance_2(MixedRealityCameraManager_t3589305101 * value)
{
___instance_2 = value;
Il2CppCodeGenWriteBarrier((&___instance_2), value);
}
inline static int32_t get_offset_of_searchForInstance_3() { return static_cast<int32_t>(offsetof(Singleton_1_t3989529555_StaticFields, ___searchForInstance_3)); }
inline bool get_searchForInstance_3() const { return ___searchForInstance_3; }
inline bool* get_address_of_searchForInstance_3() { return &___searchForInstance_3; }
inline void set_searchForInstance_3(bool value)
{
___searchForInstance_3 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SINGLETON_1_T3989529555_H
#ifndef SINGLETON_1_T2868587292_H
#define SINGLETON_1_T2868587292_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Singleton`1<HoloToolkit.Unity.InputModule.MixedRealityTeleport>
struct Singleton_1_t2868587292 : public MonoBehaviour_t3962482529
{
public:
public:
};
struct Singleton_1_t2868587292_StaticFields
{
public:
// T HoloToolkit.Unity.Singleton`1::instance
MixedRealityTeleport_t2468362838 * ___instance_2;
// System.Boolean HoloToolkit.Unity.Singleton`1::searchForInstance
bool ___searchForInstance_3;
public:
inline static int32_t get_offset_of_instance_2() { return static_cast<int32_t>(offsetof(Singleton_1_t2868587292_StaticFields, ___instance_2)); }
inline MixedRealityTeleport_t2468362838 * get_instance_2() const { return ___instance_2; }
inline MixedRealityTeleport_t2468362838 ** get_address_of_instance_2() { return &___instance_2; }
inline void set_instance_2(MixedRealityTeleport_t2468362838 * value)
{
___instance_2 = value;
Il2CppCodeGenWriteBarrier((&___instance_2), value);
}
inline static int32_t get_offset_of_searchForInstance_3() { return static_cast<int32_t>(offsetof(Singleton_1_t2868587292_StaticFields, ___searchForInstance_3)); }
inline bool get_searchForInstance_3() const { return ___searchForInstance_3; }
inline bool* get_address_of_searchForInstance_3() { return &___searchForInstance_3; }
inline void set_searchForInstance_3(bool value)
{
___searchForInstance_3 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SINGLETON_1_T2868587292_H
#ifndef HANDDRAGGABLE_T2374705028_H
#define HANDDRAGGABLE_T2374705028_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.HandDraggable
struct HandDraggable_t2374705028 : public MonoBehaviour_t3962482529
{
public:
// System.Action HoloToolkit.Unity.InputModule.HandDraggable::StartedDragging
Action_t1264377477 * ___StartedDragging_2;
// System.Action HoloToolkit.Unity.InputModule.HandDraggable::StoppedDragging
Action_t1264377477 * ___StoppedDragging_3;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.HandDraggable::HostTransform
Transform_t3600365921 * ___HostTransform_4;
// System.Single HoloToolkit.Unity.InputModule.HandDraggable::DistanceScale
float ___DistanceScale_5;
// HoloToolkit.Unity.InputModule.HandDraggable/RotationModeEnum HoloToolkit.Unity.InputModule.HandDraggable::RotationMode
int32_t ___RotationMode_6;
// System.Single HoloToolkit.Unity.InputModule.HandDraggable::PositionLerpSpeed
float ___PositionLerpSpeed_7;
// System.Single HoloToolkit.Unity.InputModule.HandDraggable::RotationLerpSpeed
float ___RotationLerpSpeed_8;
// System.Boolean HoloToolkit.Unity.InputModule.HandDraggable::IsDraggingEnabled
bool ___IsDraggingEnabled_9;
// System.Boolean HoloToolkit.Unity.InputModule.HandDraggable::isDragging
bool ___isDragging_10;
// System.Boolean HoloToolkit.Unity.InputModule.HandDraggable::isGazed
bool ___isGazed_11;
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.HandDraggable::objRefForward
Vector3_t3722313464 ___objRefForward_12;
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.HandDraggable::objRefUp
Vector3_t3722313464 ___objRefUp_13;
// System.Single HoloToolkit.Unity.InputModule.HandDraggable::objRefDistance
float ___objRefDistance_14;
// UnityEngine.Quaternion HoloToolkit.Unity.InputModule.HandDraggable::gazeAngularOffset
Quaternion_t2301928331 ___gazeAngularOffset_15;
// System.Single HoloToolkit.Unity.InputModule.HandDraggable::handRefDistance
float ___handRefDistance_16;
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.HandDraggable::objRefGrabPoint
Vector3_t3722313464 ___objRefGrabPoint_17;
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.HandDraggable::draggingPosition
Vector3_t3722313464 ___draggingPosition_18;
// UnityEngine.Quaternion HoloToolkit.Unity.InputModule.HandDraggable::draggingRotation
Quaternion_t2301928331 ___draggingRotation_19;
// HoloToolkit.Unity.InputModule.IInputSource HoloToolkit.Unity.InputModule.HandDraggable::currentInputSource
RuntimeObject* ___currentInputSource_20;
// System.UInt32 HoloToolkit.Unity.InputModule.HandDraggable::currentInputSourceId
uint32_t ___currentInputSourceId_21;
// UnityEngine.Rigidbody HoloToolkit.Unity.InputModule.HandDraggable::hostRigidbody
Rigidbody_t3916780224 * ___hostRigidbody_22;
// System.Boolean HoloToolkit.Unity.InputModule.HandDraggable::hostRigidbodyWasKinematic
bool ___hostRigidbodyWasKinematic_23;
public:
inline static int32_t get_offset_of_StartedDragging_2() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___StartedDragging_2)); }
inline Action_t1264377477 * get_StartedDragging_2() const { return ___StartedDragging_2; }
inline Action_t1264377477 ** get_address_of_StartedDragging_2() { return &___StartedDragging_2; }
inline void set_StartedDragging_2(Action_t1264377477 * value)
{
___StartedDragging_2 = value;
Il2CppCodeGenWriteBarrier((&___StartedDragging_2), value);
}
inline static int32_t get_offset_of_StoppedDragging_3() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___StoppedDragging_3)); }
inline Action_t1264377477 * get_StoppedDragging_3() const { return ___StoppedDragging_3; }
inline Action_t1264377477 ** get_address_of_StoppedDragging_3() { return &___StoppedDragging_3; }
inline void set_StoppedDragging_3(Action_t1264377477 * value)
{
___StoppedDragging_3 = value;
Il2CppCodeGenWriteBarrier((&___StoppedDragging_3), value);
}
inline static int32_t get_offset_of_HostTransform_4() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___HostTransform_4)); }
inline Transform_t3600365921 * get_HostTransform_4() const { return ___HostTransform_4; }
inline Transform_t3600365921 ** get_address_of_HostTransform_4() { return &___HostTransform_4; }
inline void set_HostTransform_4(Transform_t3600365921 * value)
{
___HostTransform_4 = value;
Il2CppCodeGenWriteBarrier((&___HostTransform_4), value);
}
inline static int32_t get_offset_of_DistanceScale_5() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___DistanceScale_5)); }
inline float get_DistanceScale_5() const { return ___DistanceScale_5; }
inline float* get_address_of_DistanceScale_5() { return &___DistanceScale_5; }
inline void set_DistanceScale_5(float value)
{
___DistanceScale_5 = value;
}
inline static int32_t get_offset_of_RotationMode_6() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___RotationMode_6)); }
inline int32_t get_RotationMode_6() const { return ___RotationMode_6; }
inline int32_t* get_address_of_RotationMode_6() { return &___RotationMode_6; }
inline void set_RotationMode_6(int32_t value)
{
___RotationMode_6 = value;
}
inline static int32_t get_offset_of_PositionLerpSpeed_7() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___PositionLerpSpeed_7)); }
inline float get_PositionLerpSpeed_7() const { return ___PositionLerpSpeed_7; }
inline float* get_address_of_PositionLerpSpeed_7() { return &___PositionLerpSpeed_7; }
inline void set_PositionLerpSpeed_7(float value)
{
___PositionLerpSpeed_7 = value;
}
inline static int32_t get_offset_of_RotationLerpSpeed_8() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___RotationLerpSpeed_8)); }
inline float get_RotationLerpSpeed_8() const { return ___RotationLerpSpeed_8; }
inline float* get_address_of_RotationLerpSpeed_8() { return &___RotationLerpSpeed_8; }
inline void set_RotationLerpSpeed_8(float value)
{
___RotationLerpSpeed_8 = value;
}
inline static int32_t get_offset_of_IsDraggingEnabled_9() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___IsDraggingEnabled_9)); }
inline bool get_IsDraggingEnabled_9() const { return ___IsDraggingEnabled_9; }
inline bool* get_address_of_IsDraggingEnabled_9() { return &___IsDraggingEnabled_9; }
inline void set_IsDraggingEnabled_9(bool value)
{
___IsDraggingEnabled_9 = value;
}
inline static int32_t get_offset_of_isDragging_10() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___isDragging_10)); }
inline bool get_isDragging_10() const { return ___isDragging_10; }
inline bool* get_address_of_isDragging_10() { return &___isDragging_10; }
inline void set_isDragging_10(bool value)
{
___isDragging_10 = value;
}
inline static int32_t get_offset_of_isGazed_11() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___isGazed_11)); }
inline bool get_isGazed_11() const { return ___isGazed_11; }
inline bool* get_address_of_isGazed_11() { return &___isGazed_11; }
inline void set_isGazed_11(bool value)
{
___isGazed_11 = value;
}
inline static int32_t get_offset_of_objRefForward_12() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___objRefForward_12)); }
inline Vector3_t3722313464 get_objRefForward_12() const { return ___objRefForward_12; }
inline Vector3_t3722313464 * get_address_of_objRefForward_12() { return &___objRefForward_12; }
inline void set_objRefForward_12(Vector3_t3722313464 value)
{
___objRefForward_12 = value;
}
inline static int32_t get_offset_of_objRefUp_13() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___objRefUp_13)); }
inline Vector3_t3722313464 get_objRefUp_13() const { return ___objRefUp_13; }
inline Vector3_t3722313464 * get_address_of_objRefUp_13() { return &___objRefUp_13; }
inline void set_objRefUp_13(Vector3_t3722313464 value)
{
___objRefUp_13 = value;
}
inline static int32_t get_offset_of_objRefDistance_14() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___objRefDistance_14)); }
inline float get_objRefDistance_14() const { return ___objRefDistance_14; }
inline float* get_address_of_objRefDistance_14() { return &___objRefDistance_14; }
inline void set_objRefDistance_14(float value)
{
___objRefDistance_14 = value;
}
inline static int32_t get_offset_of_gazeAngularOffset_15() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___gazeAngularOffset_15)); }
inline Quaternion_t2301928331 get_gazeAngularOffset_15() const { return ___gazeAngularOffset_15; }
inline Quaternion_t2301928331 * get_address_of_gazeAngularOffset_15() { return &___gazeAngularOffset_15; }
inline void set_gazeAngularOffset_15(Quaternion_t2301928331 value)
{
___gazeAngularOffset_15 = value;
}
inline static int32_t get_offset_of_handRefDistance_16() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___handRefDistance_16)); }
inline float get_handRefDistance_16() const { return ___handRefDistance_16; }
inline float* get_address_of_handRefDistance_16() { return &___handRefDistance_16; }
inline void set_handRefDistance_16(float value)
{
___handRefDistance_16 = value;
}
inline static int32_t get_offset_of_objRefGrabPoint_17() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___objRefGrabPoint_17)); }
inline Vector3_t3722313464 get_objRefGrabPoint_17() const { return ___objRefGrabPoint_17; }
inline Vector3_t3722313464 * get_address_of_objRefGrabPoint_17() { return &___objRefGrabPoint_17; }
inline void set_objRefGrabPoint_17(Vector3_t3722313464 value)
{
___objRefGrabPoint_17 = value;
}
inline static int32_t get_offset_of_draggingPosition_18() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___draggingPosition_18)); }
inline Vector3_t3722313464 get_draggingPosition_18() const { return ___draggingPosition_18; }
inline Vector3_t3722313464 * get_address_of_draggingPosition_18() { return &___draggingPosition_18; }
inline void set_draggingPosition_18(Vector3_t3722313464 value)
{
___draggingPosition_18 = value;
}
inline static int32_t get_offset_of_draggingRotation_19() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___draggingRotation_19)); }
inline Quaternion_t2301928331 get_draggingRotation_19() const { return ___draggingRotation_19; }
inline Quaternion_t2301928331 * get_address_of_draggingRotation_19() { return &___draggingRotation_19; }
inline void set_draggingRotation_19(Quaternion_t2301928331 value)
{
___draggingRotation_19 = value;
}
inline static int32_t get_offset_of_currentInputSource_20() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___currentInputSource_20)); }
inline RuntimeObject* get_currentInputSource_20() const { return ___currentInputSource_20; }
inline RuntimeObject** get_address_of_currentInputSource_20() { return &___currentInputSource_20; }
inline void set_currentInputSource_20(RuntimeObject* value)
{
___currentInputSource_20 = value;
Il2CppCodeGenWriteBarrier((&___currentInputSource_20), value);
}
inline static int32_t get_offset_of_currentInputSourceId_21() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___currentInputSourceId_21)); }
inline uint32_t get_currentInputSourceId_21() const { return ___currentInputSourceId_21; }
inline uint32_t* get_address_of_currentInputSourceId_21() { return &___currentInputSourceId_21; }
inline void set_currentInputSourceId_21(uint32_t value)
{
___currentInputSourceId_21 = value;
}
inline static int32_t get_offset_of_hostRigidbody_22() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___hostRigidbody_22)); }
inline Rigidbody_t3916780224 * get_hostRigidbody_22() const { return ___hostRigidbody_22; }
inline Rigidbody_t3916780224 ** get_address_of_hostRigidbody_22() { return &___hostRigidbody_22; }
inline void set_hostRigidbody_22(Rigidbody_t3916780224 * value)
{
___hostRigidbody_22 = value;
Il2CppCodeGenWriteBarrier((&___hostRigidbody_22), value);
}
inline static int32_t get_offset_of_hostRigidbodyWasKinematic_23() { return static_cast<int32_t>(offsetof(HandDraggable_t2374705028, ___hostRigidbodyWasKinematic_23)); }
inline bool get_hostRigidbodyWasKinematic_23() const { return ___hostRigidbodyWasKinematic_23; }
inline bool* get_address_of_hostRigidbodyWasKinematic_23() { return &___hostRigidbodyWasKinematic_23; }
inline void set_hostRigidbodyWasKinematic_23(bool value)
{
___hostRigidbodyWasKinematic_23 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // HANDDRAGGABLE_T2374705028_H
#ifndef MANUALGAZECONTROL_T2345825373_H
#define MANUALGAZECONTROL_T2345825373_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.ManualGazeControl
struct ManualGazeControl_t2345825373 : public MonoBehaviour_t3962482529
{
public:
// System.Boolean HoloToolkit.Unity.InputModule.ManualGazeControl::MouseSupported
bool ___MouseSupported_2;
// HoloToolkit.Unity.InputModule.AxisController HoloToolkit.Unity.InputModule.ManualGazeControl::MouseXYRotationAxisControl
AxisController_t4134225610 * ___MouseXYRotationAxisControl_3;
// HoloToolkit.Unity.InputModule.AxisController HoloToolkit.Unity.InputModule.ManualGazeControl::MouseXYTranslationAxisControl
AxisController_t4134225610 * ___MouseXYTranslationAxisControl_4;
// HoloToolkit.Unity.InputModule.AxisController HoloToolkit.Unity.InputModule.ManualGazeControl::MouseXZTranslationAxisControl
AxisController_t4134225610 * ___MouseXZTranslationAxisControl_5;
// System.Boolean HoloToolkit.Unity.InputModule.ManualGazeControl::KeyboardSupported
bool ___KeyboardSupported_6;
// HoloToolkit.Unity.InputModule.AxisController HoloToolkit.Unity.InputModule.ManualGazeControl::KeyboardXYRotationAxisControl
AxisController_t4134225610 * ___KeyboardXYRotationAxisControl_7;
// HoloToolkit.Unity.InputModule.AxisController HoloToolkit.Unity.InputModule.ManualGazeControl::KeyboardXZRotationAxisControl
AxisController_t4134225610 * ___KeyboardXZRotationAxisControl_8;
// HoloToolkit.Unity.InputModule.AxisController HoloToolkit.Unity.InputModule.ManualGazeControl::KeyboardXYTranslationAxisControl
AxisController_t4134225610 * ___KeyboardXYTranslationAxisControl_9;
// HoloToolkit.Unity.InputModule.AxisController HoloToolkit.Unity.InputModule.ManualGazeControl::KeyboardXZTranslationAxisControl
AxisController_t4134225610 * ___KeyboardXZTranslationAxisControl_10;
// System.Boolean HoloToolkit.Unity.InputModule.ManualGazeControl::JoystickSupported
bool ___JoystickSupported_11;
// HoloToolkit.Unity.InputModule.AxisController HoloToolkit.Unity.InputModule.ManualGazeControl::JoystickXYRotationAxisControl
AxisController_t4134225610 * ___JoystickXYRotationAxisControl_12;
// HoloToolkit.Unity.InputModule.AxisController HoloToolkit.Unity.InputModule.ManualGazeControl::JoystickXYTranslationAxisControl
AxisController_t4134225610 * ___JoystickXYTranslationAxisControl_13;
// HoloToolkit.Unity.InputModule.AxisController HoloToolkit.Unity.InputModule.ManualGazeControl::JoystickXZTranslationAxisControl
AxisController_t4134225610 * ___JoystickXZTranslationAxisControl_14;
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.ManualGazeControl::lastTrackerToUnityTranslation
Vector3_t3722313464 ___lastTrackerToUnityTranslation_15;
// UnityEngine.Quaternion HoloToolkit.Unity.InputModule.ManualGazeControl::lastTrackerToUnityRotation
Quaternion_t2301928331 ___lastTrackerToUnityRotation_16;
// UnityEngine.Transform HoloToolkit.Unity.InputModule.ManualGazeControl::cameraTransform
Transform_t3600365921 * ___cameraTransform_17;
public:
inline static int32_t get_offset_of_MouseSupported_2() { return static_cast<int32_t>(offsetof(ManualGazeControl_t2345825373, ___MouseSupported_2)); }
inline bool get_MouseSupported_2() const { return ___MouseSupported_2; }
inline bool* get_address_of_MouseSupported_2() { return &___MouseSupported_2; }
inline void set_MouseSupported_2(bool value)
{
___MouseSupported_2 = value;
}
inline static int32_t get_offset_of_MouseXYRotationAxisControl_3() { return static_cast<int32_t>(offsetof(ManualGazeControl_t2345825373, ___MouseXYRotationAxisControl_3)); }
inline AxisController_t4134225610 * get_MouseXYRotationAxisControl_3() const { return ___MouseXYRotationAxisControl_3; }
inline AxisController_t4134225610 ** get_address_of_MouseXYRotationAxisControl_3() { return &___MouseXYRotationAxisControl_3; }
inline void set_MouseXYRotationAxisControl_3(AxisController_t4134225610 * value)
{
___MouseXYRotationAxisControl_3 = value;
Il2CppCodeGenWriteBarrier((&___MouseXYRotationAxisControl_3), value);
}
inline static int32_t get_offset_of_MouseXYTranslationAxisControl_4() { return static_cast<int32_t>(offsetof(ManualGazeControl_t2345825373, ___MouseXYTranslationAxisControl_4)); }
inline AxisController_t4134225610 * get_MouseXYTranslationAxisControl_4() const { return ___MouseXYTranslationAxisControl_4; }
inline AxisController_t4134225610 ** get_address_of_MouseXYTranslationAxisControl_4() { return &___MouseXYTranslationAxisControl_4; }
inline void set_MouseXYTranslationAxisControl_4(AxisController_t4134225610 * value)
{
___MouseXYTranslationAxisControl_4 = value;
Il2CppCodeGenWriteBarrier((&___MouseXYTranslationAxisControl_4), value);
}
inline static int32_t get_offset_of_MouseXZTranslationAxisControl_5() { return static_cast<int32_t>(offsetof(ManualGazeControl_t2345825373, ___MouseXZTranslationAxisControl_5)); }
inline AxisController_t4134225610 * get_MouseXZTranslationAxisControl_5() const { return ___MouseXZTranslationAxisControl_5; }
inline AxisController_t4134225610 ** get_address_of_MouseXZTranslationAxisControl_5() { return &___MouseXZTranslationAxisControl_5; }
inline void set_MouseXZTranslationAxisControl_5(AxisController_t4134225610 * value)
{
___MouseXZTranslationAxisControl_5 = value;
Il2CppCodeGenWriteBarrier((&___MouseXZTranslationAxisControl_5), value);
}
inline static int32_t get_offset_of_KeyboardSupported_6() { return static_cast<int32_t>(offsetof(ManualGazeControl_t2345825373, ___KeyboardSupported_6)); }
inline bool get_KeyboardSupported_6() const { return ___KeyboardSupported_6; }
inline bool* get_address_of_KeyboardSupported_6() { return &___KeyboardSupported_6; }
inline void set_KeyboardSupported_6(bool value)
{
___KeyboardSupported_6 = value;
}
inline static int32_t get_offset_of_KeyboardXYRotationAxisControl_7() { return static_cast<int32_t>(offsetof(ManualGazeControl_t2345825373, ___KeyboardXYRotationAxisControl_7)); }
inline AxisController_t4134225610 * get_KeyboardXYRotationAxisControl_7() const { return ___KeyboardXYRotationAxisControl_7; }
inline AxisController_t4134225610 ** get_address_of_KeyboardXYRotationAxisControl_7() { return &___KeyboardXYRotationAxisControl_7; }
inline void set_KeyboardXYRotationAxisControl_7(AxisController_t4134225610 * value)
{
___KeyboardXYRotationAxisControl_7 = value;
Il2CppCodeGenWriteBarrier((&___KeyboardXYRotationAxisControl_7), value);
}
inline static int32_t get_offset_of_KeyboardXZRotationAxisControl_8() { return static_cast<int32_t>(offsetof(ManualGazeControl_t2345825373, ___KeyboardXZRotationAxisControl_8)); }
inline AxisController_t4134225610 * get_KeyboardXZRotationAxisControl_8() const { return ___KeyboardXZRotationAxisControl_8; }
inline AxisController_t4134225610 ** get_address_of_KeyboardXZRotationAxisControl_8() { return &___KeyboardXZRotationAxisControl_8; }
inline void set_KeyboardXZRotationAxisControl_8(AxisController_t4134225610 * value)
{
___KeyboardXZRotationAxisControl_8 = value;
Il2CppCodeGenWriteBarrier((&___KeyboardXZRotationAxisControl_8), value);
}
inline static int32_t get_offset_of_KeyboardXYTranslationAxisControl_9() { return static_cast<int32_t>(offsetof(ManualGazeControl_t2345825373, ___KeyboardXYTranslationAxisControl_9)); }
inline AxisController_t4134225610 * get_KeyboardXYTranslationAxisControl_9() const { return ___KeyboardXYTranslationAxisControl_9; }
inline AxisController_t4134225610 ** get_address_of_KeyboardXYTranslationAxisControl_9() { return &___KeyboardXYTranslationAxisControl_9; }
inline void set_KeyboardXYTranslationAxisControl_9(AxisController_t4134225610 * value)
{
___KeyboardXYTranslationAxisControl_9 = value;
Il2CppCodeGenWriteBarrier((&___KeyboardXYTranslationAxisControl_9), value);
}
inline static int32_t get_offset_of_KeyboardXZTranslationAxisControl_10() { return static_cast<int32_t>(offsetof(ManualGazeControl_t2345825373, ___KeyboardXZTranslationAxisControl_10)); }
inline AxisController_t4134225610 * get_KeyboardXZTranslationAxisControl_10() const { return ___KeyboardXZTranslationAxisControl_10; }
inline AxisController_t4134225610 ** get_address_of_KeyboardXZTranslationAxisControl_10() { return &___KeyboardXZTranslationAxisControl_10; }
inline void set_KeyboardXZTranslationAxisControl_10(AxisController_t4134225610 * value)
{
___KeyboardXZTranslationAxisControl_10 = value;
Il2CppCodeGenWriteBarrier((&___KeyboardXZTranslationAxisControl_10), value);
}
inline static int32_t get_offset_of_JoystickSupported_11() { return static_cast<int32_t>(offsetof(ManualGazeControl_t2345825373, ___JoystickSupported_11)); }
inline bool get_JoystickSupported_11() const { return ___JoystickSupported_11; }
inline bool* get_address_of_JoystickSupported_11() { return &___JoystickSupported_11; }
inline void set_JoystickSupported_11(bool value)
{
___JoystickSupported_11 = value;
}
inline static int32_t get_offset_of_JoystickXYRotationAxisControl_12() { return static_cast<int32_t>(offsetof(ManualGazeControl_t2345825373, ___JoystickXYRotationAxisControl_12)); }
inline AxisController_t4134225610 * get_JoystickXYRotationAxisControl_12() const { return ___JoystickXYRotationAxisControl_12; }
inline AxisController_t4134225610 ** get_address_of_JoystickXYRotationAxisControl_12() { return &___JoystickXYRotationAxisControl_12; }
inline void set_JoystickXYRotationAxisControl_12(AxisController_t4134225610 * value)
{
___JoystickXYRotationAxisControl_12 = value;
Il2CppCodeGenWriteBarrier((&___JoystickXYRotationAxisControl_12), value);
}
inline static int32_t get_offset_of_JoystickXYTranslationAxisControl_13() { return static_cast<int32_t>(offsetof(ManualGazeControl_t2345825373, ___JoystickXYTranslationAxisControl_13)); }
inline AxisController_t4134225610 * get_JoystickXYTranslationAxisControl_13() const { return ___JoystickXYTranslationAxisControl_13; }
inline AxisController_t4134225610 ** get_address_of_JoystickXYTranslationAxisControl_13() { return &___JoystickXYTranslationAxisControl_13; }
inline void set_JoystickXYTranslationAxisControl_13(AxisController_t4134225610 * value)
{
___JoystickXYTranslationAxisControl_13 = value;
Il2CppCodeGenWriteBarrier((&___JoystickXYTranslationAxisControl_13), value);
}
inline static int32_t get_offset_of_JoystickXZTranslationAxisControl_14() { return static_cast<int32_t>(offsetof(ManualGazeControl_t2345825373, ___JoystickXZTranslationAxisControl_14)); }
inline AxisController_t4134225610 * get_JoystickXZTranslationAxisControl_14() const { return ___JoystickXZTranslationAxisControl_14; }
inline AxisController_t4134225610 ** get_address_of_JoystickXZTranslationAxisControl_14() { return &___JoystickXZTranslationAxisControl_14; }
inline void set_JoystickXZTranslationAxisControl_14(AxisController_t4134225610 * value)
{
___JoystickXZTranslationAxisControl_14 = value;
Il2CppCodeGenWriteBarrier((&___JoystickXZTranslationAxisControl_14), value);
}
inline static int32_t get_offset_of_lastTrackerToUnityTranslation_15() { return static_cast<int32_t>(offsetof(ManualGazeControl_t2345825373, ___lastTrackerToUnityTranslation_15)); }
inline Vector3_t3722313464 get_lastTrackerToUnityTranslation_15() const { return ___lastTrackerToUnityTranslation_15; }
inline Vector3_t3722313464 * get_address_of_lastTrackerToUnityTranslation_15() { return &___lastTrackerToUnityTranslation_15; }
inline void set_lastTrackerToUnityTranslation_15(Vector3_t3722313464 value)
{
___lastTrackerToUnityTranslation_15 = value;
}
inline static int32_t get_offset_of_lastTrackerToUnityRotation_16() { return static_cast<int32_t>(offsetof(ManualGazeControl_t2345825373, ___lastTrackerToUnityRotation_16)); }
inline Quaternion_t2301928331 get_lastTrackerToUnityRotation_16() const { return ___lastTrackerToUnityRotation_16; }
inline Quaternion_t2301928331 * get_address_of_lastTrackerToUnityRotation_16() { return &___lastTrackerToUnityRotation_16; }
inline void set_lastTrackerToUnityRotation_16(Quaternion_t2301928331 value)
{
___lastTrackerToUnityRotation_16 = value;
}
inline static int32_t get_offset_of_cameraTransform_17() { return static_cast<int32_t>(offsetof(ManualGazeControl_t2345825373, ___cameraTransform_17)); }
inline Transform_t3600365921 * get_cameraTransform_17() const { return ___cameraTransform_17; }
inline Transform_t3600365921 ** get_address_of_cameraTransform_17() { return &___cameraTransform_17; }
inline void set_cameraTransform_17(Transform_t3600365921 * value)
{
___cameraTransform_17 = value;
Il2CppCodeGenWriteBarrier((&___cameraTransform_17), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // MANUALGAZECONTROL_T2345825373_H
#ifndef CUSTOMINPUTSELECTOR_T2305655481_H
#define CUSTOMINPUTSELECTOR_T2305655481_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.CustomInputSelector
struct CustomInputSelector_t2305655481 : public MonoBehaviour_t3962482529
{
public:
// System.Boolean HoloToolkit.Unity.InputModule.CustomInputSelector::simulateHandsInEditor
bool ___simulateHandsInEditor_2;
// HoloToolkit.Unity.InputModule.CustomInputSelector/InputSourceType HoloToolkit.Unity.InputModule.CustomInputSelector::sourceType
int32_t ___sourceType_3;
// HoloToolkit.Unity.InputModule.CustomInputSelector/InputSourceNumber HoloToolkit.Unity.InputModule.CustomInputSelector::sourceNumber
int32_t ___sourceNumber_4;
// System.Collections.Generic.List`1<UnityEngine.GameObject> HoloToolkit.Unity.InputModule.CustomInputSelector::Inputs
List_1_t2585711361 * ___Inputs_5;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.CustomInputSelector::mouse
GameObject_t1113636619 * ___mouse_6;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.CustomInputSelector::leftHand
GameObject_t1113636619 * ___leftHand_7;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.CustomInputSelector::rightHand
GameObject_t1113636619 * ___rightHand_8;
public:
inline static int32_t get_offset_of_simulateHandsInEditor_2() { return static_cast<int32_t>(offsetof(CustomInputSelector_t2305655481, ___simulateHandsInEditor_2)); }
inline bool get_simulateHandsInEditor_2() const { return ___simulateHandsInEditor_2; }
inline bool* get_address_of_simulateHandsInEditor_2() { return &___simulateHandsInEditor_2; }
inline void set_simulateHandsInEditor_2(bool value)
{
___simulateHandsInEditor_2 = value;
}
inline static int32_t get_offset_of_sourceType_3() { return static_cast<int32_t>(offsetof(CustomInputSelector_t2305655481, ___sourceType_3)); }
inline int32_t get_sourceType_3() const { return ___sourceType_3; }
inline int32_t* get_address_of_sourceType_3() { return &___sourceType_3; }
inline void set_sourceType_3(int32_t value)
{
___sourceType_3 = value;
}
inline static int32_t get_offset_of_sourceNumber_4() { return static_cast<int32_t>(offsetof(CustomInputSelector_t2305655481, ___sourceNumber_4)); }
inline int32_t get_sourceNumber_4() const { return ___sourceNumber_4; }
inline int32_t* get_address_of_sourceNumber_4() { return &___sourceNumber_4; }
inline void set_sourceNumber_4(int32_t value)
{
___sourceNumber_4 = value;
}
inline static int32_t get_offset_of_Inputs_5() { return static_cast<int32_t>(offsetof(CustomInputSelector_t2305655481, ___Inputs_5)); }
inline List_1_t2585711361 * get_Inputs_5() const { return ___Inputs_5; }
inline List_1_t2585711361 ** get_address_of_Inputs_5() { return &___Inputs_5; }
inline void set_Inputs_5(List_1_t2585711361 * value)
{
___Inputs_5 = value;
Il2CppCodeGenWriteBarrier((&___Inputs_5), value);
}
inline static int32_t get_offset_of_mouse_6() { return static_cast<int32_t>(offsetof(CustomInputSelector_t2305655481, ___mouse_6)); }
inline GameObject_t1113636619 * get_mouse_6() const { return ___mouse_6; }
inline GameObject_t1113636619 ** get_address_of_mouse_6() { return &___mouse_6; }
inline void set_mouse_6(GameObject_t1113636619 * value)
{
___mouse_6 = value;
Il2CppCodeGenWriteBarrier((&___mouse_6), value);
}
inline static int32_t get_offset_of_leftHand_7() { return static_cast<int32_t>(offsetof(CustomInputSelector_t2305655481, ___leftHand_7)); }
inline GameObject_t1113636619 * get_leftHand_7() const { return ___leftHand_7; }
inline GameObject_t1113636619 ** get_address_of_leftHand_7() { return &___leftHand_7; }
inline void set_leftHand_7(GameObject_t1113636619 * value)
{
___leftHand_7 = value;
Il2CppCodeGenWriteBarrier((&___leftHand_7), value);
}
inline static int32_t get_offset_of_rightHand_8() { return static_cast<int32_t>(offsetof(CustomInputSelector_t2305655481, ___rightHand_8)); }
inline GameObject_t1113636619 * get_rightHand_8() const { return ___rightHand_8; }
inline GameObject_t1113636619 ** get_address_of_rightHand_8() { return &___rightHand_8; }
inline void set_rightHand_8(GameObject_t1113636619 * value)
{
___rightHand_8 = value;
Il2CppCodeGenWriteBarrier((&___rightHand_8), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CUSTOMINPUTSELECTOR_T2305655481_H
#ifndef SINGLETON_1_T3008279456_H
#define SINGLETON_1_T3008279456_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Singleton`1<HoloToolkit.Unity.Boundary.BoundaryManager>
struct Singleton_1_t3008279456 : public MonoBehaviour_t3962482529
{
public:
public:
};
struct Singleton_1_t3008279456_StaticFields
{
public:
// T HoloToolkit.Unity.Singleton`1::instance
BoundaryManager_t2608055002 * ___instance_2;
// System.Boolean HoloToolkit.Unity.Singleton`1::searchForInstance
bool ___searchForInstance_3;
public:
inline static int32_t get_offset_of_instance_2() { return static_cast<int32_t>(offsetof(Singleton_1_t3008279456_StaticFields, ___instance_2)); }
inline BoundaryManager_t2608055002 * get_instance_2() const { return ___instance_2; }
inline BoundaryManager_t2608055002 ** get_address_of_instance_2() { return &___instance_2; }
inline void set_instance_2(BoundaryManager_t2608055002 * value)
{
___instance_2 = value;
Il2CppCodeGenWriteBarrier((&___instance_2), value);
}
inline static int32_t get_offset_of_searchForInstance_3() { return static_cast<int32_t>(offsetof(Singleton_1_t3008279456_StaticFields, ___searchForInstance_3)); }
inline bool get_searchForInstance_3() const { return ___searchForInstance_3; }
inline bool* get_address_of_searchForInstance_3() { return &___searchForInstance_3; }
inline void set_searchForInstance_3(bool value)
{
___searchForInstance_3 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SINGLETON_1_T3008279456_H
#ifndef SPEECHINPUTHANDLER_T1098372982_H
#define SPEECHINPUTHANDLER_T1098372982_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.SpeechInputHandler
struct SpeechInputHandler_t1098372982 : public MonoBehaviour_t3962482529
{
public:
// HoloToolkit.Unity.InputModule.SpeechInputHandler/KeywordAndResponse[] HoloToolkit.Unity.InputModule.SpeechInputHandler::Keywords
KeywordAndResponseU5BU5D_t2660299449* ___Keywords_2;
// System.Boolean HoloToolkit.Unity.InputModule.SpeechInputHandler::IsGlobalListener
bool ___IsGlobalListener_3;
// System.Boolean HoloToolkit.Unity.InputModule.SpeechInputHandler::PersistentKeywords
bool ___PersistentKeywords_4;
// System.Collections.Generic.Dictionary`2<System.String,UnityEngine.Events.UnityEvent> HoloToolkit.Unity.InputModule.SpeechInputHandler::responses
Dictionary_2_t2366524946 * ___responses_5;
public:
inline static int32_t get_offset_of_Keywords_2() { return static_cast<int32_t>(offsetof(SpeechInputHandler_t1098372982, ___Keywords_2)); }
inline KeywordAndResponseU5BU5D_t2660299449* get_Keywords_2() const { return ___Keywords_2; }
inline KeywordAndResponseU5BU5D_t2660299449** get_address_of_Keywords_2() { return &___Keywords_2; }
inline void set_Keywords_2(KeywordAndResponseU5BU5D_t2660299449* value)
{
___Keywords_2 = value;
Il2CppCodeGenWriteBarrier((&___Keywords_2), value);
}
inline static int32_t get_offset_of_IsGlobalListener_3() { return static_cast<int32_t>(offsetof(SpeechInputHandler_t1098372982, ___IsGlobalListener_3)); }
inline bool get_IsGlobalListener_3() const { return ___IsGlobalListener_3; }
inline bool* get_address_of_IsGlobalListener_3() { return &___IsGlobalListener_3; }
inline void set_IsGlobalListener_3(bool value)
{
___IsGlobalListener_3 = value;
}
inline static int32_t get_offset_of_PersistentKeywords_4() { return static_cast<int32_t>(offsetof(SpeechInputHandler_t1098372982, ___PersistentKeywords_4)); }
inline bool get_PersistentKeywords_4() const { return ___PersistentKeywords_4; }
inline bool* get_address_of_PersistentKeywords_4() { return &___PersistentKeywords_4; }
inline void set_PersistentKeywords_4(bool value)
{
___PersistentKeywords_4 = value;
}
inline static int32_t get_offset_of_responses_5() { return static_cast<int32_t>(offsetof(SpeechInputHandler_t1098372982, ___responses_5)); }
inline Dictionary_2_t2366524946 * get_responses_5() const { return ___responses_5; }
inline Dictionary_2_t2366524946 ** get_address_of_responses_5() { return &___responses_5; }
inline void set_responses_5(Dictionary_2_t2366524946 * value)
{
___responses_5 = value;
Il2CppCodeGenWriteBarrier((&___responses_5), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SPEECHINPUTHANDLER_T1098372982_H
#ifndef BRUSHCONTROLLER_T3766631826_H
#define BRUSHCONTROLLER_T3766631826_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.ControllerExamples.BrushController
struct BrushController_t3766631826 : public MonoBehaviour_t3962482529
{
public:
// System.Single HoloToolkit.Unity.ControllerExamples.BrushController::minColorDelta
float ___minColorDelta_2;
// System.Single HoloToolkit.Unity.ControllerExamples.BrushController::minPositionDelta
float ___minPositionDelta_3;
// System.Single HoloToolkit.Unity.ControllerExamples.BrushController::maxTimeDelta
float ___maxTimeDelta_4;
// UnityEngine.Transform HoloToolkit.Unity.ControllerExamples.BrushController::tip
Transform_t3600365921 * ___tip_5;
// UnityEngine.GameObject HoloToolkit.Unity.ControllerExamples.BrushController::strokePrefab
GameObject_t1113636619 * ___strokePrefab_6;
// UnityEngine.Transform HoloToolkit.Unity.ControllerExamples.BrushController::brushObjectTransform
Transform_t3600365921 * ___brushObjectTransform_7;
// UnityEngine.Renderer HoloToolkit.Unity.ControllerExamples.BrushController::brushRenderer
Renderer_t2627027031 * ___brushRenderer_8;
// HoloToolkit.Unity.ControllerExamples.ColorPickerWheel HoloToolkit.Unity.ControllerExamples.BrushController::colorPicker
ColorPickerWheel_t2235220782 * ___colorPicker_9;
// UnityEngine.Color HoloToolkit.Unity.ControllerExamples.BrushController::currentStrokeColor
Color_t2555686324 ___currentStrokeColor_10;
// System.Boolean HoloToolkit.Unity.ControllerExamples.BrushController::draw
bool ___draw_11;
// System.Single HoloToolkit.Unity.ControllerExamples.BrushController::width
float ___width_12;
// System.Single HoloToolkit.Unity.ControllerExamples.BrushController::lastPointAddedTime
float ___lastPointAddedTime_13;
public:
inline static int32_t get_offset_of_minColorDelta_2() { return static_cast<int32_t>(offsetof(BrushController_t3766631826, ___minColorDelta_2)); }
inline float get_minColorDelta_2() const { return ___minColorDelta_2; }
inline float* get_address_of_minColorDelta_2() { return &___minColorDelta_2; }
inline void set_minColorDelta_2(float value)
{
___minColorDelta_2 = value;
}
inline static int32_t get_offset_of_minPositionDelta_3() { return static_cast<int32_t>(offsetof(BrushController_t3766631826, ___minPositionDelta_3)); }
inline float get_minPositionDelta_3() const { return ___minPositionDelta_3; }
inline float* get_address_of_minPositionDelta_3() { return &___minPositionDelta_3; }
inline void set_minPositionDelta_3(float value)
{
___minPositionDelta_3 = value;
}
inline static int32_t get_offset_of_maxTimeDelta_4() { return static_cast<int32_t>(offsetof(BrushController_t3766631826, ___maxTimeDelta_4)); }
inline float get_maxTimeDelta_4() const { return ___maxTimeDelta_4; }
inline float* get_address_of_maxTimeDelta_4() { return &___maxTimeDelta_4; }
inline void set_maxTimeDelta_4(float value)
{
___maxTimeDelta_4 = value;
}
inline static int32_t get_offset_of_tip_5() { return static_cast<int32_t>(offsetof(BrushController_t3766631826, ___tip_5)); }
inline Transform_t3600365921 * get_tip_5() const { return ___tip_5; }
inline Transform_t3600365921 ** get_address_of_tip_5() { return &___tip_5; }
inline void set_tip_5(Transform_t3600365921 * value)
{
___tip_5 = value;
Il2CppCodeGenWriteBarrier((&___tip_5), value);
}
inline static int32_t get_offset_of_strokePrefab_6() { return static_cast<int32_t>(offsetof(BrushController_t3766631826, ___strokePrefab_6)); }
inline GameObject_t1113636619 * get_strokePrefab_6() const { return ___strokePrefab_6; }
inline GameObject_t1113636619 ** get_address_of_strokePrefab_6() { return &___strokePrefab_6; }
inline void set_strokePrefab_6(GameObject_t1113636619 * value)
{
___strokePrefab_6 = value;
Il2CppCodeGenWriteBarrier((&___strokePrefab_6), value);
}
inline static int32_t get_offset_of_brushObjectTransform_7() { return static_cast<int32_t>(offsetof(BrushController_t3766631826, ___brushObjectTransform_7)); }
inline Transform_t3600365921 * get_brushObjectTransform_7() const { return ___brushObjectTransform_7; }
inline Transform_t3600365921 ** get_address_of_brushObjectTransform_7() { return &___brushObjectTransform_7; }
inline void set_brushObjectTransform_7(Transform_t3600365921 * value)
{
___brushObjectTransform_7 = value;
Il2CppCodeGenWriteBarrier((&___brushObjectTransform_7), value);
}
inline static int32_t get_offset_of_brushRenderer_8() { return static_cast<int32_t>(offsetof(BrushController_t3766631826, ___brushRenderer_8)); }
inline Renderer_t2627027031 * get_brushRenderer_8() const { return ___brushRenderer_8; }
inline Renderer_t2627027031 ** get_address_of_brushRenderer_8() { return &___brushRenderer_8; }
inline void set_brushRenderer_8(Renderer_t2627027031 * value)
{
___brushRenderer_8 = value;
Il2CppCodeGenWriteBarrier((&___brushRenderer_8), value);
}
inline static int32_t get_offset_of_colorPicker_9() { return static_cast<int32_t>(offsetof(BrushController_t3766631826, ___colorPicker_9)); }
inline ColorPickerWheel_t2235220782 * get_colorPicker_9() const { return ___colorPicker_9; }
inline ColorPickerWheel_t2235220782 ** get_address_of_colorPicker_9() { return &___colorPicker_9; }
inline void set_colorPicker_9(ColorPickerWheel_t2235220782 * value)
{
___colorPicker_9 = value;
Il2CppCodeGenWriteBarrier((&___colorPicker_9), value);
}
inline static int32_t get_offset_of_currentStrokeColor_10() { return static_cast<int32_t>(offsetof(BrushController_t3766631826, ___currentStrokeColor_10)); }
inline Color_t2555686324 get_currentStrokeColor_10() const { return ___currentStrokeColor_10; }
inline Color_t2555686324 * get_address_of_currentStrokeColor_10() { return &___currentStrokeColor_10; }
inline void set_currentStrokeColor_10(Color_t2555686324 value)
{
___currentStrokeColor_10 = value;
}
inline static int32_t get_offset_of_draw_11() { return static_cast<int32_t>(offsetof(BrushController_t3766631826, ___draw_11)); }
inline bool get_draw_11() const { return ___draw_11; }
inline bool* get_address_of_draw_11() { return &___draw_11; }
inline void set_draw_11(bool value)
{
___draw_11 = value;
}
inline static int32_t get_offset_of_width_12() { return static_cast<int32_t>(offsetof(BrushController_t3766631826, ___width_12)); }
inline float get_width_12() const { return ___width_12; }
inline float* get_address_of_width_12() { return &___width_12; }
inline void set_width_12(float value)
{
___width_12 = value;
}
inline static int32_t get_offset_of_lastPointAddedTime_13() { return static_cast<int32_t>(offsetof(BrushController_t3766631826, ___lastPointAddedTime_13)); }
inline float get_lastPointAddedTime_13() const { return ___lastPointAddedTime_13; }
inline float* get_address_of_lastPointAddedTime_13() { return &___lastPointAddedTime_13; }
inline void set_lastPointAddedTime_13(float value)
{
___lastPointAddedTime_13 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BRUSHCONTROLLER_T3766631826_H
#ifndef BRUSH_T1548626474_H
#define BRUSH_T1548626474_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.ControllerExamples.Brush
struct Brush_t1548626474 : public MonoBehaviour_t3962482529
{
public:
// System.Single HoloToolkit.Unity.ControllerExamples.Brush::minColorDelta
float ___minColorDelta_2;
// System.Single HoloToolkit.Unity.ControllerExamples.Brush::minPositionDelta
float ___minPositionDelta_3;
// System.Single HoloToolkit.Unity.ControllerExamples.Brush::maxTimeDelta
float ___maxTimeDelta_4;
// UnityEngine.Transform HoloToolkit.Unity.ControllerExamples.Brush::tip
Transform_t3600365921 * ___tip_5;
// UnityEngine.GameObject HoloToolkit.Unity.ControllerExamples.Brush::strokePrefab
GameObject_t1113636619 * ___strokePrefab_6;
// UnityEngine.Transform HoloToolkit.Unity.ControllerExamples.Brush::brushObjectTransform
Transform_t3600365921 * ___brushObjectTransform_7;
// UnityEngine.Renderer HoloToolkit.Unity.ControllerExamples.Brush::brushRenderer
Renderer_t2627027031 * ___brushRenderer_8;
// System.Boolean HoloToolkit.Unity.ControllerExamples.Brush::draw
bool ___draw_9;
// System.Single HoloToolkit.Unity.ControllerExamples.Brush::width
float ___width_10;
// UnityEngine.Vector3 HoloToolkit.Unity.ControllerExamples.Brush::inMenuPosition
Vector3_t3722313464 ___inMenuPosition_11;
// UnityEngine.Vector3 HoloToolkit.Unity.ControllerExamples.Brush::inMenuRotation
Vector3_t3722313464 ___inMenuRotation_12;
// UnityEngine.Vector3 HoloToolkit.Unity.ControllerExamples.Brush::inHandPosition
Vector3_t3722313464 ___inHandPosition_13;
// UnityEngine.Vector3 HoloToolkit.Unity.ControllerExamples.Brush::inHandRotation
Vector3_t3722313464 ___inHandRotation_14;
// HoloToolkit.Unity.ControllerExamples.Brush/DisplayModeEnum HoloToolkit.Unity.ControllerExamples.Brush::displayMode
int32_t ___displayMode_15;
// System.Single HoloToolkit.Unity.ControllerExamples.Brush::transitionDuration
float ___transitionDuration_16;
// UnityEngine.AnimationCurve HoloToolkit.Unity.ControllerExamples.Brush::transitionCurve
AnimationCurve_t3046754366 * ___transitionCurve_17;
// UnityEngine.Color HoloToolkit.Unity.ControllerExamples.Brush::currentStrokeColor
Color_t2555686324 ___currentStrokeColor_18;
// System.Single HoloToolkit.Unity.ControllerExamples.Brush::lastPointAddedTime
float ___lastPointAddedTime_19;
public:
inline static int32_t get_offset_of_minColorDelta_2() { return static_cast<int32_t>(offsetof(Brush_t1548626474, ___minColorDelta_2)); }
inline float get_minColorDelta_2() const { return ___minColorDelta_2; }
inline float* get_address_of_minColorDelta_2() { return &___minColorDelta_2; }
inline void set_minColorDelta_2(float value)
{
___minColorDelta_2 = value;
}
inline static int32_t get_offset_of_minPositionDelta_3() { return static_cast<int32_t>(offsetof(Brush_t1548626474, ___minPositionDelta_3)); }
inline float get_minPositionDelta_3() const { return ___minPositionDelta_3; }
inline float* get_address_of_minPositionDelta_3() { return &___minPositionDelta_3; }
inline void set_minPositionDelta_3(float value)
{
___minPositionDelta_3 = value;
}
inline static int32_t get_offset_of_maxTimeDelta_4() { return static_cast<int32_t>(offsetof(Brush_t1548626474, ___maxTimeDelta_4)); }
inline float get_maxTimeDelta_4() const { return ___maxTimeDelta_4; }
inline float* get_address_of_maxTimeDelta_4() { return &___maxTimeDelta_4; }
inline void set_maxTimeDelta_4(float value)
{
___maxTimeDelta_4 = value;
}
inline static int32_t get_offset_of_tip_5() { return static_cast<int32_t>(offsetof(Brush_t1548626474, ___tip_5)); }
inline Transform_t3600365921 * get_tip_5() const { return ___tip_5; }
inline Transform_t3600365921 ** get_address_of_tip_5() { return &___tip_5; }
inline void set_tip_5(Transform_t3600365921 * value)
{
___tip_5 = value;
Il2CppCodeGenWriteBarrier((&___tip_5), value);
}
inline static int32_t get_offset_of_strokePrefab_6() { return static_cast<int32_t>(offsetof(Brush_t1548626474, ___strokePrefab_6)); }
inline GameObject_t1113636619 * get_strokePrefab_6() const { return ___strokePrefab_6; }
inline GameObject_t1113636619 ** get_address_of_strokePrefab_6() { return &___strokePrefab_6; }
inline void set_strokePrefab_6(GameObject_t1113636619 * value)
{
___strokePrefab_6 = value;
Il2CppCodeGenWriteBarrier((&___strokePrefab_6), value);
}
inline static int32_t get_offset_of_brushObjectTransform_7() { return static_cast<int32_t>(offsetof(Brush_t1548626474, ___brushObjectTransform_7)); }
inline Transform_t3600365921 * get_brushObjectTransform_7() const { return ___brushObjectTransform_7; }
inline Transform_t3600365921 ** get_address_of_brushObjectTransform_7() { return &___brushObjectTransform_7; }
inline void set_brushObjectTransform_7(Transform_t3600365921 * value)
{
___brushObjectTransform_7 = value;
Il2CppCodeGenWriteBarrier((&___brushObjectTransform_7), value);
}
inline static int32_t get_offset_of_brushRenderer_8() { return static_cast<int32_t>(offsetof(Brush_t1548626474, ___brushRenderer_8)); }
inline Renderer_t2627027031 * get_brushRenderer_8() const { return ___brushRenderer_8; }
inline Renderer_t2627027031 ** get_address_of_brushRenderer_8() { return &___brushRenderer_8; }
inline void set_brushRenderer_8(Renderer_t2627027031 * value)
{
___brushRenderer_8 = value;
Il2CppCodeGenWriteBarrier((&___brushRenderer_8), value);
}
inline static int32_t get_offset_of_draw_9() { return static_cast<int32_t>(offsetof(Brush_t1548626474, ___draw_9)); }
inline bool get_draw_9() const { return ___draw_9; }
inline bool* get_address_of_draw_9() { return &___draw_9; }
inline void set_draw_9(bool value)
{
___draw_9 = value;
}
inline static int32_t get_offset_of_width_10() { return static_cast<int32_t>(offsetof(Brush_t1548626474, ___width_10)); }
inline float get_width_10() const { return ___width_10; }
inline float* get_address_of_width_10() { return &___width_10; }
inline void set_width_10(float value)
{
___width_10 = value;
}
inline static int32_t get_offset_of_inMenuPosition_11() { return static_cast<int32_t>(offsetof(Brush_t1548626474, ___inMenuPosition_11)); }
inline Vector3_t3722313464 get_inMenuPosition_11() const { return ___inMenuPosition_11; }
inline Vector3_t3722313464 * get_address_of_inMenuPosition_11() { return &___inMenuPosition_11; }
inline void set_inMenuPosition_11(Vector3_t3722313464 value)
{
___inMenuPosition_11 = value;
}
inline static int32_t get_offset_of_inMenuRotation_12() { return static_cast<int32_t>(offsetof(Brush_t1548626474, ___inMenuRotation_12)); }
inline Vector3_t3722313464 get_inMenuRotation_12() const { return ___inMenuRotation_12; }
inline Vector3_t3722313464 * get_address_of_inMenuRotation_12() { return &___inMenuRotation_12; }
inline void set_inMenuRotation_12(Vector3_t3722313464 value)
{
___inMenuRotation_12 = value;
}
inline static int32_t get_offset_of_inHandPosition_13() { return static_cast<int32_t>(offsetof(Brush_t1548626474, ___inHandPosition_13)); }
inline Vector3_t3722313464 get_inHandPosition_13() const { return ___inHandPosition_13; }
inline Vector3_t3722313464 * get_address_of_inHandPosition_13() { return &___inHandPosition_13; }
inline void set_inHandPosition_13(Vector3_t3722313464 value)
{
___inHandPosition_13 = value;
}
inline static int32_t get_offset_of_inHandRotation_14() { return static_cast<int32_t>(offsetof(Brush_t1548626474, ___inHandRotation_14)); }
inline Vector3_t3722313464 get_inHandRotation_14() const { return ___inHandRotation_14; }
inline Vector3_t3722313464 * get_address_of_inHandRotation_14() { return &___inHandRotation_14; }
inline void set_inHandRotation_14(Vector3_t3722313464 value)
{
___inHandRotation_14 = value;
}
inline static int32_t get_offset_of_displayMode_15() { return static_cast<int32_t>(offsetof(Brush_t1548626474, ___displayMode_15)); }
inline int32_t get_displayMode_15() const { return ___displayMode_15; }
inline int32_t* get_address_of_displayMode_15() { return &___displayMode_15; }
inline void set_displayMode_15(int32_t value)
{
___displayMode_15 = value;
}
inline static int32_t get_offset_of_transitionDuration_16() { return static_cast<int32_t>(offsetof(Brush_t1548626474, ___transitionDuration_16)); }
inline float get_transitionDuration_16() const { return ___transitionDuration_16; }
inline float* get_address_of_transitionDuration_16() { return &___transitionDuration_16; }
inline void set_transitionDuration_16(float value)
{
___transitionDuration_16 = value;
}
inline static int32_t get_offset_of_transitionCurve_17() { return static_cast<int32_t>(offsetof(Brush_t1548626474, ___transitionCurve_17)); }
inline AnimationCurve_t3046754366 * get_transitionCurve_17() const { return ___transitionCurve_17; }
inline AnimationCurve_t3046754366 ** get_address_of_transitionCurve_17() { return &___transitionCurve_17; }
inline void set_transitionCurve_17(AnimationCurve_t3046754366 * value)
{
___transitionCurve_17 = value;
Il2CppCodeGenWriteBarrier((&___transitionCurve_17), value);
}
inline static int32_t get_offset_of_currentStrokeColor_18() { return static_cast<int32_t>(offsetof(Brush_t1548626474, ___currentStrokeColor_18)); }
inline Color_t2555686324 get_currentStrokeColor_18() const { return ___currentStrokeColor_18; }
inline Color_t2555686324 * get_address_of_currentStrokeColor_18() { return &___currentStrokeColor_18; }
inline void set_currentStrokeColor_18(Color_t2555686324 value)
{
___currentStrokeColor_18 = value;
}
inline static int32_t get_offset_of_lastPointAddedTime_19() { return static_cast<int32_t>(offsetof(Brush_t1548626474, ___lastPointAddedTime_19)); }
inline float get_lastPointAddedTime_19() const { return ___lastPointAddedTime_19; }
inline float* get_address_of_lastPointAddedTime_19() { return &___lastPointAddedTime_19; }
inline void set_lastPointAddedTime_19(float value)
{
___lastPointAddedTime_19 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BRUSH_T1548626474_H
#ifndef SETGLOBALLISTENER_T2628677908_H
#define SETGLOBALLISTENER_T2628677908_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.SetGlobalListener
struct SetGlobalListener_t2628677908 : public MonoBehaviour_t3962482529
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SETGLOBALLISTENER_T2628677908_H
#ifndef LINERENDERER_T3025162641_H
#define LINERENDERER_T3025162641_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Design.LineRenderer
struct LineRenderer_t3025162641 : public MonoBehaviour_t3962482529
{
public:
// UnityEngine.Gradient HoloToolkit.Unity.Design.LineRenderer::LineColor
Gradient_t3067099924 * ___LineColor_2;
// UnityEngine.AnimationCurve HoloToolkit.Unity.Design.LineRenderer::LineWidth
AnimationCurve_t3046754366 * ___LineWidth_3;
// System.Single HoloToolkit.Unity.Design.LineRenderer::WidthMultiplier
float ___WidthMultiplier_4;
// System.Single HoloToolkit.Unity.Design.LineRenderer::ColorOffset
float ___ColorOffset_5;
// System.Single HoloToolkit.Unity.Design.LineRenderer::WidthOffset
float ___WidthOffset_6;
// System.Single HoloToolkit.Unity.Design.LineRenderer::RotationOffset
float ___RotationOffset_7;
// HoloToolkit.Unity.Design.LineUtils/StepModeEnum HoloToolkit.Unity.Design.LineRenderer::StepMode
int32_t ___StepMode_8;
// HoloToolkit.Unity.Design.LineUtils/InterpolationModeEnum HoloToolkit.Unity.Design.LineRenderer::InterpolationMode
int32_t ___InterpolationMode_9;
// System.Int32 HoloToolkit.Unity.Design.LineRenderer::NumLineSteps
int32_t ___NumLineSteps_10;
// System.Single HoloToolkit.Unity.Design.LineRenderer::StepLength
float ___StepLength_11;
// System.Int32 HoloToolkit.Unity.Design.LineRenderer::MaxLineSteps
int32_t ___MaxLineSteps_12;
// UnityEngine.AnimationCurve HoloToolkit.Unity.Design.LineRenderer::StepLengthCurve
AnimationCurve_t3046754366 * ___StepLengthCurve_13;
// HoloToolkit.Unity.Design.LineBase HoloToolkit.Unity.Design.LineRenderer::source
LineBase_t717918686 * ___source_14;
// System.Single[] HoloToolkit.Unity.Design.LineRenderer::normalizedLengths
SingleU5BU5D_t1444911251* ___normalizedLengths_15;
public:
inline static int32_t get_offset_of_LineColor_2() { return static_cast<int32_t>(offsetof(LineRenderer_t3025162641, ___LineColor_2)); }
inline Gradient_t3067099924 * get_LineColor_2() const { return ___LineColor_2; }
inline Gradient_t3067099924 ** get_address_of_LineColor_2() { return &___LineColor_2; }
inline void set_LineColor_2(Gradient_t3067099924 * value)
{
___LineColor_2 = value;
Il2CppCodeGenWriteBarrier((&___LineColor_2), value);
}
inline static int32_t get_offset_of_LineWidth_3() { return static_cast<int32_t>(offsetof(LineRenderer_t3025162641, ___LineWidth_3)); }
inline AnimationCurve_t3046754366 * get_LineWidth_3() const { return ___LineWidth_3; }
inline AnimationCurve_t3046754366 ** get_address_of_LineWidth_3() { return &___LineWidth_3; }
inline void set_LineWidth_3(AnimationCurve_t3046754366 * value)
{
___LineWidth_3 = value;
Il2CppCodeGenWriteBarrier((&___LineWidth_3), value);
}
inline static int32_t get_offset_of_WidthMultiplier_4() { return static_cast<int32_t>(offsetof(LineRenderer_t3025162641, ___WidthMultiplier_4)); }
inline float get_WidthMultiplier_4() const { return ___WidthMultiplier_4; }
inline float* get_address_of_WidthMultiplier_4() { return &___WidthMultiplier_4; }
inline void set_WidthMultiplier_4(float value)
{
___WidthMultiplier_4 = value;
}
inline static int32_t get_offset_of_ColorOffset_5() { return static_cast<int32_t>(offsetof(LineRenderer_t3025162641, ___ColorOffset_5)); }
inline float get_ColorOffset_5() const { return ___ColorOffset_5; }
inline float* get_address_of_ColorOffset_5() { return &___ColorOffset_5; }
inline void set_ColorOffset_5(float value)
{
___ColorOffset_5 = value;
}
inline static int32_t get_offset_of_WidthOffset_6() { return static_cast<int32_t>(offsetof(LineRenderer_t3025162641, ___WidthOffset_6)); }
inline float get_WidthOffset_6() const { return ___WidthOffset_6; }
inline float* get_address_of_WidthOffset_6() { return &___WidthOffset_6; }
inline void set_WidthOffset_6(float value)
{
___WidthOffset_6 = value;
}
inline static int32_t get_offset_of_RotationOffset_7() { return static_cast<int32_t>(offsetof(LineRenderer_t3025162641, ___RotationOffset_7)); }
inline float get_RotationOffset_7() const { return ___RotationOffset_7; }
inline float* get_address_of_RotationOffset_7() { return &___RotationOffset_7; }
inline void set_RotationOffset_7(float value)
{
___RotationOffset_7 = value;
}
inline static int32_t get_offset_of_StepMode_8() { return static_cast<int32_t>(offsetof(LineRenderer_t3025162641, ___StepMode_8)); }
inline int32_t get_StepMode_8() const { return ___StepMode_8; }
inline int32_t* get_address_of_StepMode_8() { return &___StepMode_8; }
inline void set_StepMode_8(int32_t value)
{
___StepMode_8 = value;
}
inline static int32_t get_offset_of_InterpolationMode_9() { return static_cast<int32_t>(offsetof(LineRenderer_t3025162641, ___InterpolationMode_9)); }
inline int32_t get_InterpolationMode_9() const { return ___InterpolationMode_9; }
inline int32_t* get_address_of_InterpolationMode_9() { return &___InterpolationMode_9; }
inline void set_InterpolationMode_9(int32_t value)
{
___InterpolationMode_9 = value;
}
inline static int32_t get_offset_of_NumLineSteps_10() { return static_cast<int32_t>(offsetof(LineRenderer_t3025162641, ___NumLineSteps_10)); }
inline int32_t get_NumLineSteps_10() const { return ___NumLineSteps_10; }
inline int32_t* get_address_of_NumLineSteps_10() { return &___NumLineSteps_10; }
inline void set_NumLineSteps_10(int32_t value)
{
___NumLineSteps_10 = value;
}
inline static int32_t get_offset_of_StepLength_11() { return static_cast<int32_t>(offsetof(LineRenderer_t3025162641, ___StepLength_11)); }
inline float get_StepLength_11() const { return ___StepLength_11; }
inline float* get_address_of_StepLength_11() { return &___StepLength_11; }
inline void set_StepLength_11(float value)
{
___StepLength_11 = value;
}
inline static int32_t get_offset_of_MaxLineSteps_12() { return static_cast<int32_t>(offsetof(LineRenderer_t3025162641, ___MaxLineSteps_12)); }
inline int32_t get_MaxLineSteps_12() const { return ___MaxLineSteps_12; }
inline int32_t* get_address_of_MaxLineSteps_12() { return &___MaxLineSteps_12; }
inline void set_MaxLineSteps_12(int32_t value)
{
___MaxLineSteps_12 = value;
}
inline static int32_t get_offset_of_StepLengthCurve_13() { return static_cast<int32_t>(offsetof(LineRenderer_t3025162641, ___StepLengthCurve_13)); }
inline AnimationCurve_t3046754366 * get_StepLengthCurve_13() const { return ___StepLengthCurve_13; }
inline AnimationCurve_t3046754366 ** get_address_of_StepLengthCurve_13() { return &___StepLengthCurve_13; }
inline void set_StepLengthCurve_13(AnimationCurve_t3046754366 * value)
{
___StepLengthCurve_13 = value;
Il2CppCodeGenWriteBarrier((&___StepLengthCurve_13), value);
}
inline static int32_t get_offset_of_source_14() { return static_cast<int32_t>(offsetof(LineRenderer_t3025162641, ___source_14)); }
inline LineBase_t717918686 * get_source_14() const { return ___source_14; }
inline LineBase_t717918686 ** get_address_of_source_14() { return &___source_14; }
inline void set_source_14(LineBase_t717918686 * value)
{
___source_14 = value;
Il2CppCodeGenWriteBarrier((&___source_14), value);
}
inline static int32_t get_offset_of_normalizedLengths_15() { return static_cast<int32_t>(offsetof(LineRenderer_t3025162641, ___normalizedLengths_15)); }
inline SingleU5BU5D_t1444911251* get_normalizedLengths_15() const { return ___normalizedLengths_15; }
inline SingleU5BU5D_t1444911251** get_address_of_normalizedLengths_15() { return &___normalizedLengths_15; }
inline void set_normalizedLengths_15(SingleU5BU5D_t1444911251* value)
{
___normalizedLengths_15 = value;
Il2CppCodeGenWriteBarrier((&___normalizedLengths_15), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LINERENDERER_T3025162641_H
#ifndef NAVIGATIONHOTSPOT_T405511513_H
#define NAVIGATIONHOTSPOT_T405511513_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Controllers.NavigationHotSpot
struct NavigationHotSpot_t405511513 : public MonoBehaviour_t3962482529
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // NAVIGATIONHOTSPOT_T405511513_H
#ifndef DISTORTER_T3335802222_H
#define DISTORTER_T3335802222_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Design.Distorter
struct Distorter_t3335802222 : public MonoBehaviour_t3962482529
{
public:
// System.Int32 HoloToolkit.Unity.Design.Distorter::distortOrder
int32_t ___distortOrder_2;
public:
inline static int32_t get_offset_of_distortOrder_2() { return static_cast<int32_t>(offsetof(Distorter_t3335802222, ___distortOrder_2)); }
inline int32_t get_distortOrder_2() const { return ___distortOrder_2; }
inline int32_t* get_address_of_distortOrder_2() { return &___distortOrder_2; }
inline void set_distortOrder_2(int32_t value)
{
___distortOrder_2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DISTORTER_T3335802222_H
#ifndef LINEBASE_T717918686_H
#define LINEBASE_T717918686_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Design.LineBase
struct LineBase_t717918686 : public MonoBehaviour_t3962482529
{
public:
// HoloToolkit.Unity.Design.LineUtils/SpaceEnum HoloToolkit.Unity.Design.LineBase::Space
int32_t ___Space_3;
// System.Single HoloToolkit.Unity.Design.LineBase::LineStartClamp
float ___LineStartClamp_4;
// System.Single HoloToolkit.Unity.Design.LineBase::LineEndClamp
float ___LineEndClamp_5;
// HoloToolkit.Unity.Design.LineUtils/RotationTypeEnum HoloToolkit.Unity.Design.LineBase::RotationType
int32_t ___RotationType_6;
// System.Boolean HoloToolkit.Unity.Design.LineBase::FlipUpVector
bool ___FlipUpVector_7;
// UnityEngine.Vector3 HoloToolkit.Unity.Design.LineBase::OriginOffset
Vector3_t3722313464 ___OriginOffset_8;
// System.Single HoloToolkit.Unity.Design.LineBase::ManualUpVectorBlend
float ___ManualUpVectorBlend_9;
// UnityEngine.Vector3[] HoloToolkit.Unity.Design.LineBase::ManualUpVectors
Vector3U5BU5D_t1718750761* ___ManualUpVectors_10;
// System.Single HoloToolkit.Unity.Design.LineBase::VelocitySearchRange
float ___VelocitySearchRange_11;
// System.Single HoloToolkit.Unity.Design.LineBase::VelocityBlend
float ___VelocityBlend_12;
// UnityEngine.AnimationCurve HoloToolkit.Unity.Design.LineBase::DistortionStrength
AnimationCurve_t3046754366 * ___DistortionStrength_13;
// HoloToolkit.Unity.Design.IDistorter[] HoloToolkit.Unity.Design.LineBase::distorters
IDistorterU5BU5D_t4037927985* ___distorters_14;
// System.Boolean HoloToolkit.Unity.Design.LineBase::loops
bool ___loops_15;
public:
inline static int32_t get_offset_of_Space_3() { return static_cast<int32_t>(offsetof(LineBase_t717918686, ___Space_3)); }
inline int32_t get_Space_3() const { return ___Space_3; }
inline int32_t* get_address_of_Space_3() { return &___Space_3; }
inline void set_Space_3(int32_t value)
{
___Space_3 = value;
}
inline static int32_t get_offset_of_LineStartClamp_4() { return static_cast<int32_t>(offsetof(LineBase_t717918686, ___LineStartClamp_4)); }
inline float get_LineStartClamp_4() const { return ___LineStartClamp_4; }
inline float* get_address_of_LineStartClamp_4() { return &___LineStartClamp_4; }
inline void set_LineStartClamp_4(float value)
{
___LineStartClamp_4 = value;
}
inline static int32_t get_offset_of_LineEndClamp_5() { return static_cast<int32_t>(offsetof(LineBase_t717918686, ___LineEndClamp_5)); }
inline float get_LineEndClamp_5() const { return ___LineEndClamp_5; }
inline float* get_address_of_LineEndClamp_5() { return &___LineEndClamp_5; }
inline void set_LineEndClamp_5(float value)
{
___LineEndClamp_5 = value;
}
inline static int32_t get_offset_of_RotationType_6() { return static_cast<int32_t>(offsetof(LineBase_t717918686, ___RotationType_6)); }
inline int32_t get_RotationType_6() const { return ___RotationType_6; }
inline int32_t* get_address_of_RotationType_6() { return &___RotationType_6; }
inline void set_RotationType_6(int32_t value)
{
___RotationType_6 = value;
}
inline static int32_t get_offset_of_FlipUpVector_7() { return static_cast<int32_t>(offsetof(LineBase_t717918686, ___FlipUpVector_7)); }
inline bool get_FlipUpVector_7() const { return ___FlipUpVector_7; }
inline bool* get_address_of_FlipUpVector_7() { return &___FlipUpVector_7; }
inline void set_FlipUpVector_7(bool value)
{
___FlipUpVector_7 = value;
}
inline static int32_t get_offset_of_OriginOffset_8() { return static_cast<int32_t>(offsetof(LineBase_t717918686, ___OriginOffset_8)); }
inline Vector3_t3722313464 get_OriginOffset_8() const { return ___OriginOffset_8; }
inline Vector3_t3722313464 * get_address_of_OriginOffset_8() { return &___OriginOffset_8; }
inline void set_OriginOffset_8(Vector3_t3722313464 value)
{
___OriginOffset_8 = value;
}
inline static int32_t get_offset_of_ManualUpVectorBlend_9() { return static_cast<int32_t>(offsetof(LineBase_t717918686, ___ManualUpVectorBlend_9)); }
inline float get_ManualUpVectorBlend_9() const { return ___ManualUpVectorBlend_9; }
inline float* get_address_of_ManualUpVectorBlend_9() { return &___ManualUpVectorBlend_9; }
inline void set_ManualUpVectorBlend_9(float value)
{
___ManualUpVectorBlend_9 = value;
}
inline static int32_t get_offset_of_ManualUpVectors_10() { return static_cast<int32_t>(offsetof(LineBase_t717918686, ___ManualUpVectors_10)); }
inline Vector3U5BU5D_t1718750761* get_ManualUpVectors_10() const { return ___ManualUpVectors_10; }
inline Vector3U5BU5D_t1718750761** get_address_of_ManualUpVectors_10() { return &___ManualUpVectors_10; }
inline void set_ManualUpVectors_10(Vector3U5BU5D_t1718750761* value)
{
___ManualUpVectors_10 = value;
Il2CppCodeGenWriteBarrier((&___ManualUpVectors_10), value);
}
inline static int32_t get_offset_of_VelocitySearchRange_11() { return static_cast<int32_t>(offsetof(LineBase_t717918686, ___VelocitySearchRange_11)); }
inline float get_VelocitySearchRange_11() const { return ___VelocitySearchRange_11; }
inline float* get_address_of_VelocitySearchRange_11() { return &___VelocitySearchRange_11; }
inline void set_VelocitySearchRange_11(float value)
{
___VelocitySearchRange_11 = value;
}
inline static int32_t get_offset_of_VelocityBlend_12() { return static_cast<int32_t>(offsetof(LineBase_t717918686, ___VelocityBlend_12)); }
inline float get_VelocityBlend_12() const { return ___VelocityBlend_12; }
inline float* get_address_of_VelocityBlend_12() { return &___VelocityBlend_12; }
inline void set_VelocityBlend_12(float value)
{
___VelocityBlend_12 = value;
}
inline static int32_t get_offset_of_DistortionStrength_13() { return static_cast<int32_t>(offsetof(LineBase_t717918686, ___DistortionStrength_13)); }
inline AnimationCurve_t3046754366 * get_DistortionStrength_13() const { return ___DistortionStrength_13; }
inline AnimationCurve_t3046754366 ** get_address_of_DistortionStrength_13() { return &___DistortionStrength_13; }
inline void set_DistortionStrength_13(AnimationCurve_t3046754366 * value)
{
___DistortionStrength_13 = value;
Il2CppCodeGenWriteBarrier((&___DistortionStrength_13), value);
}
inline static int32_t get_offset_of_distorters_14() { return static_cast<int32_t>(offsetof(LineBase_t717918686, ___distorters_14)); }
inline IDistorterU5BU5D_t4037927985* get_distorters_14() const { return ___distorters_14; }
inline IDistorterU5BU5D_t4037927985** get_address_of_distorters_14() { return &___distorters_14; }
inline void set_distorters_14(IDistorterU5BU5D_t4037927985* value)
{
___distorters_14 = value;
Il2CppCodeGenWriteBarrier((&___distorters_14), value);
}
inline static int32_t get_offset_of_loops_15() { return static_cast<int32_t>(offsetof(LineBase_t717918686, ___loops_15)); }
inline bool get_loops_15() const { return ___loops_15; }
inline bool* get_address_of_loops_15() { return &___loops_15; }
inline void set_loops_15(bool value)
{
___loops_15 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LINEBASE_T717918686_H
#ifndef PHYSICSPOINTER_T2887364969_H
#define PHYSICSPOINTER_T2887364969_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Controllers.PhysicsPointer
struct PhysicsPointer_t2887364969 : public MonoBehaviour_t3962482529
{
public:
// System.Single HoloToolkit.Unity.Controllers.PhysicsPointer::<TotalLength>k__BackingField
float ___U3CTotalLengthU3Ek__BackingField_2;
// UnityEngine.Vector3 HoloToolkit.Unity.Controllers.PhysicsPointer::<StartPoint>k__BackingField
Vector3_t3722313464 ___U3CStartPointU3Ek__BackingField_3;
// UnityEngine.Vector3 HoloToolkit.Unity.Controllers.PhysicsPointer::<TargetPoint>k__BackingField
Vector3_t3722313464 ___U3CTargetPointU3Ek__BackingField_4;
// UnityEngine.Vector3 HoloToolkit.Unity.Controllers.PhysicsPointer::<StartPointNormal>k__BackingField
Vector3_t3722313464 ___U3CStartPointNormalU3Ek__BackingField_5;
// UnityEngine.Vector3 HoloToolkit.Unity.Controllers.PhysicsPointer::<TargetPointNormal>k__BackingField
Vector3_t3722313464 ___U3CTargetPointNormalU3Ek__BackingField_6;
// UnityEngine.Vector3 HoloToolkit.Unity.Controllers.PhysicsPointer::<PointerForward>k__BackingField
Vector3_t3722313464 ___U3CPointerForwardU3Ek__BackingField_7;
// HoloToolkit.Unity.Controllers.PointerSurfaceResultEnum HoloToolkit.Unity.Controllers.PhysicsPointer::<TargetResult>k__BackingField
int32_t ___U3CTargetResultU3Ek__BackingField_8;
// System.Single HoloToolkit.Unity.Controllers.PhysicsPointer::<TargetPointOrientation>k__BackingField
float ___U3CTargetPointOrientationU3Ek__BackingField_9;
// UnityEngine.Gradient HoloToolkit.Unity.Controllers.PhysicsPointer::lineColorValid
Gradient_t3067099924 * ___lineColorValid_10;
// UnityEngine.Gradient HoloToolkit.Unity.Controllers.PhysicsPointer::lineColorInvalid
Gradient_t3067099924 * ___lineColorInvalid_11;
// UnityEngine.Gradient HoloToolkit.Unity.Controllers.PhysicsPointer::lineColorHotSpot
Gradient_t3067099924 * ___lineColorHotSpot_12;
// UnityEngine.Gradient HoloToolkit.Unity.Controllers.PhysicsPointer::lineColorNoTarget
Gradient_t3067099924 * ___lineColorNoTarget_13;
// UnityEngine.LayerMask HoloToolkit.Unity.Controllers.PhysicsPointer::validLayers
LayerMask_t3493934918 ___validLayers_14;
// UnityEngine.LayerMask HoloToolkit.Unity.Controllers.PhysicsPointer::invalidLayers
LayerMask_t3493934918 ___invalidLayers_15;
// System.Boolean HoloToolkit.Unity.Controllers.PhysicsPointer::detectTriggers
bool ___detectTriggers_16;
// System.Boolean HoloToolkit.Unity.Controllers.PhysicsPointer::active
bool ___active_17;
// UnityEngine.Transform HoloToolkit.Unity.Controllers.PhysicsPointer::raycastOrigin
Transform_t3600365921 * ___raycastOrigin_18;
// UnityEngine.RaycastHit HoloToolkit.Unity.Controllers.PhysicsPointer::targetHit
RaycastHit_t1056001966 ___targetHit_19;
public:
inline static int32_t get_offset_of_U3CTotalLengthU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(PhysicsPointer_t2887364969, ___U3CTotalLengthU3Ek__BackingField_2)); }
inline float get_U3CTotalLengthU3Ek__BackingField_2() const { return ___U3CTotalLengthU3Ek__BackingField_2; }
inline float* get_address_of_U3CTotalLengthU3Ek__BackingField_2() { return &___U3CTotalLengthU3Ek__BackingField_2; }
inline void set_U3CTotalLengthU3Ek__BackingField_2(float value)
{
___U3CTotalLengthU3Ek__BackingField_2 = value;
}
inline static int32_t get_offset_of_U3CStartPointU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(PhysicsPointer_t2887364969, ___U3CStartPointU3Ek__BackingField_3)); }
inline Vector3_t3722313464 get_U3CStartPointU3Ek__BackingField_3() const { return ___U3CStartPointU3Ek__BackingField_3; }
inline Vector3_t3722313464 * get_address_of_U3CStartPointU3Ek__BackingField_3() { return &___U3CStartPointU3Ek__BackingField_3; }
inline void set_U3CStartPointU3Ek__BackingField_3(Vector3_t3722313464 value)
{
___U3CStartPointU3Ek__BackingField_3 = value;
}
inline static int32_t get_offset_of_U3CTargetPointU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(PhysicsPointer_t2887364969, ___U3CTargetPointU3Ek__BackingField_4)); }
inline Vector3_t3722313464 get_U3CTargetPointU3Ek__BackingField_4() const { return ___U3CTargetPointU3Ek__BackingField_4; }
inline Vector3_t3722313464 * get_address_of_U3CTargetPointU3Ek__BackingField_4() { return &___U3CTargetPointU3Ek__BackingField_4; }
inline void set_U3CTargetPointU3Ek__BackingField_4(Vector3_t3722313464 value)
{
___U3CTargetPointU3Ek__BackingField_4 = value;
}
inline static int32_t get_offset_of_U3CStartPointNormalU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(PhysicsPointer_t2887364969, ___U3CStartPointNormalU3Ek__BackingField_5)); }
inline Vector3_t3722313464 get_U3CStartPointNormalU3Ek__BackingField_5() const { return ___U3CStartPointNormalU3Ek__BackingField_5; }
inline Vector3_t3722313464 * get_address_of_U3CStartPointNormalU3Ek__BackingField_5() { return &___U3CStartPointNormalU3Ek__BackingField_5; }
inline void set_U3CStartPointNormalU3Ek__BackingField_5(Vector3_t3722313464 value)
{
___U3CStartPointNormalU3Ek__BackingField_5 = value;
}
inline static int32_t get_offset_of_U3CTargetPointNormalU3Ek__BackingField_6() { return static_cast<int32_t>(offsetof(PhysicsPointer_t2887364969, ___U3CTargetPointNormalU3Ek__BackingField_6)); }
inline Vector3_t3722313464 get_U3CTargetPointNormalU3Ek__BackingField_6() const { return ___U3CTargetPointNormalU3Ek__BackingField_6; }
inline Vector3_t3722313464 * get_address_of_U3CTargetPointNormalU3Ek__BackingField_6() { return &___U3CTargetPointNormalU3Ek__BackingField_6; }
inline void set_U3CTargetPointNormalU3Ek__BackingField_6(Vector3_t3722313464 value)
{
___U3CTargetPointNormalU3Ek__BackingField_6 = value;
}
inline static int32_t get_offset_of_U3CPointerForwardU3Ek__BackingField_7() { return static_cast<int32_t>(offsetof(PhysicsPointer_t2887364969, ___U3CPointerForwardU3Ek__BackingField_7)); }
inline Vector3_t3722313464 get_U3CPointerForwardU3Ek__BackingField_7() const { return ___U3CPointerForwardU3Ek__BackingField_7; }
inline Vector3_t3722313464 * get_address_of_U3CPointerForwardU3Ek__BackingField_7() { return &___U3CPointerForwardU3Ek__BackingField_7; }
inline void set_U3CPointerForwardU3Ek__BackingField_7(Vector3_t3722313464 value)
{
___U3CPointerForwardU3Ek__BackingField_7 = value;
}
inline static int32_t get_offset_of_U3CTargetResultU3Ek__BackingField_8() { return static_cast<int32_t>(offsetof(PhysicsPointer_t2887364969, ___U3CTargetResultU3Ek__BackingField_8)); }
inline int32_t get_U3CTargetResultU3Ek__BackingField_8() const { return ___U3CTargetResultU3Ek__BackingField_8; }
inline int32_t* get_address_of_U3CTargetResultU3Ek__BackingField_8() { return &___U3CTargetResultU3Ek__BackingField_8; }
inline void set_U3CTargetResultU3Ek__BackingField_8(int32_t value)
{
___U3CTargetResultU3Ek__BackingField_8 = value;
}
inline static int32_t get_offset_of_U3CTargetPointOrientationU3Ek__BackingField_9() { return static_cast<int32_t>(offsetof(PhysicsPointer_t2887364969, ___U3CTargetPointOrientationU3Ek__BackingField_9)); }
inline float get_U3CTargetPointOrientationU3Ek__BackingField_9() const { return ___U3CTargetPointOrientationU3Ek__BackingField_9; }
inline float* get_address_of_U3CTargetPointOrientationU3Ek__BackingField_9() { return &___U3CTargetPointOrientationU3Ek__BackingField_9; }
inline void set_U3CTargetPointOrientationU3Ek__BackingField_9(float value)
{
___U3CTargetPointOrientationU3Ek__BackingField_9 = value;
}
inline static int32_t get_offset_of_lineColorValid_10() { return static_cast<int32_t>(offsetof(PhysicsPointer_t2887364969, ___lineColorValid_10)); }
inline Gradient_t3067099924 * get_lineColorValid_10() const { return ___lineColorValid_10; }
inline Gradient_t3067099924 ** get_address_of_lineColorValid_10() { return &___lineColorValid_10; }
inline void set_lineColorValid_10(Gradient_t3067099924 * value)
{
___lineColorValid_10 = value;
Il2CppCodeGenWriteBarrier((&___lineColorValid_10), value);
}
inline static int32_t get_offset_of_lineColorInvalid_11() { return static_cast<int32_t>(offsetof(PhysicsPointer_t2887364969, ___lineColorInvalid_11)); }
inline Gradient_t3067099924 * get_lineColorInvalid_11() const { return ___lineColorInvalid_11; }
inline Gradient_t3067099924 ** get_address_of_lineColorInvalid_11() { return &___lineColorInvalid_11; }
inline void set_lineColorInvalid_11(Gradient_t3067099924 * value)
{
___lineColorInvalid_11 = value;
Il2CppCodeGenWriteBarrier((&___lineColorInvalid_11), value);
}
inline static int32_t get_offset_of_lineColorHotSpot_12() { return static_cast<int32_t>(offsetof(PhysicsPointer_t2887364969, ___lineColorHotSpot_12)); }
inline Gradient_t3067099924 * get_lineColorHotSpot_12() const { return ___lineColorHotSpot_12; }
inline Gradient_t3067099924 ** get_address_of_lineColorHotSpot_12() { return &___lineColorHotSpot_12; }
inline void set_lineColorHotSpot_12(Gradient_t3067099924 * value)
{
___lineColorHotSpot_12 = value;
Il2CppCodeGenWriteBarrier((&___lineColorHotSpot_12), value);
}
inline static int32_t get_offset_of_lineColorNoTarget_13() { return static_cast<int32_t>(offsetof(PhysicsPointer_t2887364969, ___lineColorNoTarget_13)); }
inline Gradient_t3067099924 * get_lineColorNoTarget_13() const { return ___lineColorNoTarget_13; }
inline Gradient_t3067099924 ** get_address_of_lineColorNoTarget_13() { return &___lineColorNoTarget_13; }
inline void set_lineColorNoTarget_13(Gradient_t3067099924 * value)
{
___lineColorNoTarget_13 = value;
Il2CppCodeGenWriteBarrier((&___lineColorNoTarget_13), value);
}
inline static int32_t get_offset_of_validLayers_14() { return static_cast<int32_t>(offsetof(PhysicsPointer_t2887364969, ___validLayers_14)); }
inline LayerMask_t3493934918 get_validLayers_14() const { return ___validLayers_14; }
inline LayerMask_t3493934918 * get_address_of_validLayers_14() { return &___validLayers_14; }
inline void set_validLayers_14(LayerMask_t3493934918 value)
{
___validLayers_14 = value;
}
inline static int32_t get_offset_of_invalidLayers_15() { return static_cast<int32_t>(offsetof(PhysicsPointer_t2887364969, ___invalidLayers_15)); }
inline LayerMask_t3493934918 get_invalidLayers_15() const { return ___invalidLayers_15; }
inline LayerMask_t3493934918 * get_address_of_invalidLayers_15() { return &___invalidLayers_15; }
inline void set_invalidLayers_15(LayerMask_t3493934918 value)
{
___invalidLayers_15 = value;
}
inline static int32_t get_offset_of_detectTriggers_16() { return static_cast<int32_t>(offsetof(PhysicsPointer_t2887364969, ___detectTriggers_16)); }
inline bool get_detectTriggers_16() const { return ___detectTriggers_16; }
inline bool* get_address_of_detectTriggers_16() { return &___detectTriggers_16; }
inline void set_detectTriggers_16(bool value)
{
___detectTriggers_16 = value;
}
inline static int32_t get_offset_of_active_17() { return static_cast<int32_t>(offsetof(PhysicsPointer_t2887364969, ___active_17)); }
inline bool get_active_17() const { return ___active_17; }
inline bool* get_address_of_active_17() { return &___active_17; }
inline void set_active_17(bool value)
{
___active_17 = value;
}
inline static int32_t get_offset_of_raycastOrigin_18() { return static_cast<int32_t>(offsetof(PhysicsPointer_t2887364969, ___raycastOrigin_18)); }
inline Transform_t3600365921 * get_raycastOrigin_18() const { return ___raycastOrigin_18; }
inline Transform_t3600365921 ** get_address_of_raycastOrigin_18() { return &___raycastOrigin_18; }
inline void set_raycastOrigin_18(Transform_t3600365921 * value)
{
___raycastOrigin_18 = value;
Il2CppCodeGenWriteBarrier((&___raycastOrigin_18), value);
}
inline static int32_t get_offset_of_targetHit_19() { return static_cast<int32_t>(offsetof(PhysicsPointer_t2887364969, ___targetHit_19)); }
inline RaycastHit_t1056001966 get_targetHit_19() const { return ___targetHit_19; }
inline RaycastHit_t1056001966 * get_address_of_targetHit_19() { return &___targetHit_19; }
inline void set_targetHit_19(RaycastHit_t1056001966 value)
{
___targetHit_19 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // PHYSICSPOINTER_T2887364969_H
#ifndef POINTERCURSOR_T2821356970_H
#define POINTERCURSOR_T2821356970_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Controllers.PointerCursor
struct PointerCursor_t2821356970 : public MonoBehaviour_t3962482529
{
public:
// HoloToolkit.Unity.Controllers.PhysicsPointer HoloToolkit.Unity.Controllers.PointerCursor::pointer
PhysicsPointer_t2887364969 * ___pointer_2;
// System.Single HoloToolkit.Unity.Controllers.PointerCursor::sizeOnScreen
float ___sizeOnScreen_3;
// System.Single HoloToolkit.Unity.Controllers.PointerCursor::scaleAdjustTime
float ___scaleAdjustTime_4;
// UnityEngine.Renderer[] HoloToolkit.Unity.Controllers.PointerCursor::renderers
RendererU5BU5D_t3210418286* ___renderers_5;
// UnityEngine.Transform HoloToolkit.Unity.Controllers.PointerCursor::pointerTransform
Transform_t3600365921 * ___pointerTransform_6;
public:
inline static int32_t get_offset_of_pointer_2() { return static_cast<int32_t>(offsetof(PointerCursor_t2821356970, ___pointer_2)); }
inline PhysicsPointer_t2887364969 * get_pointer_2() const { return ___pointer_2; }
inline PhysicsPointer_t2887364969 ** get_address_of_pointer_2() { return &___pointer_2; }
inline void set_pointer_2(PhysicsPointer_t2887364969 * value)
{
___pointer_2 = value;
Il2CppCodeGenWriteBarrier((&___pointer_2), value);
}
inline static int32_t get_offset_of_sizeOnScreen_3() { return static_cast<int32_t>(offsetof(PointerCursor_t2821356970, ___sizeOnScreen_3)); }
inline float get_sizeOnScreen_3() const { return ___sizeOnScreen_3; }
inline float* get_address_of_sizeOnScreen_3() { return &___sizeOnScreen_3; }
inline void set_sizeOnScreen_3(float value)
{
___sizeOnScreen_3 = value;
}
inline static int32_t get_offset_of_scaleAdjustTime_4() { return static_cast<int32_t>(offsetof(PointerCursor_t2821356970, ___scaleAdjustTime_4)); }
inline float get_scaleAdjustTime_4() const { return ___scaleAdjustTime_4; }
inline float* get_address_of_scaleAdjustTime_4() { return &___scaleAdjustTime_4; }
inline void set_scaleAdjustTime_4(float value)
{
___scaleAdjustTime_4 = value;
}
inline static int32_t get_offset_of_renderers_5() { return static_cast<int32_t>(offsetof(PointerCursor_t2821356970, ___renderers_5)); }
inline RendererU5BU5D_t3210418286* get_renderers_5() const { return ___renderers_5; }
inline RendererU5BU5D_t3210418286** get_address_of_renderers_5() { return &___renderers_5; }
inline void set_renderers_5(RendererU5BU5D_t3210418286* value)
{
___renderers_5 = value;
Il2CppCodeGenWriteBarrier((&___renderers_5), value);
}
inline static int32_t get_offset_of_pointerTransform_6() { return static_cast<int32_t>(offsetof(PointerCursor_t2821356970, ___pointerTransform_6)); }
inline Transform_t3600365921 * get_pointerTransform_6() const { return ___pointerTransform_6; }
inline Transform_t3600365921 ** get_address_of_pointerTransform_6() { return &___pointerTransform_6; }
inline void set_pointerTransform_6(Transform_t3600365921 * value)
{
___pointerTransform_6 = value;
Il2CppCodeGenWriteBarrier((&___pointerTransform_6), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // POINTERCURSOR_T2821356970_H
#ifndef SCENECONTENTADJUSTER_T1258964661_H
#define SCENECONTENTADJUSTER_T1258964661_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Boundary.SceneContentAdjuster
struct SceneContentAdjuster_t1258964661 : public MonoBehaviour_t3962482529
{
public:
// UnityEngine.Transform HoloToolkit.Unity.Boundary.SceneContentAdjuster::containerObject
Transform_t3600365921 * ___containerObject_2;
// HoloToolkit.Unity.Boundary.SceneContentAdjuster/AlignmentType HoloToolkit.Unity.Boundary.SceneContentAdjuster::alignmentType
int32_t ___alignmentType_3;
// UnityEngine.Vector3 HoloToolkit.Unity.Boundary.SceneContentAdjuster::stationarySpaceTypePosition
Vector3_t3722313464 ___stationarySpaceTypePosition_4;
// UnityEngine.Vector3 HoloToolkit.Unity.Boundary.SceneContentAdjuster::roomScaleSpaceTypePosition
Vector3_t3722313464 ___roomScaleSpaceTypePosition_5;
// UnityEngine.Vector3 HoloToolkit.Unity.Boundary.SceneContentAdjuster::contentPosition
Vector3_t3722313464 ___contentPosition_6;
// System.Int32 HoloToolkit.Unity.Boundary.SceneContentAdjuster::frameWaitHack
int32_t ___frameWaitHack_7;
public:
inline static int32_t get_offset_of_containerObject_2() { return static_cast<int32_t>(offsetof(SceneContentAdjuster_t1258964661, ___containerObject_2)); }
inline Transform_t3600365921 * get_containerObject_2() const { return ___containerObject_2; }
inline Transform_t3600365921 ** get_address_of_containerObject_2() { return &___containerObject_2; }
inline void set_containerObject_2(Transform_t3600365921 * value)
{
___containerObject_2 = value;
Il2CppCodeGenWriteBarrier((&___containerObject_2), value);
}
inline static int32_t get_offset_of_alignmentType_3() { return static_cast<int32_t>(offsetof(SceneContentAdjuster_t1258964661, ___alignmentType_3)); }
inline int32_t get_alignmentType_3() const { return ___alignmentType_3; }
inline int32_t* get_address_of_alignmentType_3() { return &___alignmentType_3; }
inline void set_alignmentType_3(int32_t value)
{
___alignmentType_3 = value;
}
inline static int32_t get_offset_of_stationarySpaceTypePosition_4() { return static_cast<int32_t>(offsetof(SceneContentAdjuster_t1258964661, ___stationarySpaceTypePosition_4)); }
inline Vector3_t3722313464 get_stationarySpaceTypePosition_4() const { return ___stationarySpaceTypePosition_4; }
inline Vector3_t3722313464 * get_address_of_stationarySpaceTypePosition_4() { return &___stationarySpaceTypePosition_4; }
inline void set_stationarySpaceTypePosition_4(Vector3_t3722313464 value)
{
___stationarySpaceTypePosition_4 = value;
}
inline static int32_t get_offset_of_roomScaleSpaceTypePosition_5() { return static_cast<int32_t>(offsetof(SceneContentAdjuster_t1258964661, ___roomScaleSpaceTypePosition_5)); }
inline Vector3_t3722313464 get_roomScaleSpaceTypePosition_5() const { return ___roomScaleSpaceTypePosition_5; }
inline Vector3_t3722313464 * get_address_of_roomScaleSpaceTypePosition_5() { return &___roomScaleSpaceTypePosition_5; }
inline void set_roomScaleSpaceTypePosition_5(Vector3_t3722313464 value)
{
___roomScaleSpaceTypePosition_5 = value;
}
inline static int32_t get_offset_of_contentPosition_6() { return static_cast<int32_t>(offsetof(SceneContentAdjuster_t1258964661, ___contentPosition_6)); }
inline Vector3_t3722313464 get_contentPosition_6() const { return ___contentPosition_6; }
inline Vector3_t3722313464 * get_address_of_contentPosition_6() { return &___contentPosition_6; }
inline void set_contentPosition_6(Vector3_t3722313464 value)
{
___contentPosition_6 = value;
}
inline static int32_t get_offset_of_frameWaitHack_7() { return static_cast<int32_t>(offsetof(SceneContentAdjuster_t1258964661, ___frameWaitHack_7)); }
inline int32_t get_frameWaitHack_7() const { return ___frameWaitHack_7; }
inline int32_t* get_address_of_frameWaitHack_7() { return &___frameWaitHack_7; }
inline void set_frameWaitHack_7(int32_t value)
{
___frameWaitHack_7 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SCENECONTENTADJUSTER_T1258964661_H
#ifndef SINGLETON_1_T3572089617_H
#define SINGLETON_1_T3572089617_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Singleton`1<HoloToolkit.Unity.InputModule.CameraMotionInfo>
struct Singleton_1_t3572089617 : public MonoBehaviour_t3962482529
{
public:
public:
};
struct Singleton_1_t3572089617_StaticFields
{
public:
// T HoloToolkit.Unity.Singleton`1::instance
CameraMotionInfo_t3171865163 * ___instance_2;
// System.Boolean HoloToolkit.Unity.Singleton`1::searchForInstance
bool ___searchForInstance_3;
public:
inline static int32_t get_offset_of_instance_2() { return static_cast<int32_t>(offsetof(Singleton_1_t3572089617_StaticFields, ___instance_2)); }
inline CameraMotionInfo_t3171865163 * get_instance_2() const { return ___instance_2; }
inline CameraMotionInfo_t3171865163 ** get_address_of_instance_2() { return &___instance_2; }
inline void set_instance_2(CameraMotionInfo_t3171865163 * value)
{
___instance_2 = value;
Il2CppCodeGenWriteBarrier((&___instance_2), value);
}
inline static int32_t get_offset_of_searchForInstance_3() { return static_cast<int32_t>(offsetof(Singleton_1_t3572089617_StaticFields, ___searchForInstance_3)); }
inline bool get_searchForInstance_3() const { return ___searchForInstance_3; }
inline bool* get_address_of_searchForInstance_3() { return &___searchForInstance_3; }
inline void set_searchForInstance_3(bool value)
{
___searchForInstance_3 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SINGLETON_1_T3572089617_H
#ifndef LINEOBJECTCOLLECTION_T2817952665_H
#define LINEOBJECTCOLLECTION_T2817952665_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Design.LineObjectCollection
struct LineObjectCollection_t2817952665 : public MonoBehaviour_t3962482529
{
public:
// System.Collections.Generic.List`1<UnityEngine.Transform> HoloToolkit.Unity.Design.LineObjectCollection::Objects
List_1_t777473367 * ___Objects_2;
// System.Single HoloToolkit.Unity.Design.LineObjectCollection::DistributionOffset
float ___DistributionOffset_3;
// System.Single HoloToolkit.Unity.Design.LineObjectCollection::LengthOffset
float ___LengthOffset_4;
// System.Single HoloToolkit.Unity.Design.LineObjectCollection::ScaleOffset
float ___ScaleOffset_5;
// System.Single HoloToolkit.Unity.Design.LineObjectCollection::ScaleMultiplier
float ___ScaleMultiplier_6;
// System.Single HoloToolkit.Unity.Design.LineObjectCollection::PositionMultiplier
float ___PositionMultiplier_7;
// UnityEngine.AnimationCurve HoloToolkit.Unity.Design.LineObjectCollection::ObjectScale
AnimationCurve_t3046754366 * ___ObjectScale_8;
// UnityEngine.AnimationCurve HoloToolkit.Unity.Design.LineObjectCollection::ObjectPosition
AnimationCurve_t3046754366 * ___ObjectPosition_9;
// System.Boolean HoloToolkit.Unity.Design.LineObjectCollection::FlipRotation
bool ___FlipRotation_10;
// UnityEngine.Vector3 HoloToolkit.Unity.Design.LineObjectCollection::RotationOffset
Vector3_t3722313464 ___RotationOffset_11;
// UnityEngine.Vector3 HoloToolkit.Unity.Design.LineObjectCollection::PositionOffset
Vector3_t3722313464 ___PositionOffset_12;
// HoloToolkit.Unity.Design.LineUtils/RotationTypeEnum HoloToolkit.Unity.Design.LineObjectCollection::RotationTypeOverride
int32_t ___RotationTypeOverride_13;
// HoloToolkit.Unity.Design.LineUtils/PointDistributionTypeEnum HoloToolkit.Unity.Design.LineObjectCollection::DistributionType
int32_t ___DistributionType_14;
// HoloToolkit.Unity.Design.LineUtils/StepModeEnum HoloToolkit.Unity.Design.LineObjectCollection::StepMode
int32_t ___StepMode_15;
// HoloToolkit.Unity.Design.LineBase HoloToolkit.Unity.Design.LineObjectCollection::source
LineBase_t717918686 * ___source_16;
// UnityEngine.Transform HoloToolkit.Unity.Design.LineObjectCollection::transformHelper
Transform_t3600365921 * ___transformHelper_17;
public:
inline static int32_t get_offset_of_Objects_2() { return static_cast<int32_t>(offsetof(LineObjectCollection_t2817952665, ___Objects_2)); }
inline List_1_t777473367 * get_Objects_2() const { return ___Objects_2; }
inline List_1_t777473367 ** get_address_of_Objects_2() { return &___Objects_2; }
inline void set_Objects_2(List_1_t777473367 * value)
{
___Objects_2 = value;
Il2CppCodeGenWriteBarrier((&___Objects_2), value);
}
inline static int32_t get_offset_of_DistributionOffset_3() { return static_cast<int32_t>(offsetof(LineObjectCollection_t2817952665, ___DistributionOffset_3)); }
inline float get_DistributionOffset_3() const { return ___DistributionOffset_3; }
inline float* get_address_of_DistributionOffset_3() { return &___DistributionOffset_3; }
inline void set_DistributionOffset_3(float value)
{
___DistributionOffset_3 = value;
}
inline static int32_t get_offset_of_LengthOffset_4() { return static_cast<int32_t>(offsetof(LineObjectCollection_t2817952665, ___LengthOffset_4)); }
inline float get_LengthOffset_4() const { return ___LengthOffset_4; }
inline float* get_address_of_LengthOffset_4() { return &___LengthOffset_4; }
inline void set_LengthOffset_4(float value)
{
___LengthOffset_4 = value;
}
inline static int32_t get_offset_of_ScaleOffset_5() { return static_cast<int32_t>(offsetof(LineObjectCollection_t2817952665, ___ScaleOffset_5)); }
inline float get_ScaleOffset_5() const { return ___ScaleOffset_5; }
inline float* get_address_of_ScaleOffset_5() { return &___ScaleOffset_5; }
inline void set_ScaleOffset_5(float value)
{
___ScaleOffset_5 = value;
}
inline static int32_t get_offset_of_ScaleMultiplier_6() { return static_cast<int32_t>(offsetof(LineObjectCollection_t2817952665, ___ScaleMultiplier_6)); }
inline float get_ScaleMultiplier_6() const { return ___ScaleMultiplier_6; }
inline float* get_address_of_ScaleMultiplier_6() { return &___ScaleMultiplier_6; }
inline void set_ScaleMultiplier_6(float value)
{
___ScaleMultiplier_6 = value;
}
inline static int32_t get_offset_of_PositionMultiplier_7() { return static_cast<int32_t>(offsetof(LineObjectCollection_t2817952665, ___PositionMultiplier_7)); }
inline float get_PositionMultiplier_7() const { return ___PositionMultiplier_7; }
inline float* get_address_of_PositionMultiplier_7() { return &___PositionMultiplier_7; }
inline void set_PositionMultiplier_7(float value)
{
___PositionMultiplier_7 = value;
}
inline static int32_t get_offset_of_ObjectScale_8() { return static_cast<int32_t>(offsetof(LineObjectCollection_t2817952665, ___ObjectScale_8)); }
inline AnimationCurve_t3046754366 * get_ObjectScale_8() const { return ___ObjectScale_8; }
inline AnimationCurve_t3046754366 ** get_address_of_ObjectScale_8() { return &___ObjectScale_8; }
inline void set_ObjectScale_8(AnimationCurve_t3046754366 * value)
{
___ObjectScale_8 = value;
Il2CppCodeGenWriteBarrier((&___ObjectScale_8), value);
}
inline static int32_t get_offset_of_ObjectPosition_9() { return static_cast<int32_t>(offsetof(LineObjectCollection_t2817952665, ___ObjectPosition_9)); }
inline AnimationCurve_t3046754366 * get_ObjectPosition_9() const { return ___ObjectPosition_9; }
inline AnimationCurve_t3046754366 ** get_address_of_ObjectPosition_9() { return &___ObjectPosition_9; }
inline void set_ObjectPosition_9(AnimationCurve_t3046754366 * value)
{
___ObjectPosition_9 = value;
Il2CppCodeGenWriteBarrier((&___ObjectPosition_9), value);
}
inline static int32_t get_offset_of_FlipRotation_10() { return static_cast<int32_t>(offsetof(LineObjectCollection_t2817952665, ___FlipRotation_10)); }
inline bool get_FlipRotation_10() const { return ___FlipRotation_10; }
inline bool* get_address_of_FlipRotation_10() { return &___FlipRotation_10; }
inline void set_FlipRotation_10(bool value)
{
___FlipRotation_10 = value;
}
inline static int32_t get_offset_of_RotationOffset_11() { return static_cast<int32_t>(offsetof(LineObjectCollection_t2817952665, ___RotationOffset_11)); }
inline Vector3_t3722313464 get_RotationOffset_11() const { return ___RotationOffset_11; }
inline Vector3_t3722313464 * get_address_of_RotationOffset_11() { return &___RotationOffset_11; }
inline void set_RotationOffset_11(Vector3_t3722313464 value)
{
___RotationOffset_11 = value;
}
inline static int32_t get_offset_of_PositionOffset_12() { return static_cast<int32_t>(offsetof(LineObjectCollection_t2817952665, ___PositionOffset_12)); }
inline Vector3_t3722313464 get_PositionOffset_12() const { return ___PositionOffset_12; }
inline Vector3_t3722313464 * get_address_of_PositionOffset_12() { return &___PositionOffset_12; }
inline void set_PositionOffset_12(Vector3_t3722313464 value)
{
___PositionOffset_12 = value;
}
inline static int32_t get_offset_of_RotationTypeOverride_13() { return static_cast<int32_t>(offsetof(LineObjectCollection_t2817952665, ___RotationTypeOverride_13)); }
inline int32_t get_RotationTypeOverride_13() const { return ___RotationTypeOverride_13; }
inline int32_t* get_address_of_RotationTypeOverride_13() { return &___RotationTypeOverride_13; }
inline void set_RotationTypeOverride_13(int32_t value)
{
___RotationTypeOverride_13 = value;
}
inline static int32_t get_offset_of_DistributionType_14() { return static_cast<int32_t>(offsetof(LineObjectCollection_t2817952665, ___DistributionType_14)); }
inline int32_t get_DistributionType_14() const { return ___DistributionType_14; }
inline int32_t* get_address_of_DistributionType_14() { return &___DistributionType_14; }
inline void set_DistributionType_14(int32_t value)
{
___DistributionType_14 = value;
}
inline static int32_t get_offset_of_StepMode_15() { return static_cast<int32_t>(offsetof(LineObjectCollection_t2817952665, ___StepMode_15)); }
inline int32_t get_StepMode_15() const { return ___StepMode_15; }
inline int32_t* get_address_of_StepMode_15() { return &___StepMode_15; }
inline void set_StepMode_15(int32_t value)
{
___StepMode_15 = value;
}
inline static int32_t get_offset_of_source_16() { return static_cast<int32_t>(offsetof(LineObjectCollection_t2817952665, ___source_16)); }
inline LineBase_t717918686 * get_source_16() const { return ___source_16; }
inline LineBase_t717918686 ** get_address_of_source_16() { return &___source_16; }
inline void set_source_16(LineBase_t717918686 * value)
{
___source_16 = value;
Il2CppCodeGenWriteBarrier((&___source_16), value);
}
inline static int32_t get_offset_of_transformHelper_17() { return static_cast<int32_t>(offsetof(LineObjectCollection_t2817952665, ___transformHelper_17)); }
inline Transform_t3600365921 * get_transformHelper_17() const { return ___transformHelper_17; }
inline Transform_t3600365921 ** get_address_of_transformHelper_17() { return &___transformHelper_17; }
inline void set_transformHelper_17(Transform_t3600365921 * value)
{
___transformHelper_17 = value;
Il2CppCodeGenWriteBarrier((&___transformHelper_17), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LINEOBJECTCOLLECTION_T2817952665_H
#ifndef KEYBOARDMANAGER_T1786564518_H
#define KEYBOARDMANAGER_T1786564518_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.KeyboardManager
struct KeyboardManager_t1786564518 : public Singleton_1_t2186788972
{
public:
// System.Collections.Generic.Dictionary`2<HoloToolkit.Unity.InputModule.KeyboardManager/KeyCodeEventPair,System.Collections.Generic.List`1<HoloToolkit.Unity.InputModule.KeyboardManager/KeyboardCallback>> HoloToolkit.Unity.InputModule.KeyboardManager::registeredCallbacks
Dictionary_2_t2319945507 * ___registeredCallbacks_4;
// System.Collections.Generic.List`1<HoloToolkit.Unity.InputModule.KeyboardManager/KeyCodeEventPair> HoloToolkit.Unity.InputModule.KeyboardManager::detectedKeyEvents
List_1_t2982180240 * ___detectedKeyEvents_5;
// System.Collections.Generic.List`1<HoloToolkit.Unity.InputModule.KeyboardManager/KeyCodeEventPair> HoloToolkit.Unity.InputModule.KeyboardManager::pendingKeyEvents
List_1_t2982180240 * ___pendingKeyEvents_6;
public:
inline static int32_t get_offset_of_registeredCallbacks_4() { return static_cast<int32_t>(offsetof(KeyboardManager_t1786564518, ___registeredCallbacks_4)); }
inline Dictionary_2_t2319945507 * get_registeredCallbacks_4() const { return ___registeredCallbacks_4; }
inline Dictionary_2_t2319945507 ** get_address_of_registeredCallbacks_4() { return &___registeredCallbacks_4; }
inline void set_registeredCallbacks_4(Dictionary_2_t2319945507 * value)
{
___registeredCallbacks_4 = value;
Il2CppCodeGenWriteBarrier((&___registeredCallbacks_4), value);
}
inline static int32_t get_offset_of_detectedKeyEvents_5() { return static_cast<int32_t>(offsetof(KeyboardManager_t1786564518, ___detectedKeyEvents_5)); }
inline List_1_t2982180240 * get_detectedKeyEvents_5() const { return ___detectedKeyEvents_5; }
inline List_1_t2982180240 ** get_address_of_detectedKeyEvents_5() { return &___detectedKeyEvents_5; }
inline void set_detectedKeyEvents_5(List_1_t2982180240 * value)
{
___detectedKeyEvents_5 = value;
Il2CppCodeGenWriteBarrier((&___detectedKeyEvents_5), value);
}
inline static int32_t get_offset_of_pendingKeyEvents_6() { return static_cast<int32_t>(offsetof(KeyboardManager_t1786564518, ___pendingKeyEvents_6)); }
inline List_1_t2982180240 * get_pendingKeyEvents_6() const { return ___pendingKeyEvents_6; }
inline List_1_t2982180240 ** get_address_of_pendingKeyEvents_6() { return &___pendingKeyEvents_6; }
inline void set_pendingKeyEvents_6(List_1_t2982180240 * value)
{
___pendingKeyEvents_6 = value;
Il2CppCodeGenWriteBarrier((&___pendingKeyEvents_6), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // KEYBOARDMANAGER_T1786564518_H
#ifndef LINE_T549989228_H
#define LINE_T549989228_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Design.Line
struct Line_t549989228 : public LineBase_t717918686
{
public:
// UnityEngine.Vector3 HoloToolkit.Unity.Design.Line::Start
Vector3_t3722313464 ___Start_16;
// UnityEngine.Vector3 HoloToolkit.Unity.Design.Line::End
Vector3_t3722313464 ___End_17;
public:
inline static int32_t get_offset_of_Start_16() { return static_cast<int32_t>(offsetof(Line_t549989228, ___Start_16)); }
inline Vector3_t3722313464 get_Start_16() const { return ___Start_16; }
inline Vector3_t3722313464 * get_address_of_Start_16() { return &___Start_16; }
inline void set_Start_16(Vector3_t3722313464 value)
{
___Start_16 = value;
}
inline static int32_t get_offset_of_End_17() { return static_cast<int32_t>(offsetof(Line_t549989228, ___End_17)); }
inline Vector3_t3722313464 get_End_17() const { return ___End_17; }
inline Vector3_t3722313464 * get_address_of_End_17() { return &___End_17; }
inline void set_End_17(Vector3_t3722313464 value)
{
___End_17 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LINE_T549989228_H
#ifndef CAMERAMOTIONINFO_T3171865163_H
#define CAMERAMOTIONINFO_T3171865163_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.CameraMotionInfo
struct CameraMotionInfo_t3171865163 : public Singleton_1_t3572089617
{
public:
// System.Single HoloToolkit.Unity.InputModule.CameraMotionInfo::headVelIdleThresh
float ___headVelIdleThresh_4;
// System.Single HoloToolkit.Unity.InputModule.CameraMotionInfo::headVelMoveThresh
float ___headVelMoveThresh_5;
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.CameraMotionInfo::headVelocity
Vector3_t3722313464 ___headVelocity_6;
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.CameraMotionInfo::lastHeadPos
Vector3_t3722313464 ___lastHeadPos_7;
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.CameraMotionInfo::newHeadMoveDirection
Vector3_t3722313464 ___newHeadMoveDirection_8;
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.CameraMotionInfo::headMoveDirection
Vector3_t3722313464 ___headMoveDirection_9;
// System.Boolean HoloToolkit.Unity.InputModule.CameraMotionInfo::debugDrawHeadVelocity
bool ___debugDrawHeadVelocity_10;
// System.Boolean HoloToolkit.Unity.InputModule.CameraMotionInfo::debugDrawHeadDirection
bool ___debugDrawHeadDirection_11;
public:
inline static int32_t get_offset_of_headVelIdleThresh_4() { return static_cast<int32_t>(offsetof(CameraMotionInfo_t3171865163, ___headVelIdleThresh_4)); }
inline float get_headVelIdleThresh_4() const { return ___headVelIdleThresh_4; }
inline float* get_address_of_headVelIdleThresh_4() { return &___headVelIdleThresh_4; }
inline void set_headVelIdleThresh_4(float value)
{
___headVelIdleThresh_4 = value;
}
inline static int32_t get_offset_of_headVelMoveThresh_5() { return static_cast<int32_t>(offsetof(CameraMotionInfo_t3171865163, ___headVelMoveThresh_5)); }
inline float get_headVelMoveThresh_5() const { return ___headVelMoveThresh_5; }
inline float* get_address_of_headVelMoveThresh_5() { return &___headVelMoveThresh_5; }
inline void set_headVelMoveThresh_5(float value)
{
___headVelMoveThresh_5 = value;
}
inline static int32_t get_offset_of_headVelocity_6() { return static_cast<int32_t>(offsetof(CameraMotionInfo_t3171865163, ___headVelocity_6)); }
inline Vector3_t3722313464 get_headVelocity_6() const { return ___headVelocity_6; }
inline Vector3_t3722313464 * get_address_of_headVelocity_6() { return &___headVelocity_6; }
inline void set_headVelocity_6(Vector3_t3722313464 value)
{
___headVelocity_6 = value;
}
inline static int32_t get_offset_of_lastHeadPos_7() { return static_cast<int32_t>(offsetof(CameraMotionInfo_t3171865163, ___lastHeadPos_7)); }
inline Vector3_t3722313464 get_lastHeadPos_7() const { return ___lastHeadPos_7; }
inline Vector3_t3722313464 * get_address_of_lastHeadPos_7() { return &___lastHeadPos_7; }
inline void set_lastHeadPos_7(Vector3_t3722313464 value)
{
___lastHeadPos_7 = value;
}
inline static int32_t get_offset_of_newHeadMoveDirection_8() { return static_cast<int32_t>(offsetof(CameraMotionInfo_t3171865163, ___newHeadMoveDirection_8)); }
inline Vector3_t3722313464 get_newHeadMoveDirection_8() const { return ___newHeadMoveDirection_8; }
inline Vector3_t3722313464 * get_address_of_newHeadMoveDirection_8() { return &___newHeadMoveDirection_8; }
inline void set_newHeadMoveDirection_8(Vector3_t3722313464 value)
{
___newHeadMoveDirection_8 = value;
}
inline static int32_t get_offset_of_headMoveDirection_9() { return static_cast<int32_t>(offsetof(CameraMotionInfo_t3171865163, ___headMoveDirection_9)); }
inline Vector3_t3722313464 get_headMoveDirection_9() const { return ___headMoveDirection_9; }
inline Vector3_t3722313464 * get_address_of_headMoveDirection_9() { return &___headMoveDirection_9; }
inline void set_headMoveDirection_9(Vector3_t3722313464 value)
{
___headMoveDirection_9 = value;
}
inline static int32_t get_offset_of_debugDrawHeadVelocity_10() { return static_cast<int32_t>(offsetof(CameraMotionInfo_t3171865163, ___debugDrawHeadVelocity_10)); }
inline bool get_debugDrawHeadVelocity_10() const { return ___debugDrawHeadVelocity_10; }
inline bool* get_address_of_debugDrawHeadVelocity_10() { return &___debugDrawHeadVelocity_10; }
inline void set_debugDrawHeadVelocity_10(bool value)
{
___debugDrawHeadVelocity_10 = value;
}
inline static int32_t get_offset_of_debugDrawHeadDirection_11() { return static_cast<int32_t>(offsetof(CameraMotionInfo_t3171865163, ___debugDrawHeadDirection_11)); }
inline bool get_debugDrawHeadDirection_11() const { return ___debugDrawHeadDirection_11; }
inline bool* get_address_of_debugDrawHeadDirection_11() { return &___debugDrawHeadDirection_11; }
inline void set_debugDrawHeadDirection_11(bool value)
{
___debugDrawHeadDirection_11 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CAMERAMOTIONINFO_T3171865163_H
#ifndef INPUTMANAGER_T3617695730_H
#define INPUTMANAGER_T3617695730_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.InputManager
struct InputManager_t3617695730 : public Singleton_1_t4017920184
{
public:
// System.Action HoloToolkit.Unity.InputModule.InputManager::InputEnabled
Action_t1264377477 * ___InputEnabled_4;
// System.Action HoloToolkit.Unity.InputModule.InputManager::InputDisabled
Action_t1264377477 * ___InputDisabled_5;
// System.Collections.Generic.List`1<UnityEngine.GameObject> HoloToolkit.Unity.InputModule.InputManager::globalListeners
List_1_t2585711361 * ___globalListeners_6;
// System.Collections.Generic.Stack`1<UnityEngine.GameObject> HoloToolkit.Unity.InputModule.InputManager::modalInputStack
Stack_1_t1957026074 * ___modalInputStack_7;
// System.Collections.Generic.Stack`1<UnityEngine.GameObject> HoloToolkit.Unity.InputModule.InputManager::fallbackInputStack
Stack_1_t1957026074 * ___fallbackInputStack_8;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.InputManager::<OverrideFocusedObject>k__BackingField
GameObject_t1113636619 * ___U3COverrideFocusedObjectU3Ek__BackingField_9;
// System.Int32 HoloToolkit.Unity.InputModule.InputManager::disabledRefCount
int32_t ___disabledRefCount_10;
// HoloToolkit.Unity.InputModule.InputEventData HoloToolkit.Unity.InputModule.InputManager::inputEventData
InputEventData_t3996134770 * ___inputEventData_11;
// HoloToolkit.Unity.InputModule.InputClickedEventData HoloToolkit.Unity.InputModule.InputManager::sourceClickedEventData
InputClickedEventData_t3368326714 * ___sourceClickedEventData_12;
// HoloToolkit.Unity.InputModule.SourceStateEventData HoloToolkit.Unity.InputModule.InputManager::sourceStateEventData
SourceStateEventData_t3750604077 * ___sourceStateEventData_13;
// HoloToolkit.Unity.InputModule.ManipulationEventData HoloToolkit.Unity.InputModule.InputManager::manipulationEventData
ManipulationEventData_t1724176917 * ___manipulationEventData_14;
// HoloToolkit.Unity.InputModule.HoldEventData HoloToolkit.Unity.InputModule.InputManager::holdEventData
HoldEventData_t2808772320 * ___holdEventData_15;
// HoloToolkit.Unity.InputModule.NavigationEventData HoloToolkit.Unity.InputModule.InputManager::navigationEventData
NavigationEventData_t1103822069 * ___navigationEventData_16;
// HoloToolkit.Unity.InputModule.XboxControllerEventData HoloToolkit.Unity.InputModule.InputManager::xboxControllerEventData
XboxControllerEventData_t3404349609 * ___xboxControllerEventData_17;
// HoloToolkit.Unity.InputModule.SourceRotationEventData HoloToolkit.Unity.InputModule.InputManager::sourceRotationEventData
SourceRotationEventData_t2243149014 * ___sourceRotationEventData_18;
// HoloToolkit.Unity.InputModule.SourcePositionEventData HoloToolkit.Unity.InputModule.InputManager::sourcePositionEventData
SourcePositionEventData_t1287754149 * ___sourcePositionEventData_19;
// HoloToolkit.Unity.InputModule.PointerSpecificEventData HoloToolkit.Unity.InputModule.InputManager::pointerSpecificEventData
PointerSpecificEventData_t445067974 * ___pointerSpecificEventData_20;
// HoloToolkit.Unity.InputModule.InputPositionEventData HoloToolkit.Unity.InputModule.InputManager::inputPositionEventData
InputPositionEventData_t4183404838 * ___inputPositionEventData_21;
// HoloToolkit.Unity.InputModule.SelectPressedEventData HoloToolkit.Unity.InputModule.InputManager::selectPressedEventData
SelectPressedEventData_t2954563278 * ___selectPressedEventData_22;
// HoloToolkit.Unity.InputModule.SpeechEventData HoloToolkit.Unity.InputModule.InputManager::speechEventData
SpeechEventData_t946934337 * ___speechEventData_23;
// HoloToolkit.Unity.InputModule.DictationEventData HoloToolkit.Unity.InputModule.InputManager::dictationEventData
DictationEventData_t3566040822 * ___dictationEventData_24;
public:
inline static int32_t get_offset_of_InputEnabled_4() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___InputEnabled_4)); }
inline Action_t1264377477 * get_InputEnabled_4() const { return ___InputEnabled_4; }
inline Action_t1264377477 ** get_address_of_InputEnabled_4() { return &___InputEnabled_4; }
inline void set_InputEnabled_4(Action_t1264377477 * value)
{
___InputEnabled_4 = value;
Il2CppCodeGenWriteBarrier((&___InputEnabled_4), value);
}
inline static int32_t get_offset_of_InputDisabled_5() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___InputDisabled_5)); }
inline Action_t1264377477 * get_InputDisabled_5() const { return ___InputDisabled_5; }
inline Action_t1264377477 ** get_address_of_InputDisabled_5() { return &___InputDisabled_5; }
inline void set_InputDisabled_5(Action_t1264377477 * value)
{
___InputDisabled_5 = value;
Il2CppCodeGenWriteBarrier((&___InputDisabled_5), value);
}
inline static int32_t get_offset_of_globalListeners_6() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___globalListeners_6)); }
inline List_1_t2585711361 * get_globalListeners_6() const { return ___globalListeners_6; }
inline List_1_t2585711361 ** get_address_of_globalListeners_6() { return &___globalListeners_6; }
inline void set_globalListeners_6(List_1_t2585711361 * value)
{
___globalListeners_6 = value;
Il2CppCodeGenWriteBarrier((&___globalListeners_6), value);
}
inline static int32_t get_offset_of_modalInputStack_7() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___modalInputStack_7)); }
inline Stack_1_t1957026074 * get_modalInputStack_7() const { return ___modalInputStack_7; }
inline Stack_1_t1957026074 ** get_address_of_modalInputStack_7() { return &___modalInputStack_7; }
inline void set_modalInputStack_7(Stack_1_t1957026074 * value)
{
___modalInputStack_7 = value;
Il2CppCodeGenWriteBarrier((&___modalInputStack_7), value);
}
inline static int32_t get_offset_of_fallbackInputStack_8() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___fallbackInputStack_8)); }
inline Stack_1_t1957026074 * get_fallbackInputStack_8() const { return ___fallbackInputStack_8; }
inline Stack_1_t1957026074 ** get_address_of_fallbackInputStack_8() { return &___fallbackInputStack_8; }
inline void set_fallbackInputStack_8(Stack_1_t1957026074 * value)
{
___fallbackInputStack_8 = value;
Il2CppCodeGenWriteBarrier((&___fallbackInputStack_8), value);
}
inline static int32_t get_offset_of_U3COverrideFocusedObjectU3Ek__BackingField_9() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___U3COverrideFocusedObjectU3Ek__BackingField_9)); }
inline GameObject_t1113636619 * get_U3COverrideFocusedObjectU3Ek__BackingField_9() const { return ___U3COverrideFocusedObjectU3Ek__BackingField_9; }
inline GameObject_t1113636619 ** get_address_of_U3COverrideFocusedObjectU3Ek__BackingField_9() { return &___U3COverrideFocusedObjectU3Ek__BackingField_9; }
inline void set_U3COverrideFocusedObjectU3Ek__BackingField_9(GameObject_t1113636619 * value)
{
___U3COverrideFocusedObjectU3Ek__BackingField_9 = value;
Il2CppCodeGenWriteBarrier((&___U3COverrideFocusedObjectU3Ek__BackingField_9), value);
}
inline static int32_t get_offset_of_disabledRefCount_10() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___disabledRefCount_10)); }
inline int32_t get_disabledRefCount_10() const { return ___disabledRefCount_10; }
inline int32_t* get_address_of_disabledRefCount_10() { return &___disabledRefCount_10; }
inline void set_disabledRefCount_10(int32_t value)
{
___disabledRefCount_10 = value;
}
inline static int32_t get_offset_of_inputEventData_11() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___inputEventData_11)); }
inline InputEventData_t3996134770 * get_inputEventData_11() const { return ___inputEventData_11; }
inline InputEventData_t3996134770 ** get_address_of_inputEventData_11() { return &___inputEventData_11; }
inline void set_inputEventData_11(InputEventData_t3996134770 * value)
{
___inputEventData_11 = value;
Il2CppCodeGenWriteBarrier((&___inputEventData_11), value);
}
inline static int32_t get_offset_of_sourceClickedEventData_12() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___sourceClickedEventData_12)); }
inline InputClickedEventData_t3368326714 * get_sourceClickedEventData_12() const { return ___sourceClickedEventData_12; }
inline InputClickedEventData_t3368326714 ** get_address_of_sourceClickedEventData_12() { return &___sourceClickedEventData_12; }
inline void set_sourceClickedEventData_12(InputClickedEventData_t3368326714 * value)
{
___sourceClickedEventData_12 = value;
Il2CppCodeGenWriteBarrier((&___sourceClickedEventData_12), value);
}
inline static int32_t get_offset_of_sourceStateEventData_13() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___sourceStateEventData_13)); }
inline SourceStateEventData_t3750604077 * get_sourceStateEventData_13() const { return ___sourceStateEventData_13; }
inline SourceStateEventData_t3750604077 ** get_address_of_sourceStateEventData_13() { return &___sourceStateEventData_13; }
inline void set_sourceStateEventData_13(SourceStateEventData_t3750604077 * value)
{
___sourceStateEventData_13 = value;
Il2CppCodeGenWriteBarrier((&___sourceStateEventData_13), value);
}
inline static int32_t get_offset_of_manipulationEventData_14() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___manipulationEventData_14)); }
inline ManipulationEventData_t1724176917 * get_manipulationEventData_14() const { return ___manipulationEventData_14; }
inline ManipulationEventData_t1724176917 ** get_address_of_manipulationEventData_14() { return &___manipulationEventData_14; }
inline void set_manipulationEventData_14(ManipulationEventData_t1724176917 * value)
{
___manipulationEventData_14 = value;
Il2CppCodeGenWriteBarrier((&___manipulationEventData_14), value);
}
inline static int32_t get_offset_of_holdEventData_15() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___holdEventData_15)); }
inline HoldEventData_t2808772320 * get_holdEventData_15() const { return ___holdEventData_15; }
inline HoldEventData_t2808772320 ** get_address_of_holdEventData_15() { return &___holdEventData_15; }
inline void set_holdEventData_15(HoldEventData_t2808772320 * value)
{
___holdEventData_15 = value;
Il2CppCodeGenWriteBarrier((&___holdEventData_15), value);
}
inline static int32_t get_offset_of_navigationEventData_16() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___navigationEventData_16)); }
inline NavigationEventData_t1103822069 * get_navigationEventData_16() const { return ___navigationEventData_16; }
inline NavigationEventData_t1103822069 ** get_address_of_navigationEventData_16() { return &___navigationEventData_16; }
inline void set_navigationEventData_16(NavigationEventData_t1103822069 * value)
{
___navigationEventData_16 = value;
Il2CppCodeGenWriteBarrier((&___navigationEventData_16), value);
}
inline static int32_t get_offset_of_xboxControllerEventData_17() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___xboxControllerEventData_17)); }
inline XboxControllerEventData_t3404349609 * get_xboxControllerEventData_17() const { return ___xboxControllerEventData_17; }
inline XboxControllerEventData_t3404349609 ** get_address_of_xboxControllerEventData_17() { return &___xboxControllerEventData_17; }
inline void set_xboxControllerEventData_17(XboxControllerEventData_t3404349609 * value)
{
___xboxControllerEventData_17 = value;
Il2CppCodeGenWriteBarrier((&___xboxControllerEventData_17), value);
}
inline static int32_t get_offset_of_sourceRotationEventData_18() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___sourceRotationEventData_18)); }
inline SourceRotationEventData_t2243149014 * get_sourceRotationEventData_18() const { return ___sourceRotationEventData_18; }
inline SourceRotationEventData_t2243149014 ** get_address_of_sourceRotationEventData_18() { return &___sourceRotationEventData_18; }
inline void set_sourceRotationEventData_18(SourceRotationEventData_t2243149014 * value)
{
___sourceRotationEventData_18 = value;
Il2CppCodeGenWriteBarrier((&___sourceRotationEventData_18), value);
}
inline static int32_t get_offset_of_sourcePositionEventData_19() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___sourcePositionEventData_19)); }
inline SourcePositionEventData_t1287754149 * get_sourcePositionEventData_19() const { return ___sourcePositionEventData_19; }
inline SourcePositionEventData_t1287754149 ** get_address_of_sourcePositionEventData_19() { return &___sourcePositionEventData_19; }
inline void set_sourcePositionEventData_19(SourcePositionEventData_t1287754149 * value)
{
___sourcePositionEventData_19 = value;
Il2CppCodeGenWriteBarrier((&___sourcePositionEventData_19), value);
}
inline static int32_t get_offset_of_pointerSpecificEventData_20() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___pointerSpecificEventData_20)); }
inline PointerSpecificEventData_t445067974 * get_pointerSpecificEventData_20() const { return ___pointerSpecificEventData_20; }
inline PointerSpecificEventData_t445067974 ** get_address_of_pointerSpecificEventData_20() { return &___pointerSpecificEventData_20; }
inline void set_pointerSpecificEventData_20(PointerSpecificEventData_t445067974 * value)
{
___pointerSpecificEventData_20 = value;
Il2CppCodeGenWriteBarrier((&___pointerSpecificEventData_20), value);
}
inline static int32_t get_offset_of_inputPositionEventData_21() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___inputPositionEventData_21)); }
inline InputPositionEventData_t4183404838 * get_inputPositionEventData_21() const { return ___inputPositionEventData_21; }
inline InputPositionEventData_t4183404838 ** get_address_of_inputPositionEventData_21() { return &___inputPositionEventData_21; }
inline void set_inputPositionEventData_21(InputPositionEventData_t4183404838 * value)
{
___inputPositionEventData_21 = value;
Il2CppCodeGenWriteBarrier((&___inputPositionEventData_21), value);
}
inline static int32_t get_offset_of_selectPressedEventData_22() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___selectPressedEventData_22)); }
inline SelectPressedEventData_t2954563278 * get_selectPressedEventData_22() const { return ___selectPressedEventData_22; }
inline SelectPressedEventData_t2954563278 ** get_address_of_selectPressedEventData_22() { return &___selectPressedEventData_22; }
inline void set_selectPressedEventData_22(SelectPressedEventData_t2954563278 * value)
{
___selectPressedEventData_22 = value;
Il2CppCodeGenWriteBarrier((&___selectPressedEventData_22), value);
}
inline static int32_t get_offset_of_speechEventData_23() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___speechEventData_23)); }
inline SpeechEventData_t946934337 * get_speechEventData_23() const { return ___speechEventData_23; }
inline SpeechEventData_t946934337 ** get_address_of_speechEventData_23() { return &___speechEventData_23; }
inline void set_speechEventData_23(SpeechEventData_t946934337 * value)
{
___speechEventData_23 = value;
Il2CppCodeGenWriteBarrier((&___speechEventData_23), value);
}
inline static int32_t get_offset_of_dictationEventData_24() { return static_cast<int32_t>(offsetof(InputManager_t3617695730, ___dictationEventData_24)); }
inline DictationEventData_t3566040822 * get_dictationEventData_24() const { return ___dictationEventData_24; }
inline DictationEventData_t3566040822 ** get_address_of_dictationEventData_24() { return &___dictationEventData_24; }
inline void set_dictationEventData_24(DictationEventData_t3566040822 * value)
{
___dictationEventData_24 = value;
Il2CppCodeGenWriteBarrier((&___dictationEventData_24), value);
}
};
struct InputManager_t3617695730_StaticFields
{
public:
// System.Collections.Generic.List`1<HoloToolkit.Unity.InputModule.InputSourceInfo> HoloToolkit.Unity.InputModule.InputManager::detectedInputSources
List_1_t1572102484 * ___detectedInputSources_25;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IFocusable> HoloToolkit.Unity.InputModule.InputManager::OnFocusEnterEventHandler
EventFunction_1_t2257986067 * ___OnFocusEnterEventHandler_26;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IFocusable> HoloToolkit.Unity.InputModule.InputManager::OnFocusExitEventHandler
EventFunction_1_t2257986067 * ___OnFocusExitEventHandler_27;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IPointerSpecificFocusable> HoloToolkit.Unity.InputModule.InputManager::OnPointerSpecificFocusEnterEventHandler
EventFunction_1_t1202395962 * ___OnPointerSpecificFocusEnterEventHandler_28;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IPointerSpecificFocusable> HoloToolkit.Unity.InputModule.InputManager::OnPointerSpecificFocusExitEventHandler
EventFunction_1_t1202395962 * ___OnPointerSpecificFocusExitEventHandler_29;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IInputClickHandler> HoloToolkit.Unity.InputModule.InputManager::OnInputClickedEventHandler
EventFunction_1_t1175758545 * ___OnInputClickedEventHandler_30;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IInputHandler> HoloToolkit.Unity.InputModule.InputManager::OnSourceUpEventHandler
EventFunction_1_t3456743768 * ___OnSourceUpEventHandler_31;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IInputHandler> HoloToolkit.Unity.InputModule.InputManager::OnSourceDownEventHandler
EventFunction_1_t3456743768 * ___OnSourceDownEventHandler_32;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.ISourceStateHandler> HoloToolkit.Unity.InputModule.InputManager::OnSourceDetectedEventHandler
EventFunction_1_t3043039316 * ___OnSourceDetectedEventHandler_33;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.ISourceStateHandler> HoloToolkit.Unity.InputModule.InputManager::OnSourceLostEventHandler
EventFunction_1_t3043039316 * ___OnSourceLostEventHandler_34;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IManipulationHandler> HoloToolkit.Unity.InputModule.InputManager::OnManipulationStartedEventHandler
EventFunction_1_t3658316792 * ___OnManipulationStartedEventHandler_35;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IManipulationHandler> HoloToolkit.Unity.InputModule.InputManager::OnManipulationUpdatedEventHandler
EventFunction_1_t3658316792 * ___OnManipulationUpdatedEventHandler_36;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IManipulationHandler> HoloToolkit.Unity.InputModule.InputManager::OnManipulationCompletedEventHandler
EventFunction_1_t3658316792 * ___OnManipulationCompletedEventHandler_37;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IManipulationHandler> HoloToolkit.Unity.InputModule.InputManager::OnManipulationCanceledEventHandler
EventFunction_1_t3658316792 * ___OnManipulationCanceledEventHandler_38;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IHoldHandler> HoloToolkit.Unity.InputModule.InputManager::OnHoldStartedEventHandler
EventFunction_1_t1263002383 * ___OnHoldStartedEventHandler_39;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IHoldHandler> HoloToolkit.Unity.InputModule.InputManager::OnHoldCompletedEventHandler
EventFunction_1_t1263002383 * ___OnHoldCompletedEventHandler_40;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IHoldHandler> HoloToolkit.Unity.InputModule.InputManager::OnHoldCanceledEventHandler
EventFunction_1_t1263002383 * ___OnHoldCanceledEventHandler_41;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.INavigationHandler> HoloToolkit.Unity.InputModule.InputManager::OnNavigationStartedEventHandler
EventFunction_1_t2774965001 * ___OnNavigationStartedEventHandler_42;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.INavigationHandler> HoloToolkit.Unity.InputModule.InputManager::OnNavigationUpdatedEventHandler
EventFunction_1_t2774965001 * ___OnNavigationUpdatedEventHandler_43;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.INavigationHandler> HoloToolkit.Unity.InputModule.InputManager::OnNavigationCompletedEventHandler
EventFunction_1_t2774965001 * ___OnNavigationCompletedEventHandler_44;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.INavigationHandler> HoloToolkit.Unity.InputModule.InputManager::OnNavigationCanceledEventHandler
EventFunction_1_t2774965001 * ___OnNavigationCanceledEventHandler_45;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IControllerInputHandler> HoloToolkit.Unity.InputModule.InputManager::OnInputPositionChangedEventHandler
EventFunction_1_t784226213 * ___OnInputPositionChangedEventHandler_46;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.ISelectHandler> HoloToolkit.Unity.InputModule.InputManager::OnSelectPressedAmountChangedEventHandler
EventFunction_1_t3018044437 * ___OnSelectPressedAmountChangedEventHandler_47;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IControllerTouchpadHandler> HoloToolkit.Unity.InputModule.InputManager::OnTouchpadTouchedEventHandler
EventFunction_1_t1090539697 * ___OnTouchpadTouchedEventHandler_48;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IControllerTouchpadHandler> HoloToolkit.Unity.InputModule.InputManager::OnTouchpadReleasedEventHandler
EventFunction_1_t1090539697 * ___OnTouchpadReleasedEventHandler_49;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.ISourcePositionHandler> HoloToolkit.Unity.InputModule.InputManager::OnSourcePositionChangedEventHandler
EventFunction_1_t3430434273 * ___OnSourcePositionChangedEventHandler_50;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.ISourceRotationHandler> HoloToolkit.Unity.InputModule.InputManager::OnSourceRotationChangedEventHandler
EventFunction_1_t3307331999 * ___OnSourceRotationChangedEventHandler_51;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IXboxControllerHandler> HoloToolkit.Unity.InputModule.InputManager::OnXboxInputUpdateHandler
EventFunction_1_t1261869176 * ___OnXboxInputUpdateHandler_52;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.ISpeechHandler> HoloToolkit.Unity.InputModule.InputManager::OnSpeechKeywordRecognizedEventHandler
EventFunction_1_t2543650756 * ___OnSpeechKeywordRecognizedEventHandler_53;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IDictationHandler> HoloToolkit.Unity.InputModule.InputManager::OnDictationHypothesisEventHandler
EventFunction_1_t4076589726 * ___OnDictationHypothesisEventHandler_54;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IDictationHandler> HoloToolkit.Unity.InputModule.InputManager::OnDictationResultEventHandler
EventFunction_1_t4076589726 * ___OnDictationResultEventHandler_55;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IDictationHandler> HoloToolkit.Unity.InputModule.InputManager::OnDictationCompleteEventHandler
EventFunction_1_t4076589726 * ___OnDictationCompleteEventHandler_56;
// UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<HoloToolkit.Unity.InputModule.IDictationHandler> HoloToolkit.Unity.InputModule.InputManager::OnDictationErrorEventHandler
EventFunction_1_t4076589726 * ___OnDictationErrorEventHandler_57;
public:
inline static int32_t get_offset_of_detectedInputSources_25() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___detectedInputSources_25)); }
inline List_1_t1572102484 * get_detectedInputSources_25() const { return ___detectedInputSources_25; }
inline List_1_t1572102484 ** get_address_of_detectedInputSources_25() { return &___detectedInputSources_25; }
inline void set_detectedInputSources_25(List_1_t1572102484 * value)
{
___detectedInputSources_25 = value;
Il2CppCodeGenWriteBarrier((&___detectedInputSources_25), value);
}
inline static int32_t get_offset_of_OnFocusEnterEventHandler_26() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnFocusEnterEventHandler_26)); }
inline EventFunction_1_t2257986067 * get_OnFocusEnterEventHandler_26() const { return ___OnFocusEnterEventHandler_26; }
inline EventFunction_1_t2257986067 ** get_address_of_OnFocusEnterEventHandler_26() { return &___OnFocusEnterEventHandler_26; }
inline void set_OnFocusEnterEventHandler_26(EventFunction_1_t2257986067 * value)
{
___OnFocusEnterEventHandler_26 = value;
Il2CppCodeGenWriteBarrier((&___OnFocusEnterEventHandler_26), value);
}
inline static int32_t get_offset_of_OnFocusExitEventHandler_27() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnFocusExitEventHandler_27)); }
inline EventFunction_1_t2257986067 * get_OnFocusExitEventHandler_27() const { return ___OnFocusExitEventHandler_27; }
inline EventFunction_1_t2257986067 ** get_address_of_OnFocusExitEventHandler_27() { return &___OnFocusExitEventHandler_27; }
inline void set_OnFocusExitEventHandler_27(EventFunction_1_t2257986067 * value)
{
___OnFocusExitEventHandler_27 = value;
Il2CppCodeGenWriteBarrier((&___OnFocusExitEventHandler_27), value);
}
inline static int32_t get_offset_of_OnPointerSpecificFocusEnterEventHandler_28() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnPointerSpecificFocusEnterEventHandler_28)); }
inline EventFunction_1_t1202395962 * get_OnPointerSpecificFocusEnterEventHandler_28() const { return ___OnPointerSpecificFocusEnterEventHandler_28; }
inline EventFunction_1_t1202395962 ** get_address_of_OnPointerSpecificFocusEnterEventHandler_28() { return &___OnPointerSpecificFocusEnterEventHandler_28; }
inline void set_OnPointerSpecificFocusEnterEventHandler_28(EventFunction_1_t1202395962 * value)
{
___OnPointerSpecificFocusEnterEventHandler_28 = value;
Il2CppCodeGenWriteBarrier((&___OnPointerSpecificFocusEnterEventHandler_28), value);
}
inline static int32_t get_offset_of_OnPointerSpecificFocusExitEventHandler_29() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnPointerSpecificFocusExitEventHandler_29)); }
inline EventFunction_1_t1202395962 * get_OnPointerSpecificFocusExitEventHandler_29() const { return ___OnPointerSpecificFocusExitEventHandler_29; }
inline EventFunction_1_t1202395962 ** get_address_of_OnPointerSpecificFocusExitEventHandler_29() { return &___OnPointerSpecificFocusExitEventHandler_29; }
inline void set_OnPointerSpecificFocusExitEventHandler_29(EventFunction_1_t1202395962 * value)
{
___OnPointerSpecificFocusExitEventHandler_29 = value;
Il2CppCodeGenWriteBarrier((&___OnPointerSpecificFocusExitEventHandler_29), value);
}
inline static int32_t get_offset_of_OnInputClickedEventHandler_30() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnInputClickedEventHandler_30)); }
inline EventFunction_1_t1175758545 * get_OnInputClickedEventHandler_30() const { return ___OnInputClickedEventHandler_30; }
inline EventFunction_1_t1175758545 ** get_address_of_OnInputClickedEventHandler_30() { return &___OnInputClickedEventHandler_30; }
inline void set_OnInputClickedEventHandler_30(EventFunction_1_t1175758545 * value)
{
___OnInputClickedEventHandler_30 = value;
Il2CppCodeGenWriteBarrier((&___OnInputClickedEventHandler_30), value);
}
inline static int32_t get_offset_of_OnSourceUpEventHandler_31() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnSourceUpEventHandler_31)); }
inline EventFunction_1_t3456743768 * get_OnSourceUpEventHandler_31() const { return ___OnSourceUpEventHandler_31; }
inline EventFunction_1_t3456743768 ** get_address_of_OnSourceUpEventHandler_31() { return &___OnSourceUpEventHandler_31; }
inline void set_OnSourceUpEventHandler_31(EventFunction_1_t3456743768 * value)
{
___OnSourceUpEventHandler_31 = value;
Il2CppCodeGenWriteBarrier((&___OnSourceUpEventHandler_31), value);
}
inline static int32_t get_offset_of_OnSourceDownEventHandler_32() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnSourceDownEventHandler_32)); }
inline EventFunction_1_t3456743768 * get_OnSourceDownEventHandler_32() const { return ___OnSourceDownEventHandler_32; }
inline EventFunction_1_t3456743768 ** get_address_of_OnSourceDownEventHandler_32() { return &___OnSourceDownEventHandler_32; }
inline void set_OnSourceDownEventHandler_32(EventFunction_1_t3456743768 * value)
{
___OnSourceDownEventHandler_32 = value;
Il2CppCodeGenWriteBarrier((&___OnSourceDownEventHandler_32), value);
}
inline static int32_t get_offset_of_OnSourceDetectedEventHandler_33() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnSourceDetectedEventHandler_33)); }
inline EventFunction_1_t3043039316 * get_OnSourceDetectedEventHandler_33() const { return ___OnSourceDetectedEventHandler_33; }
inline EventFunction_1_t3043039316 ** get_address_of_OnSourceDetectedEventHandler_33() { return &___OnSourceDetectedEventHandler_33; }
inline void set_OnSourceDetectedEventHandler_33(EventFunction_1_t3043039316 * value)
{
___OnSourceDetectedEventHandler_33 = value;
Il2CppCodeGenWriteBarrier((&___OnSourceDetectedEventHandler_33), value);
}
inline static int32_t get_offset_of_OnSourceLostEventHandler_34() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnSourceLostEventHandler_34)); }
inline EventFunction_1_t3043039316 * get_OnSourceLostEventHandler_34() const { return ___OnSourceLostEventHandler_34; }
inline EventFunction_1_t3043039316 ** get_address_of_OnSourceLostEventHandler_34() { return &___OnSourceLostEventHandler_34; }
inline void set_OnSourceLostEventHandler_34(EventFunction_1_t3043039316 * value)
{
___OnSourceLostEventHandler_34 = value;
Il2CppCodeGenWriteBarrier((&___OnSourceLostEventHandler_34), value);
}
inline static int32_t get_offset_of_OnManipulationStartedEventHandler_35() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnManipulationStartedEventHandler_35)); }
inline EventFunction_1_t3658316792 * get_OnManipulationStartedEventHandler_35() const { return ___OnManipulationStartedEventHandler_35; }
inline EventFunction_1_t3658316792 ** get_address_of_OnManipulationStartedEventHandler_35() { return &___OnManipulationStartedEventHandler_35; }
inline void set_OnManipulationStartedEventHandler_35(EventFunction_1_t3658316792 * value)
{
___OnManipulationStartedEventHandler_35 = value;
Il2CppCodeGenWriteBarrier((&___OnManipulationStartedEventHandler_35), value);
}
inline static int32_t get_offset_of_OnManipulationUpdatedEventHandler_36() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnManipulationUpdatedEventHandler_36)); }
inline EventFunction_1_t3658316792 * get_OnManipulationUpdatedEventHandler_36() const { return ___OnManipulationUpdatedEventHandler_36; }
inline EventFunction_1_t3658316792 ** get_address_of_OnManipulationUpdatedEventHandler_36() { return &___OnManipulationUpdatedEventHandler_36; }
inline void set_OnManipulationUpdatedEventHandler_36(EventFunction_1_t3658316792 * value)
{
___OnManipulationUpdatedEventHandler_36 = value;
Il2CppCodeGenWriteBarrier((&___OnManipulationUpdatedEventHandler_36), value);
}
inline static int32_t get_offset_of_OnManipulationCompletedEventHandler_37() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnManipulationCompletedEventHandler_37)); }
inline EventFunction_1_t3658316792 * get_OnManipulationCompletedEventHandler_37() const { return ___OnManipulationCompletedEventHandler_37; }
inline EventFunction_1_t3658316792 ** get_address_of_OnManipulationCompletedEventHandler_37() { return &___OnManipulationCompletedEventHandler_37; }
inline void set_OnManipulationCompletedEventHandler_37(EventFunction_1_t3658316792 * value)
{
___OnManipulationCompletedEventHandler_37 = value;
Il2CppCodeGenWriteBarrier((&___OnManipulationCompletedEventHandler_37), value);
}
inline static int32_t get_offset_of_OnManipulationCanceledEventHandler_38() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnManipulationCanceledEventHandler_38)); }
inline EventFunction_1_t3658316792 * get_OnManipulationCanceledEventHandler_38() const { return ___OnManipulationCanceledEventHandler_38; }
inline EventFunction_1_t3658316792 ** get_address_of_OnManipulationCanceledEventHandler_38() { return &___OnManipulationCanceledEventHandler_38; }
inline void set_OnManipulationCanceledEventHandler_38(EventFunction_1_t3658316792 * value)
{
___OnManipulationCanceledEventHandler_38 = value;
Il2CppCodeGenWriteBarrier((&___OnManipulationCanceledEventHandler_38), value);
}
inline static int32_t get_offset_of_OnHoldStartedEventHandler_39() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnHoldStartedEventHandler_39)); }
inline EventFunction_1_t1263002383 * get_OnHoldStartedEventHandler_39() const { return ___OnHoldStartedEventHandler_39; }
inline EventFunction_1_t1263002383 ** get_address_of_OnHoldStartedEventHandler_39() { return &___OnHoldStartedEventHandler_39; }
inline void set_OnHoldStartedEventHandler_39(EventFunction_1_t1263002383 * value)
{
___OnHoldStartedEventHandler_39 = value;
Il2CppCodeGenWriteBarrier((&___OnHoldStartedEventHandler_39), value);
}
inline static int32_t get_offset_of_OnHoldCompletedEventHandler_40() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnHoldCompletedEventHandler_40)); }
inline EventFunction_1_t1263002383 * get_OnHoldCompletedEventHandler_40() const { return ___OnHoldCompletedEventHandler_40; }
inline EventFunction_1_t1263002383 ** get_address_of_OnHoldCompletedEventHandler_40() { return &___OnHoldCompletedEventHandler_40; }
inline void set_OnHoldCompletedEventHandler_40(EventFunction_1_t1263002383 * value)
{
___OnHoldCompletedEventHandler_40 = value;
Il2CppCodeGenWriteBarrier((&___OnHoldCompletedEventHandler_40), value);
}
inline static int32_t get_offset_of_OnHoldCanceledEventHandler_41() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnHoldCanceledEventHandler_41)); }
inline EventFunction_1_t1263002383 * get_OnHoldCanceledEventHandler_41() const { return ___OnHoldCanceledEventHandler_41; }
inline EventFunction_1_t1263002383 ** get_address_of_OnHoldCanceledEventHandler_41() { return &___OnHoldCanceledEventHandler_41; }
inline void set_OnHoldCanceledEventHandler_41(EventFunction_1_t1263002383 * value)
{
___OnHoldCanceledEventHandler_41 = value;
Il2CppCodeGenWriteBarrier((&___OnHoldCanceledEventHandler_41), value);
}
inline static int32_t get_offset_of_OnNavigationStartedEventHandler_42() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnNavigationStartedEventHandler_42)); }
inline EventFunction_1_t2774965001 * get_OnNavigationStartedEventHandler_42() const { return ___OnNavigationStartedEventHandler_42; }
inline EventFunction_1_t2774965001 ** get_address_of_OnNavigationStartedEventHandler_42() { return &___OnNavigationStartedEventHandler_42; }
inline void set_OnNavigationStartedEventHandler_42(EventFunction_1_t2774965001 * value)
{
___OnNavigationStartedEventHandler_42 = value;
Il2CppCodeGenWriteBarrier((&___OnNavigationStartedEventHandler_42), value);
}
inline static int32_t get_offset_of_OnNavigationUpdatedEventHandler_43() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnNavigationUpdatedEventHandler_43)); }
inline EventFunction_1_t2774965001 * get_OnNavigationUpdatedEventHandler_43() const { return ___OnNavigationUpdatedEventHandler_43; }
inline EventFunction_1_t2774965001 ** get_address_of_OnNavigationUpdatedEventHandler_43() { return &___OnNavigationUpdatedEventHandler_43; }
inline void set_OnNavigationUpdatedEventHandler_43(EventFunction_1_t2774965001 * value)
{
___OnNavigationUpdatedEventHandler_43 = value;
Il2CppCodeGenWriteBarrier((&___OnNavigationUpdatedEventHandler_43), value);
}
inline static int32_t get_offset_of_OnNavigationCompletedEventHandler_44() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnNavigationCompletedEventHandler_44)); }
inline EventFunction_1_t2774965001 * get_OnNavigationCompletedEventHandler_44() const { return ___OnNavigationCompletedEventHandler_44; }
inline EventFunction_1_t2774965001 ** get_address_of_OnNavigationCompletedEventHandler_44() { return &___OnNavigationCompletedEventHandler_44; }
inline void set_OnNavigationCompletedEventHandler_44(EventFunction_1_t2774965001 * value)
{
___OnNavigationCompletedEventHandler_44 = value;
Il2CppCodeGenWriteBarrier((&___OnNavigationCompletedEventHandler_44), value);
}
inline static int32_t get_offset_of_OnNavigationCanceledEventHandler_45() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnNavigationCanceledEventHandler_45)); }
inline EventFunction_1_t2774965001 * get_OnNavigationCanceledEventHandler_45() const { return ___OnNavigationCanceledEventHandler_45; }
inline EventFunction_1_t2774965001 ** get_address_of_OnNavigationCanceledEventHandler_45() { return &___OnNavigationCanceledEventHandler_45; }
inline void set_OnNavigationCanceledEventHandler_45(EventFunction_1_t2774965001 * value)
{
___OnNavigationCanceledEventHandler_45 = value;
Il2CppCodeGenWriteBarrier((&___OnNavigationCanceledEventHandler_45), value);
}
inline static int32_t get_offset_of_OnInputPositionChangedEventHandler_46() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnInputPositionChangedEventHandler_46)); }
inline EventFunction_1_t784226213 * get_OnInputPositionChangedEventHandler_46() const { return ___OnInputPositionChangedEventHandler_46; }
inline EventFunction_1_t784226213 ** get_address_of_OnInputPositionChangedEventHandler_46() { return &___OnInputPositionChangedEventHandler_46; }
inline void set_OnInputPositionChangedEventHandler_46(EventFunction_1_t784226213 * value)
{
___OnInputPositionChangedEventHandler_46 = value;
Il2CppCodeGenWriteBarrier((&___OnInputPositionChangedEventHandler_46), value);
}
inline static int32_t get_offset_of_OnSelectPressedAmountChangedEventHandler_47() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnSelectPressedAmountChangedEventHandler_47)); }
inline EventFunction_1_t3018044437 * get_OnSelectPressedAmountChangedEventHandler_47() const { return ___OnSelectPressedAmountChangedEventHandler_47; }
inline EventFunction_1_t3018044437 ** get_address_of_OnSelectPressedAmountChangedEventHandler_47() { return &___OnSelectPressedAmountChangedEventHandler_47; }
inline void set_OnSelectPressedAmountChangedEventHandler_47(EventFunction_1_t3018044437 * value)
{
___OnSelectPressedAmountChangedEventHandler_47 = value;
Il2CppCodeGenWriteBarrier((&___OnSelectPressedAmountChangedEventHandler_47), value);
}
inline static int32_t get_offset_of_OnTouchpadTouchedEventHandler_48() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnTouchpadTouchedEventHandler_48)); }
inline EventFunction_1_t1090539697 * get_OnTouchpadTouchedEventHandler_48() const { return ___OnTouchpadTouchedEventHandler_48; }
inline EventFunction_1_t1090539697 ** get_address_of_OnTouchpadTouchedEventHandler_48() { return &___OnTouchpadTouchedEventHandler_48; }
inline void set_OnTouchpadTouchedEventHandler_48(EventFunction_1_t1090539697 * value)
{
___OnTouchpadTouchedEventHandler_48 = value;
Il2CppCodeGenWriteBarrier((&___OnTouchpadTouchedEventHandler_48), value);
}
inline static int32_t get_offset_of_OnTouchpadReleasedEventHandler_49() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnTouchpadReleasedEventHandler_49)); }
inline EventFunction_1_t1090539697 * get_OnTouchpadReleasedEventHandler_49() const { return ___OnTouchpadReleasedEventHandler_49; }
inline EventFunction_1_t1090539697 ** get_address_of_OnTouchpadReleasedEventHandler_49() { return &___OnTouchpadReleasedEventHandler_49; }
inline void set_OnTouchpadReleasedEventHandler_49(EventFunction_1_t1090539697 * value)
{
___OnTouchpadReleasedEventHandler_49 = value;
Il2CppCodeGenWriteBarrier((&___OnTouchpadReleasedEventHandler_49), value);
}
inline static int32_t get_offset_of_OnSourcePositionChangedEventHandler_50() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnSourcePositionChangedEventHandler_50)); }
inline EventFunction_1_t3430434273 * get_OnSourcePositionChangedEventHandler_50() const { return ___OnSourcePositionChangedEventHandler_50; }
inline EventFunction_1_t3430434273 ** get_address_of_OnSourcePositionChangedEventHandler_50() { return &___OnSourcePositionChangedEventHandler_50; }
inline void set_OnSourcePositionChangedEventHandler_50(EventFunction_1_t3430434273 * value)
{
___OnSourcePositionChangedEventHandler_50 = value;
Il2CppCodeGenWriteBarrier((&___OnSourcePositionChangedEventHandler_50), value);
}
inline static int32_t get_offset_of_OnSourceRotationChangedEventHandler_51() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnSourceRotationChangedEventHandler_51)); }
inline EventFunction_1_t3307331999 * get_OnSourceRotationChangedEventHandler_51() const { return ___OnSourceRotationChangedEventHandler_51; }
inline EventFunction_1_t3307331999 ** get_address_of_OnSourceRotationChangedEventHandler_51() { return &___OnSourceRotationChangedEventHandler_51; }
inline void set_OnSourceRotationChangedEventHandler_51(EventFunction_1_t3307331999 * value)
{
___OnSourceRotationChangedEventHandler_51 = value;
Il2CppCodeGenWriteBarrier((&___OnSourceRotationChangedEventHandler_51), value);
}
inline static int32_t get_offset_of_OnXboxInputUpdateHandler_52() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnXboxInputUpdateHandler_52)); }
inline EventFunction_1_t1261869176 * get_OnXboxInputUpdateHandler_52() const { return ___OnXboxInputUpdateHandler_52; }
inline EventFunction_1_t1261869176 ** get_address_of_OnXboxInputUpdateHandler_52() { return &___OnXboxInputUpdateHandler_52; }
inline void set_OnXboxInputUpdateHandler_52(EventFunction_1_t1261869176 * value)
{
___OnXboxInputUpdateHandler_52 = value;
Il2CppCodeGenWriteBarrier((&___OnXboxInputUpdateHandler_52), value);
}
inline static int32_t get_offset_of_OnSpeechKeywordRecognizedEventHandler_53() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnSpeechKeywordRecognizedEventHandler_53)); }
inline EventFunction_1_t2543650756 * get_OnSpeechKeywordRecognizedEventHandler_53() const { return ___OnSpeechKeywordRecognizedEventHandler_53; }
inline EventFunction_1_t2543650756 ** get_address_of_OnSpeechKeywordRecognizedEventHandler_53() { return &___OnSpeechKeywordRecognizedEventHandler_53; }
inline void set_OnSpeechKeywordRecognizedEventHandler_53(EventFunction_1_t2543650756 * value)
{
___OnSpeechKeywordRecognizedEventHandler_53 = value;
Il2CppCodeGenWriteBarrier((&___OnSpeechKeywordRecognizedEventHandler_53), value);
}
inline static int32_t get_offset_of_OnDictationHypothesisEventHandler_54() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnDictationHypothesisEventHandler_54)); }
inline EventFunction_1_t4076589726 * get_OnDictationHypothesisEventHandler_54() const { return ___OnDictationHypothesisEventHandler_54; }
inline EventFunction_1_t4076589726 ** get_address_of_OnDictationHypothesisEventHandler_54() { return &___OnDictationHypothesisEventHandler_54; }
inline void set_OnDictationHypothesisEventHandler_54(EventFunction_1_t4076589726 * value)
{
___OnDictationHypothesisEventHandler_54 = value;
Il2CppCodeGenWriteBarrier((&___OnDictationHypothesisEventHandler_54), value);
}
inline static int32_t get_offset_of_OnDictationResultEventHandler_55() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnDictationResultEventHandler_55)); }
inline EventFunction_1_t4076589726 * get_OnDictationResultEventHandler_55() const { return ___OnDictationResultEventHandler_55; }
inline EventFunction_1_t4076589726 ** get_address_of_OnDictationResultEventHandler_55() { return &___OnDictationResultEventHandler_55; }
inline void set_OnDictationResultEventHandler_55(EventFunction_1_t4076589726 * value)
{
___OnDictationResultEventHandler_55 = value;
Il2CppCodeGenWriteBarrier((&___OnDictationResultEventHandler_55), value);
}
inline static int32_t get_offset_of_OnDictationCompleteEventHandler_56() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnDictationCompleteEventHandler_56)); }
inline EventFunction_1_t4076589726 * get_OnDictationCompleteEventHandler_56() const { return ___OnDictationCompleteEventHandler_56; }
inline EventFunction_1_t4076589726 ** get_address_of_OnDictationCompleteEventHandler_56() { return &___OnDictationCompleteEventHandler_56; }
inline void set_OnDictationCompleteEventHandler_56(EventFunction_1_t4076589726 * value)
{
___OnDictationCompleteEventHandler_56 = value;
Il2CppCodeGenWriteBarrier((&___OnDictationCompleteEventHandler_56), value);
}
inline static int32_t get_offset_of_OnDictationErrorEventHandler_57() { return static_cast<int32_t>(offsetof(InputManager_t3617695730_StaticFields, ___OnDictationErrorEventHandler_57)); }
inline EventFunction_1_t4076589726 * get_OnDictationErrorEventHandler_57() const { return ___OnDictationErrorEventHandler_57; }
inline EventFunction_1_t4076589726 ** get_address_of_OnDictationErrorEventHandler_57() { return &___OnDictationErrorEventHandler_57; }
inline void set_OnDictationErrorEventHandler_57(EventFunction_1_t4076589726 * value)
{
___OnDictationErrorEventHandler_57 = value;
Il2CppCodeGenWriteBarrier((&___OnDictationErrorEventHandler_57), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INPUTMANAGER_T3617695730_H
#ifndef LINEUNITY_T4238357500_H
#define LINEUNITY_T4238357500_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Design.LineUnity
struct LineUnity_t4238357500 : public LineRenderer_t3025162641
{
public:
// UnityEngine.Material HoloToolkit.Unity.Design.LineUnity::LineMaterial
Material_t340375123 * ___LineMaterial_18;
// System.Boolean HoloToolkit.Unity.Design.LineUnity::RoundedEdges
bool ___RoundedEdges_19;
// System.Boolean HoloToolkit.Unity.Design.LineUnity::RoundedCaps
bool ___RoundedCaps_20;
// UnityEngine.LineRenderer HoloToolkit.Unity.Design.LineUnity::lineRenderer
LineRenderer_t3154350270 * ___lineRenderer_21;
// UnityEngine.Vector3[] HoloToolkit.Unity.Design.LineUnity::positions
Vector3U5BU5D_t1718750761* ___positions_22;
public:
inline static int32_t get_offset_of_LineMaterial_18() { return static_cast<int32_t>(offsetof(LineUnity_t4238357500, ___LineMaterial_18)); }
inline Material_t340375123 * get_LineMaterial_18() const { return ___LineMaterial_18; }
inline Material_t340375123 ** get_address_of_LineMaterial_18() { return &___LineMaterial_18; }
inline void set_LineMaterial_18(Material_t340375123 * value)
{
___LineMaterial_18 = value;
Il2CppCodeGenWriteBarrier((&___LineMaterial_18), value);
}
inline static int32_t get_offset_of_RoundedEdges_19() { return static_cast<int32_t>(offsetof(LineUnity_t4238357500, ___RoundedEdges_19)); }
inline bool get_RoundedEdges_19() const { return ___RoundedEdges_19; }
inline bool* get_address_of_RoundedEdges_19() { return &___RoundedEdges_19; }
inline void set_RoundedEdges_19(bool value)
{
___RoundedEdges_19 = value;
}
inline static int32_t get_offset_of_RoundedCaps_20() { return static_cast<int32_t>(offsetof(LineUnity_t4238357500, ___RoundedCaps_20)); }
inline bool get_RoundedCaps_20() const { return ___RoundedCaps_20; }
inline bool* get_address_of_RoundedCaps_20() { return &___RoundedCaps_20; }
inline void set_RoundedCaps_20(bool value)
{
___RoundedCaps_20 = value;
}
inline static int32_t get_offset_of_lineRenderer_21() { return static_cast<int32_t>(offsetof(LineUnity_t4238357500, ___lineRenderer_21)); }
inline LineRenderer_t3154350270 * get_lineRenderer_21() const { return ___lineRenderer_21; }
inline LineRenderer_t3154350270 ** get_address_of_lineRenderer_21() { return &___lineRenderer_21; }
inline void set_lineRenderer_21(LineRenderer_t3154350270 * value)
{
___lineRenderer_21 = value;
Il2CppCodeGenWriteBarrier((&___lineRenderer_21), value);
}
inline static int32_t get_offset_of_positions_22() { return static_cast<int32_t>(offsetof(LineUnity_t4238357500, ___positions_22)); }
inline Vector3U5BU5D_t1718750761* get_positions_22() const { return ___positions_22; }
inline Vector3U5BU5D_t1718750761** get_address_of_positions_22() { return &___positions_22; }
inline void set_positions_22(Vector3U5BU5D_t1718750761* value)
{
___positions_22 = value;
Il2CppCodeGenWriteBarrier((&___positions_22), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LINEUNITY_T4238357500_H
#ifndef HANDGUIDANCE_T211969559_H
#define HANDGUIDANCE_T211969559_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.HandGuidance
struct HandGuidance_t211969559 : public Singleton_1_t612194013
{
public:
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.HandGuidance::Cursor
GameObject_t1113636619 * ___Cursor_4;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.HandGuidance::HandGuidanceIndicator
GameObject_t1113636619 * ___HandGuidanceIndicator_5;
// System.Single HoloToolkit.Unity.InputModule.HandGuidance::HandGuidanceThreshold
float ___HandGuidanceThreshold_6;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.HandGuidance::handGuidanceIndicatorGameObject
GameObject_t1113636619 * ___handGuidanceIndicatorGameObject_7;
// UnityEngine.Quaternion HoloToolkit.Unity.InputModule.HandGuidance::defaultHandGuidanceRotation
Quaternion_t2301928331 ___defaultHandGuidanceRotation_8;
// System.Nullable`1<System.UInt32> HoloToolkit.Unity.InputModule.HandGuidance::currentlyTrackedHand
Nullable_1_t4282624060 ___currentlyTrackedHand_9;
public:
inline static int32_t get_offset_of_Cursor_4() { return static_cast<int32_t>(offsetof(HandGuidance_t211969559, ___Cursor_4)); }
inline GameObject_t1113636619 * get_Cursor_4() const { return ___Cursor_4; }
inline GameObject_t1113636619 ** get_address_of_Cursor_4() { return &___Cursor_4; }
inline void set_Cursor_4(GameObject_t1113636619 * value)
{
___Cursor_4 = value;
Il2CppCodeGenWriteBarrier((&___Cursor_4), value);
}
inline static int32_t get_offset_of_HandGuidanceIndicator_5() { return static_cast<int32_t>(offsetof(HandGuidance_t211969559, ___HandGuidanceIndicator_5)); }
inline GameObject_t1113636619 * get_HandGuidanceIndicator_5() const { return ___HandGuidanceIndicator_5; }
inline GameObject_t1113636619 ** get_address_of_HandGuidanceIndicator_5() { return &___HandGuidanceIndicator_5; }
inline void set_HandGuidanceIndicator_5(GameObject_t1113636619 * value)
{
___HandGuidanceIndicator_5 = value;
Il2CppCodeGenWriteBarrier((&___HandGuidanceIndicator_5), value);
}
inline static int32_t get_offset_of_HandGuidanceThreshold_6() { return static_cast<int32_t>(offsetof(HandGuidance_t211969559, ___HandGuidanceThreshold_6)); }
inline float get_HandGuidanceThreshold_6() const { return ___HandGuidanceThreshold_6; }
inline float* get_address_of_HandGuidanceThreshold_6() { return &___HandGuidanceThreshold_6; }
inline void set_HandGuidanceThreshold_6(float value)
{
___HandGuidanceThreshold_6 = value;
}
inline static int32_t get_offset_of_handGuidanceIndicatorGameObject_7() { return static_cast<int32_t>(offsetof(HandGuidance_t211969559, ___handGuidanceIndicatorGameObject_7)); }
inline GameObject_t1113636619 * get_handGuidanceIndicatorGameObject_7() const { return ___handGuidanceIndicatorGameObject_7; }
inline GameObject_t1113636619 ** get_address_of_handGuidanceIndicatorGameObject_7() { return &___handGuidanceIndicatorGameObject_7; }
inline void set_handGuidanceIndicatorGameObject_7(GameObject_t1113636619 * value)
{
___handGuidanceIndicatorGameObject_7 = value;
Il2CppCodeGenWriteBarrier((&___handGuidanceIndicatorGameObject_7), value);
}
inline static int32_t get_offset_of_defaultHandGuidanceRotation_8() { return static_cast<int32_t>(offsetof(HandGuidance_t211969559, ___defaultHandGuidanceRotation_8)); }
inline Quaternion_t2301928331 get_defaultHandGuidanceRotation_8() const { return ___defaultHandGuidanceRotation_8; }
inline Quaternion_t2301928331 * get_address_of_defaultHandGuidanceRotation_8() { return &___defaultHandGuidanceRotation_8; }
inline void set_defaultHandGuidanceRotation_8(Quaternion_t2301928331 value)
{
___defaultHandGuidanceRotation_8 = value;
}
inline static int32_t get_offset_of_currentlyTrackedHand_9() { return static_cast<int32_t>(offsetof(HandGuidance_t211969559, ___currentlyTrackedHand_9)); }
inline Nullable_1_t4282624060 get_currentlyTrackedHand_9() const { return ___currentlyTrackedHand_9; }
inline Nullable_1_t4282624060 * get_address_of_currentlyTrackedHand_9() { return &___currentlyTrackedHand_9; }
inline void set_currentlyTrackedHand_9(Nullable_1_t4282624060 value)
{
___currentlyTrackedHand_9 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // HANDGUIDANCE_T211969559_H
#ifndef ELLIPSE_T4234545539_H
#define ELLIPSE_T4234545539_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Design.Ellipse
struct Ellipse_t4234545539 : public LineBase_t717918686
{
public:
// System.Int32 HoloToolkit.Unity.Design.Ellipse::Resolution
int32_t ___Resolution_17;
// UnityEngine.Vector2 HoloToolkit.Unity.Design.Ellipse::Radius
Vector2_t2156229523 ___Radius_18;
public:
inline static int32_t get_offset_of_Resolution_17() { return static_cast<int32_t>(offsetof(Ellipse_t4234545539, ___Resolution_17)); }
inline int32_t get_Resolution_17() const { return ___Resolution_17; }
inline int32_t* get_address_of_Resolution_17() { return &___Resolution_17; }
inline void set_Resolution_17(int32_t value)
{
___Resolution_17 = value;
}
inline static int32_t get_offset_of_Radius_18() { return static_cast<int32_t>(offsetof(Ellipse_t4234545539, ___Radius_18)); }
inline Vector2_t2156229523 get_Radius_18() const { return ___Radius_18; }
inline Vector2_t2156229523 * get_address_of_Radius_18() { return &___Radius_18; }
inline void set_Radius_18(Vector2_t2156229523 value)
{
___Radius_18 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ELLIPSE_T4234545539_H
#ifndef ERASER_T1049249012_H
#define ERASER_T1049249012_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.ControllerExamples.Eraser
struct Eraser_t1049249012 : public Brush_t1548626474
{
public:
// System.Single HoloToolkit.Unity.ControllerExamples.Eraser::eraseRange
float ___eraseRange_20;
// System.Single HoloToolkit.Unity.ControllerExamples.Eraser::eraseTime
float ___eraseTime_21;
// System.Boolean HoloToolkit.Unity.ControllerExamples.Eraser::erasingStrokes
bool ___erasingStrokes_22;
// System.Collections.Generic.Queue`1<UnityEngine.LineRenderer> HoloToolkit.Unity.ControllerExamples.Eraser::erasedStrokes
Queue_1_t3000609764 * ___erasedStrokes_23;
public:
inline static int32_t get_offset_of_eraseRange_20() { return static_cast<int32_t>(offsetof(Eraser_t1049249012, ___eraseRange_20)); }
inline float get_eraseRange_20() const { return ___eraseRange_20; }
inline float* get_address_of_eraseRange_20() { return &___eraseRange_20; }
inline void set_eraseRange_20(float value)
{
___eraseRange_20 = value;
}
inline static int32_t get_offset_of_eraseTime_21() { return static_cast<int32_t>(offsetof(Eraser_t1049249012, ___eraseTime_21)); }
inline float get_eraseTime_21() const { return ___eraseTime_21; }
inline float* get_address_of_eraseTime_21() { return &___eraseTime_21; }
inline void set_eraseTime_21(float value)
{
___eraseTime_21 = value;
}
inline static int32_t get_offset_of_erasingStrokes_22() { return static_cast<int32_t>(offsetof(Eraser_t1049249012, ___erasingStrokes_22)); }
inline bool get_erasingStrokes_22() const { return ___erasingStrokes_22; }
inline bool* get_address_of_erasingStrokes_22() { return &___erasingStrokes_22; }
inline void set_erasingStrokes_22(bool value)
{
___erasingStrokes_22 = value;
}
inline static int32_t get_offset_of_erasedStrokes_23() { return static_cast<int32_t>(offsetof(Eraser_t1049249012, ___erasedStrokes_23)); }
inline Queue_1_t3000609764 * get_erasedStrokes_23() const { return ___erasedStrokes_23; }
inline Queue_1_t3000609764 ** get_address_of_erasedStrokes_23() { return &___erasedStrokes_23; }
inline void set_erasedStrokes_23(Queue_1_t3000609764 * value)
{
___erasedStrokes_23 = value;
Il2CppCodeGenWriteBarrier((&___erasedStrokes_23), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ERASER_T1049249012_H
#ifndef MIXEDREALITYTELEPORT_T2468362838_H
#define MIXEDREALITYTELEPORT_T2468362838_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.MixedRealityTeleport
struct MixedRealityTeleport_t2468362838 : public Singleton_1_t2868587292
{
public:
// HoloToolkit.Unity.InputModule.XboxControllerMappingTypes HoloToolkit.Unity.InputModule.MixedRealityTeleport::HorizontalStrafe
int32_t ___HorizontalStrafe_4;
// HoloToolkit.Unity.InputModule.XboxControllerMappingTypes HoloToolkit.Unity.InputModule.MixedRealityTeleport::ForwardMovement
int32_t ___ForwardMovement_5;
// HoloToolkit.Unity.InputModule.XboxControllerMappingTypes HoloToolkit.Unity.InputModule.MixedRealityTeleport::HorizontalRotation
int32_t ___HorizontalRotation_6;
// HoloToolkit.Unity.InputModule.XboxControllerMappingTypes HoloToolkit.Unity.InputModule.MixedRealityTeleport::VerticalRotation
int32_t ___VerticalRotation_7;
// System.String HoloToolkit.Unity.InputModule.MixedRealityTeleport::LeftThumbstickX
String_t* ___LeftThumbstickX_8;
// System.String HoloToolkit.Unity.InputModule.MixedRealityTeleport::LeftThumbstickY
String_t* ___LeftThumbstickY_9;
// System.String HoloToolkit.Unity.InputModule.MixedRealityTeleport::RightThumbstickX
String_t* ___RightThumbstickX_10;
// System.String HoloToolkit.Unity.InputModule.MixedRealityTeleport::RightThumbstickY
String_t* ___RightThumbstickY_11;
// System.Boolean HoloToolkit.Unity.InputModule.MixedRealityTeleport::EnableTeleport
bool ___EnableTeleport_12;
// System.Boolean HoloToolkit.Unity.InputModule.MixedRealityTeleport::EnableRotation
bool ___EnableRotation_13;
// System.Boolean HoloToolkit.Unity.InputModule.MixedRealityTeleport::EnableStrafe
bool ___EnableStrafe_14;
// System.Boolean HoloToolkit.Unity.InputModule.MixedRealityTeleport::StayOnTheFloor
bool ___StayOnTheFloor_15;
// System.Single HoloToolkit.Unity.InputModule.MixedRealityTeleport::RotationSize
float ___RotationSize_16;
// System.Single HoloToolkit.Unity.InputModule.MixedRealityTeleport::StrafeAmount
float ___StrafeAmount_17;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.MixedRealityTeleport::teleportMarker
GameObject_t1113636619 * ___teleportMarker_18;
// UnityEngine.Animator HoloToolkit.Unity.InputModule.MixedRealityTeleport::animationController
Animator_t434523843 * ___animationController_19;
// System.Boolean HoloToolkit.Unity.InputModule.MixedRealityTeleport::useCustomMapping
bool ___useCustomMapping_20;
// HoloToolkit.Unity.FadeManager HoloToolkit.Unity.InputModule.MixedRealityTeleport::fadeControl
FadeManager_t1688783044 * ___fadeControl_21;
// System.Boolean HoloToolkit.Unity.InputModule.MixedRealityTeleport::isTeleportValid
bool ___isTeleportValid_22;
// HoloToolkit.Unity.InputModule.IPointingSource HoloToolkit.Unity.InputModule.MixedRealityTeleport::currentPointingSource
RuntimeObject* ___currentPointingSource_23;
// System.UInt32 HoloToolkit.Unity.InputModule.MixedRealityTeleport::currentSourceId
uint32_t ___currentSourceId_24;
public:
inline static int32_t get_offset_of_HorizontalStrafe_4() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___HorizontalStrafe_4)); }
inline int32_t get_HorizontalStrafe_4() const { return ___HorizontalStrafe_4; }
inline int32_t* get_address_of_HorizontalStrafe_4() { return &___HorizontalStrafe_4; }
inline void set_HorizontalStrafe_4(int32_t value)
{
___HorizontalStrafe_4 = value;
}
inline static int32_t get_offset_of_ForwardMovement_5() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___ForwardMovement_5)); }
inline int32_t get_ForwardMovement_5() const { return ___ForwardMovement_5; }
inline int32_t* get_address_of_ForwardMovement_5() { return &___ForwardMovement_5; }
inline void set_ForwardMovement_5(int32_t value)
{
___ForwardMovement_5 = value;
}
inline static int32_t get_offset_of_HorizontalRotation_6() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___HorizontalRotation_6)); }
inline int32_t get_HorizontalRotation_6() const { return ___HorizontalRotation_6; }
inline int32_t* get_address_of_HorizontalRotation_6() { return &___HorizontalRotation_6; }
inline void set_HorizontalRotation_6(int32_t value)
{
___HorizontalRotation_6 = value;
}
inline static int32_t get_offset_of_VerticalRotation_7() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___VerticalRotation_7)); }
inline int32_t get_VerticalRotation_7() const { return ___VerticalRotation_7; }
inline int32_t* get_address_of_VerticalRotation_7() { return &___VerticalRotation_7; }
inline void set_VerticalRotation_7(int32_t value)
{
___VerticalRotation_7 = value;
}
inline static int32_t get_offset_of_LeftThumbstickX_8() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___LeftThumbstickX_8)); }
inline String_t* get_LeftThumbstickX_8() const { return ___LeftThumbstickX_8; }
inline String_t** get_address_of_LeftThumbstickX_8() { return &___LeftThumbstickX_8; }
inline void set_LeftThumbstickX_8(String_t* value)
{
___LeftThumbstickX_8 = value;
Il2CppCodeGenWriteBarrier((&___LeftThumbstickX_8), value);
}
inline static int32_t get_offset_of_LeftThumbstickY_9() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___LeftThumbstickY_9)); }
inline String_t* get_LeftThumbstickY_9() const { return ___LeftThumbstickY_9; }
inline String_t** get_address_of_LeftThumbstickY_9() { return &___LeftThumbstickY_9; }
inline void set_LeftThumbstickY_9(String_t* value)
{
___LeftThumbstickY_9 = value;
Il2CppCodeGenWriteBarrier((&___LeftThumbstickY_9), value);
}
inline static int32_t get_offset_of_RightThumbstickX_10() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___RightThumbstickX_10)); }
inline String_t* get_RightThumbstickX_10() const { return ___RightThumbstickX_10; }
inline String_t** get_address_of_RightThumbstickX_10() { return &___RightThumbstickX_10; }
inline void set_RightThumbstickX_10(String_t* value)
{
___RightThumbstickX_10 = value;
Il2CppCodeGenWriteBarrier((&___RightThumbstickX_10), value);
}
inline static int32_t get_offset_of_RightThumbstickY_11() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___RightThumbstickY_11)); }
inline String_t* get_RightThumbstickY_11() const { return ___RightThumbstickY_11; }
inline String_t** get_address_of_RightThumbstickY_11() { return &___RightThumbstickY_11; }
inline void set_RightThumbstickY_11(String_t* value)
{
___RightThumbstickY_11 = value;
Il2CppCodeGenWriteBarrier((&___RightThumbstickY_11), value);
}
inline static int32_t get_offset_of_EnableTeleport_12() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___EnableTeleport_12)); }
inline bool get_EnableTeleport_12() const { return ___EnableTeleport_12; }
inline bool* get_address_of_EnableTeleport_12() { return &___EnableTeleport_12; }
inline void set_EnableTeleport_12(bool value)
{
___EnableTeleport_12 = value;
}
inline static int32_t get_offset_of_EnableRotation_13() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___EnableRotation_13)); }
inline bool get_EnableRotation_13() const { return ___EnableRotation_13; }
inline bool* get_address_of_EnableRotation_13() { return &___EnableRotation_13; }
inline void set_EnableRotation_13(bool value)
{
___EnableRotation_13 = value;
}
inline static int32_t get_offset_of_EnableStrafe_14() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___EnableStrafe_14)); }
inline bool get_EnableStrafe_14() const { return ___EnableStrafe_14; }
inline bool* get_address_of_EnableStrafe_14() { return &___EnableStrafe_14; }
inline void set_EnableStrafe_14(bool value)
{
___EnableStrafe_14 = value;
}
inline static int32_t get_offset_of_StayOnTheFloor_15() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___StayOnTheFloor_15)); }
inline bool get_StayOnTheFloor_15() const { return ___StayOnTheFloor_15; }
inline bool* get_address_of_StayOnTheFloor_15() { return &___StayOnTheFloor_15; }
inline void set_StayOnTheFloor_15(bool value)
{
___StayOnTheFloor_15 = value;
}
inline static int32_t get_offset_of_RotationSize_16() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___RotationSize_16)); }
inline float get_RotationSize_16() const { return ___RotationSize_16; }
inline float* get_address_of_RotationSize_16() { return &___RotationSize_16; }
inline void set_RotationSize_16(float value)
{
___RotationSize_16 = value;
}
inline static int32_t get_offset_of_StrafeAmount_17() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___StrafeAmount_17)); }
inline float get_StrafeAmount_17() const { return ___StrafeAmount_17; }
inline float* get_address_of_StrafeAmount_17() { return &___StrafeAmount_17; }
inline void set_StrafeAmount_17(float value)
{
___StrafeAmount_17 = value;
}
inline static int32_t get_offset_of_teleportMarker_18() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___teleportMarker_18)); }
inline GameObject_t1113636619 * get_teleportMarker_18() const { return ___teleportMarker_18; }
inline GameObject_t1113636619 ** get_address_of_teleportMarker_18() { return &___teleportMarker_18; }
inline void set_teleportMarker_18(GameObject_t1113636619 * value)
{
___teleportMarker_18 = value;
Il2CppCodeGenWriteBarrier((&___teleportMarker_18), value);
}
inline static int32_t get_offset_of_animationController_19() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___animationController_19)); }
inline Animator_t434523843 * get_animationController_19() const { return ___animationController_19; }
inline Animator_t434523843 ** get_address_of_animationController_19() { return &___animationController_19; }
inline void set_animationController_19(Animator_t434523843 * value)
{
___animationController_19 = value;
Il2CppCodeGenWriteBarrier((&___animationController_19), value);
}
inline static int32_t get_offset_of_useCustomMapping_20() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___useCustomMapping_20)); }
inline bool get_useCustomMapping_20() const { return ___useCustomMapping_20; }
inline bool* get_address_of_useCustomMapping_20() { return &___useCustomMapping_20; }
inline void set_useCustomMapping_20(bool value)
{
___useCustomMapping_20 = value;
}
inline static int32_t get_offset_of_fadeControl_21() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___fadeControl_21)); }
inline FadeManager_t1688783044 * get_fadeControl_21() const { return ___fadeControl_21; }
inline FadeManager_t1688783044 ** get_address_of_fadeControl_21() { return &___fadeControl_21; }
inline void set_fadeControl_21(FadeManager_t1688783044 * value)
{
___fadeControl_21 = value;
Il2CppCodeGenWriteBarrier((&___fadeControl_21), value);
}
inline static int32_t get_offset_of_isTeleportValid_22() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___isTeleportValid_22)); }
inline bool get_isTeleportValid_22() const { return ___isTeleportValid_22; }
inline bool* get_address_of_isTeleportValid_22() { return &___isTeleportValid_22; }
inline void set_isTeleportValid_22(bool value)
{
___isTeleportValid_22 = value;
}
inline static int32_t get_offset_of_currentPointingSource_23() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___currentPointingSource_23)); }
inline RuntimeObject* get_currentPointingSource_23() const { return ___currentPointingSource_23; }
inline RuntimeObject** get_address_of_currentPointingSource_23() { return &___currentPointingSource_23; }
inline void set_currentPointingSource_23(RuntimeObject* value)
{
___currentPointingSource_23 = value;
Il2CppCodeGenWriteBarrier((&___currentPointingSource_23), value);
}
inline static int32_t get_offset_of_currentSourceId_24() { return static_cast<int32_t>(offsetof(MixedRealityTeleport_t2468362838, ___currentSourceId_24)); }
inline uint32_t get_currentSourceId_24() const { return ___currentSourceId_24; }
inline uint32_t* get_address_of_currentSourceId_24() { return &___currentSourceId_24; }
inline void set_currentSourceId_24(uint32_t value)
{
___currentSourceId_24 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // MIXEDREALITYTELEPORT_T2468362838_H
#ifndef MOTIONCONTROLLERVISUALIZER_T392243420_H
#define MOTIONCONTROLLERVISUALIZER_T392243420_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.MotionControllerVisualizer
struct MotionControllerVisualizer_t392243420 : public Singleton_1_t792467874
{
public:
// System.Boolean HoloToolkit.Unity.InputModule.MotionControllerVisualizer::AnimateControllerModel
bool ___AnimateControllerModel_4;
// System.Boolean HoloToolkit.Unity.InputModule.MotionControllerVisualizer::AlwaysUseAlternateLeftModel
bool ___AlwaysUseAlternateLeftModel_5;
// System.Boolean HoloToolkit.Unity.InputModule.MotionControllerVisualizer::AlwaysUseAlternateRightModel
bool ___AlwaysUseAlternateRightModel_6;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.MotionControllerVisualizer::AlternateLeftController
GameObject_t1113636619 * ___AlternateLeftController_7;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.MotionControllerVisualizer::AlternateRightController
GameObject_t1113636619 * ___AlternateRightController_8;
// UnityEngine.GameObject HoloToolkit.Unity.InputModule.MotionControllerVisualizer::TouchpadTouchedOverride
GameObject_t1113636619 * ___TouchpadTouchedOverride_9;
// UnityEngine.Material HoloToolkit.Unity.InputModule.MotionControllerVisualizer::GLTFMaterial
Material_t340375123 * ___GLTFMaterial_10;
// System.Collections.Generic.Dictionary`2<System.String,HoloToolkit.Unity.InputModule.MotionControllerInfo> HoloToolkit.Unity.InputModule.MotionControllerVisualizer::controllerDictionary
Dictionary_2_t723408522 * ___controllerDictionary_11;
// System.Collections.Generic.List`1<System.String> HoloToolkit.Unity.InputModule.MotionControllerVisualizer::loadingControllers
List_1_t3319525431 * ___loadingControllers_12;
// HoloToolkit.Unity.InputModule.MotionControllerInfo HoloToolkit.Unity.InputModule.MotionControllerVisualizer::leftControllerModel
MotionControllerInfo_t938152223 * ___leftControllerModel_13;
// HoloToolkit.Unity.InputModule.MotionControllerInfo HoloToolkit.Unity.InputModule.MotionControllerVisualizer::rightControllerModel
MotionControllerInfo_t938152223 * ___rightControllerModel_14;
// System.Action`1<HoloToolkit.Unity.InputModule.MotionControllerInfo> HoloToolkit.Unity.InputModule.MotionControllerVisualizer::OnControllerModelLoaded
Action_1_t1110619818 * ___OnControllerModelLoaded_15;
// System.Action`1<HoloToolkit.Unity.InputModule.MotionControllerInfo> HoloToolkit.Unity.InputModule.MotionControllerVisualizer::OnControllerModelUnloaded
Action_1_t1110619818 * ___OnControllerModelUnloaded_16;
public:
inline static int32_t get_offset_of_AnimateControllerModel_4() { return static_cast<int32_t>(offsetof(MotionControllerVisualizer_t392243420, ___AnimateControllerModel_4)); }
inline bool get_AnimateControllerModel_4() const { return ___AnimateControllerModel_4; }
inline bool* get_address_of_AnimateControllerModel_4() { return &___AnimateControllerModel_4; }
inline void set_AnimateControllerModel_4(bool value)
{
___AnimateControllerModel_4 = value;
}
inline static int32_t get_offset_of_AlwaysUseAlternateLeftModel_5() { return static_cast<int32_t>(offsetof(MotionControllerVisualizer_t392243420, ___AlwaysUseAlternateLeftModel_5)); }
inline bool get_AlwaysUseAlternateLeftModel_5() const { return ___AlwaysUseAlternateLeftModel_5; }
inline bool* get_address_of_AlwaysUseAlternateLeftModel_5() { return &___AlwaysUseAlternateLeftModel_5; }
inline void set_AlwaysUseAlternateLeftModel_5(bool value)
{
___AlwaysUseAlternateLeftModel_5 = value;
}
inline static int32_t get_offset_of_AlwaysUseAlternateRightModel_6() { return static_cast<int32_t>(offsetof(MotionControllerVisualizer_t392243420, ___AlwaysUseAlternateRightModel_6)); }
inline bool get_AlwaysUseAlternateRightModel_6() const { return ___AlwaysUseAlternateRightModel_6; }
inline bool* get_address_of_AlwaysUseAlternateRightModel_6() { return &___AlwaysUseAlternateRightModel_6; }
inline void set_AlwaysUseAlternateRightModel_6(bool value)
{
___AlwaysUseAlternateRightModel_6 = value;
}
inline static int32_t get_offset_of_AlternateLeftController_7() { return static_cast<int32_t>(offsetof(MotionControllerVisualizer_t392243420, ___AlternateLeftController_7)); }
inline GameObject_t1113636619 * get_AlternateLeftController_7() const { return ___AlternateLeftController_7; }
inline GameObject_t1113636619 ** get_address_of_AlternateLeftController_7() { return &___AlternateLeftController_7; }
inline void set_AlternateLeftController_7(GameObject_t1113636619 * value)
{
___AlternateLeftController_7 = value;
Il2CppCodeGenWriteBarrier((&___AlternateLeftController_7), value);
}
inline static int32_t get_offset_of_AlternateRightController_8() { return static_cast<int32_t>(offsetof(MotionControllerVisualizer_t392243420, ___AlternateRightController_8)); }
inline GameObject_t1113636619 * get_AlternateRightController_8() const { return ___AlternateRightController_8; }
inline GameObject_t1113636619 ** get_address_of_AlternateRightController_8() { return &___AlternateRightController_8; }
inline void set_AlternateRightController_8(GameObject_t1113636619 * value)
{
___AlternateRightController_8 = value;
Il2CppCodeGenWriteBarrier((&___AlternateRightController_8), value);
}
inline static int32_t get_offset_of_TouchpadTouchedOverride_9() { return static_cast<int32_t>(offsetof(MotionControllerVisualizer_t392243420, ___TouchpadTouchedOverride_9)); }
inline GameObject_t1113636619 * get_TouchpadTouchedOverride_9() const { return ___TouchpadTouchedOverride_9; }
inline GameObject_t1113636619 ** get_address_of_TouchpadTouchedOverride_9() { return &___TouchpadTouchedOverride_9; }
inline void set_TouchpadTouchedOverride_9(GameObject_t1113636619 * value)
{
___TouchpadTouchedOverride_9 = value;
Il2CppCodeGenWriteBarrier((&___TouchpadTouchedOverride_9), value);
}
inline static int32_t get_offset_of_GLTFMaterial_10() { return static_cast<int32_t>(offsetof(MotionControllerVisualizer_t392243420, ___GLTFMaterial_10)); }
inline Material_t340375123 * get_GLTFMaterial_10() const { return ___GLTFMaterial_10; }
inline Material_t340375123 ** get_address_of_GLTFMaterial_10() { return &___GLTFMaterial_10; }
inline void set_GLTFMaterial_10(Material_t340375123 * value)
{
___GLTFMaterial_10 = value;
Il2CppCodeGenWriteBarrier((&___GLTFMaterial_10), value);
}
inline static int32_t get_offset_of_controllerDictionary_11() { return static_cast<int32_t>(offsetof(MotionControllerVisualizer_t392243420, ___controllerDictionary_11)); }
inline Dictionary_2_t723408522 * get_controllerDictionary_11() const { return ___controllerDictionary_11; }
inline Dictionary_2_t723408522 ** get_address_of_controllerDictionary_11() { return &___controllerDictionary_11; }
inline void set_controllerDictionary_11(Dictionary_2_t723408522 * value)
{
___controllerDictionary_11 = value;
Il2CppCodeGenWriteBarrier((&___controllerDictionary_11), value);
}
inline static int32_t get_offset_of_loadingControllers_12() { return static_cast<int32_t>(offsetof(MotionControllerVisualizer_t392243420, ___loadingControllers_12)); }
inline List_1_t3319525431 * get_loadingControllers_12() const { return ___loadingControllers_12; }
inline List_1_t3319525431 ** get_address_of_loadingControllers_12() { return &___loadingControllers_12; }
inline void set_loadingControllers_12(List_1_t3319525431 * value)
{
___loadingControllers_12 = value;
Il2CppCodeGenWriteBarrier((&___loadingControllers_12), value);
}
inline static int32_t get_offset_of_leftControllerModel_13() { return static_cast<int32_t>(offsetof(MotionControllerVisualizer_t392243420, ___leftControllerModel_13)); }
inline MotionControllerInfo_t938152223 * get_leftControllerModel_13() const { return ___leftControllerModel_13; }
inline MotionControllerInfo_t938152223 ** get_address_of_leftControllerModel_13() { return &___leftControllerModel_13; }
inline void set_leftControllerModel_13(MotionControllerInfo_t938152223 * value)
{
___leftControllerModel_13 = value;
Il2CppCodeGenWriteBarrier((&___leftControllerModel_13), value);
}
inline static int32_t get_offset_of_rightControllerModel_14() { return static_cast<int32_t>(offsetof(MotionControllerVisualizer_t392243420, ___rightControllerModel_14)); }
inline MotionControllerInfo_t938152223 * get_rightControllerModel_14() const { return ___rightControllerModel_14; }
inline MotionControllerInfo_t938152223 ** get_address_of_rightControllerModel_14() { return &___rightControllerModel_14; }
inline void set_rightControllerModel_14(MotionControllerInfo_t938152223 * value)
{
___rightControllerModel_14 = value;
Il2CppCodeGenWriteBarrier((&___rightControllerModel_14), value);
}
inline static int32_t get_offset_of_OnControllerModelLoaded_15() { return static_cast<int32_t>(offsetof(MotionControllerVisualizer_t392243420, ___OnControllerModelLoaded_15)); }
inline Action_1_t1110619818 * get_OnControllerModelLoaded_15() const { return ___OnControllerModelLoaded_15; }
inline Action_1_t1110619818 ** get_address_of_OnControllerModelLoaded_15() { return &___OnControllerModelLoaded_15; }
inline void set_OnControllerModelLoaded_15(Action_1_t1110619818 * value)
{
___OnControllerModelLoaded_15 = value;
Il2CppCodeGenWriteBarrier((&___OnControllerModelLoaded_15), value);
}
inline static int32_t get_offset_of_OnControllerModelUnloaded_16() { return static_cast<int32_t>(offsetof(MotionControllerVisualizer_t392243420, ___OnControllerModelUnloaded_16)); }
inline Action_1_t1110619818 * get_OnControllerModelUnloaded_16() const { return ___OnControllerModelUnloaded_16; }
inline Action_1_t1110619818 ** get_address_of_OnControllerModelUnloaded_16() { return &___OnControllerModelUnloaded_16; }
inline void set_OnControllerModelUnloaded_16(Action_1_t1110619818 * value)
{
___OnControllerModelUnloaded_16 = value;
Il2CppCodeGenWriteBarrier((&___OnControllerModelUnloaded_16), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // MOTIONCONTROLLERVISUALIZER_T392243420_H
#ifndef BOUNDARYMANAGER_T2608055002_H
#define BOUNDARYMANAGER_T2608055002_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Boundary.BoundaryManager
struct BoundaryManager_t2608055002 : public Singleton_1_t3008279456
{
public:
// UnityEngine.GameObject HoloToolkit.Unity.Boundary.BoundaryManager::FloorQuad
GameObject_t1113636619 * ___FloorQuad_4;
// UnityEngine.GameObject HoloToolkit.Unity.Boundary.BoundaryManager::floorQuadInstance
GameObject_t1113636619 * ___floorQuadInstance_5;
// System.Single HoloToolkit.Unity.Boundary.BoundaryManager::boundaryHeight
float ___boundaryHeight_6;
// UnityEngine.Bounds HoloToolkit.Unity.Boundary.BoundaryManager::boundaryBounds
Bounds_t2266837910 ___boundaryBounds_7;
// UnityEngine.XR.TrackingSpaceType HoloToolkit.Unity.Boundary.BoundaryManager::opaqueTrackingSpaceType
int32_t ___opaqueTrackingSpaceType_8;
// UnityEngine.Vector3 HoloToolkit.Unity.Boundary.BoundaryManager::floorPositionInEditor
Vector3_t3722313464 ___floorPositionInEditor_9;
// System.Boolean HoloToolkit.Unity.Boundary.BoundaryManager::renderFloor
bool ___renderFloor_10;
// System.Boolean HoloToolkit.Unity.Boundary.BoundaryManager::renderBoundary
bool ___renderBoundary_11;
public:
inline static int32_t get_offset_of_FloorQuad_4() { return static_cast<int32_t>(offsetof(BoundaryManager_t2608055002, ___FloorQuad_4)); }
inline GameObject_t1113636619 * get_FloorQuad_4() const { return ___FloorQuad_4; }
inline GameObject_t1113636619 ** get_address_of_FloorQuad_4() { return &___FloorQuad_4; }
inline void set_FloorQuad_4(GameObject_t1113636619 * value)
{
___FloorQuad_4 = value;
Il2CppCodeGenWriteBarrier((&___FloorQuad_4), value);
}
inline static int32_t get_offset_of_floorQuadInstance_5() { return static_cast<int32_t>(offsetof(BoundaryManager_t2608055002, ___floorQuadInstance_5)); }
inline GameObject_t1113636619 * get_floorQuadInstance_5() const { return ___floorQuadInstance_5; }
inline GameObject_t1113636619 ** get_address_of_floorQuadInstance_5() { return &___floorQuadInstance_5; }
inline void set_floorQuadInstance_5(GameObject_t1113636619 * value)
{
___floorQuadInstance_5 = value;
Il2CppCodeGenWriteBarrier((&___floorQuadInstance_5), value);
}
inline static int32_t get_offset_of_boundaryHeight_6() { return static_cast<int32_t>(offsetof(BoundaryManager_t2608055002, ___boundaryHeight_6)); }
inline float get_boundaryHeight_6() const { return ___boundaryHeight_6; }
inline float* get_address_of_boundaryHeight_6() { return &___boundaryHeight_6; }
inline void set_boundaryHeight_6(float value)
{
___boundaryHeight_6 = value;
}
inline static int32_t get_offset_of_boundaryBounds_7() { return static_cast<int32_t>(offsetof(BoundaryManager_t2608055002, ___boundaryBounds_7)); }
inline Bounds_t2266837910 get_boundaryBounds_7() const { return ___boundaryBounds_7; }
inline Bounds_t2266837910 * get_address_of_boundaryBounds_7() { return &___boundaryBounds_7; }
inline void set_boundaryBounds_7(Bounds_t2266837910 value)
{
___boundaryBounds_7 = value;
}
inline static int32_t get_offset_of_opaqueTrackingSpaceType_8() { return static_cast<int32_t>(offsetof(BoundaryManager_t2608055002, ___opaqueTrackingSpaceType_8)); }
inline int32_t get_opaqueTrackingSpaceType_8() const { return ___opaqueTrackingSpaceType_8; }
inline int32_t* get_address_of_opaqueTrackingSpaceType_8() { return &___opaqueTrackingSpaceType_8; }
inline void set_opaqueTrackingSpaceType_8(int32_t value)
{
___opaqueTrackingSpaceType_8 = value;
}
inline static int32_t get_offset_of_floorPositionInEditor_9() { return static_cast<int32_t>(offsetof(BoundaryManager_t2608055002, ___floorPositionInEditor_9)); }
inline Vector3_t3722313464 get_floorPositionInEditor_9() const { return ___floorPositionInEditor_9; }
inline Vector3_t3722313464 * get_address_of_floorPositionInEditor_9() { return &___floorPositionInEditor_9; }
inline void set_floorPositionInEditor_9(Vector3_t3722313464 value)
{
___floorPositionInEditor_9 = value;
}
inline static int32_t get_offset_of_renderFloor_10() { return static_cast<int32_t>(offsetof(BoundaryManager_t2608055002, ___renderFloor_10)); }
inline bool get_renderFloor_10() const { return ___renderFloor_10; }
inline bool* get_address_of_renderFloor_10() { return &___renderFloor_10; }
inline void set_renderFloor_10(bool value)
{
___renderFloor_10 = value;
}
inline static int32_t get_offset_of_renderBoundary_11() { return static_cast<int32_t>(offsetof(BoundaryManager_t2608055002, ___renderBoundary_11)); }
inline bool get_renderBoundary_11() const { return ___renderBoundary_11; }
inline bool* get_address_of_renderBoundary_11() { return &___renderBoundary_11; }
inline void set_renderBoundary_11(bool value)
{
___renderBoundary_11 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BOUNDARYMANAGER_T2608055002_H
#ifndef MIXEDREALITYCAMERAMANAGER_T3589305101_H
#define MIXEDREALITYCAMERAMANAGER_T3589305101_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.MixedRealityCameraManager
struct MixedRealityCameraManager_t3589305101 : public Singleton_1_t3989529555
{
public:
// System.Single HoloToolkit.Unity.InputModule.MixedRealityCameraManager::NearClipPlane_OpaqueDisplay
float ___NearClipPlane_OpaqueDisplay_4;
// UnityEngine.CameraClearFlags HoloToolkit.Unity.InputModule.MixedRealityCameraManager::CameraClearFlags_OpaqueDisplay
int32_t ___CameraClearFlags_OpaqueDisplay_5;
// UnityEngine.Color HoloToolkit.Unity.InputModule.MixedRealityCameraManager::BackgroundColor_OpaqueDisplay
Color_t2555686324 ___BackgroundColor_OpaqueDisplay_6;
// System.Int32 HoloToolkit.Unity.InputModule.MixedRealityCameraManager::OpaqueQualityLevel
int32_t ___OpaqueQualityLevel_7;
// System.Single HoloToolkit.Unity.InputModule.MixedRealityCameraManager::NearClipPlane_TransparentDisplay
float ___NearClipPlane_TransparentDisplay_8;
// UnityEngine.CameraClearFlags HoloToolkit.Unity.InputModule.MixedRealityCameraManager::CameraClearFlags_TransparentDisplay
int32_t ___CameraClearFlags_TransparentDisplay_9;
// UnityEngine.Color HoloToolkit.Unity.InputModule.MixedRealityCameraManager::BackgroundColor_TransparentDisplay
Color_t2555686324 ___BackgroundColor_TransparentDisplay_10;
// System.Int32 HoloToolkit.Unity.InputModule.MixedRealityCameraManager::HoloLensQualityLevel
int32_t ___HoloLensQualityLevel_11;
// HoloToolkit.Unity.InputModule.MixedRealityCameraManager/DisplayType HoloToolkit.Unity.InputModule.MixedRealityCameraManager::<CurrentDisplayType>k__BackingField
int32_t ___U3CCurrentDisplayTypeU3Ek__BackingField_12;
// HoloToolkit.Unity.InputModule.MixedRealityCameraManager/DisplayEventHandler HoloToolkit.Unity.InputModule.MixedRealityCameraManager::OnDisplayDetected
DisplayEventHandler_t3688058425 * ___OnDisplayDetected_13;
public:
inline static int32_t get_offset_of_NearClipPlane_OpaqueDisplay_4() { return static_cast<int32_t>(offsetof(MixedRealityCameraManager_t3589305101, ___NearClipPlane_OpaqueDisplay_4)); }
inline float get_NearClipPlane_OpaqueDisplay_4() const { return ___NearClipPlane_OpaqueDisplay_4; }
inline float* get_address_of_NearClipPlane_OpaqueDisplay_4() { return &___NearClipPlane_OpaqueDisplay_4; }
inline void set_NearClipPlane_OpaqueDisplay_4(float value)
{
___NearClipPlane_OpaqueDisplay_4 = value;
}
inline static int32_t get_offset_of_CameraClearFlags_OpaqueDisplay_5() { return static_cast<int32_t>(offsetof(MixedRealityCameraManager_t3589305101, ___CameraClearFlags_OpaqueDisplay_5)); }
inline int32_t get_CameraClearFlags_OpaqueDisplay_5() const { return ___CameraClearFlags_OpaqueDisplay_5; }
inline int32_t* get_address_of_CameraClearFlags_OpaqueDisplay_5() { return &___CameraClearFlags_OpaqueDisplay_5; }
inline void set_CameraClearFlags_OpaqueDisplay_5(int32_t value)
{
___CameraClearFlags_OpaqueDisplay_5 = value;
}
inline static int32_t get_offset_of_BackgroundColor_OpaqueDisplay_6() { return static_cast<int32_t>(offsetof(MixedRealityCameraManager_t3589305101, ___BackgroundColor_OpaqueDisplay_6)); }
inline Color_t2555686324 get_BackgroundColor_OpaqueDisplay_6() const { return ___BackgroundColor_OpaqueDisplay_6; }
inline Color_t2555686324 * get_address_of_BackgroundColor_OpaqueDisplay_6() { return &___BackgroundColor_OpaqueDisplay_6; }
inline void set_BackgroundColor_OpaqueDisplay_6(Color_t2555686324 value)
{
___BackgroundColor_OpaqueDisplay_6 = value;
}
inline static int32_t get_offset_of_OpaqueQualityLevel_7() { return static_cast<int32_t>(offsetof(MixedRealityCameraManager_t3589305101, ___OpaqueQualityLevel_7)); }
inline int32_t get_OpaqueQualityLevel_7() const { return ___OpaqueQualityLevel_7; }
inline int32_t* get_address_of_OpaqueQualityLevel_7() { return &___OpaqueQualityLevel_7; }
inline void set_OpaqueQualityLevel_7(int32_t value)
{
___OpaqueQualityLevel_7 = value;
}
inline static int32_t get_offset_of_NearClipPlane_TransparentDisplay_8() { return static_cast<int32_t>(offsetof(MixedRealityCameraManager_t3589305101, ___NearClipPlane_TransparentDisplay_8)); }
inline float get_NearClipPlane_TransparentDisplay_8() const { return ___NearClipPlane_TransparentDisplay_8; }
inline float* get_address_of_NearClipPlane_TransparentDisplay_8() { return &___NearClipPlane_TransparentDisplay_8; }
inline void set_NearClipPlane_TransparentDisplay_8(float value)
{
___NearClipPlane_TransparentDisplay_8 = value;
}
inline static int32_t get_offset_of_CameraClearFlags_TransparentDisplay_9() { return static_cast<int32_t>(offsetof(MixedRealityCameraManager_t3589305101, ___CameraClearFlags_TransparentDisplay_9)); }
inline int32_t get_CameraClearFlags_TransparentDisplay_9() const { return ___CameraClearFlags_TransparentDisplay_9; }
inline int32_t* get_address_of_CameraClearFlags_TransparentDisplay_9() { return &___CameraClearFlags_TransparentDisplay_9; }
inline void set_CameraClearFlags_TransparentDisplay_9(int32_t value)
{
___CameraClearFlags_TransparentDisplay_9 = value;
}
inline static int32_t get_offset_of_BackgroundColor_TransparentDisplay_10() { return static_cast<int32_t>(offsetof(MixedRealityCameraManager_t3589305101, ___BackgroundColor_TransparentDisplay_10)); }
inline Color_t2555686324 get_BackgroundColor_TransparentDisplay_10() const { return ___BackgroundColor_TransparentDisplay_10; }
inline Color_t2555686324 * get_address_of_BackgroundColor_TransparentDisplay_10() { return &___BackgroundColor_TransparentDisplay_10; }
inline void set_BackgroundColor_TransparentDisplay_10(Color_t2555686324 value)
{
___BackgroundColor_TransparentDisplay_10 = value;
}
inline static int32_t get_offset_of_HoloLensQualityLevel_11() { return static_cast<int32_t>(offsetof(MixedRealityCameraManager_t3589305101, ___HoloLensQualityLevel_11)); }
inline int32_t get_HoloLensQualityLevel_11() const { return ___HoloLensQualityLevel_11; }
inline int32_t* get_address_of_HoloLensQualityLevel_11() { return &___HoloLensQualityLevel_11; }
inline void set_HoloLensQualityLevel_11(int32_t value)
{
___HoloLensQualityLevel_11 = value;
}
inline static int32_t get_offset_of_U3CCurrentDisplayTypeU3Ek__BackingField_12() { return static_cast<int32_t>(offsetof(MixedRealityCameraManager_t3589305101, ___U3CCurrentDisplayTypeU3Ek__BackingField_12)); }
inline int32_t get_U3CCurrentDisplayTypeU3Ek__BackingField_12() const { return ___U3CCurrentDisplayTypeU3Ek__BackingField_12; }
inline int32_t* get_address_of_U3CCurrentDisplayTypeU3Ek__BackingField_12() { return &___U3CCurrentDisplayTypeU3Ek__BackingField_12; }
inline void set_U3CCurrentDisplayTypeU3Ek__BackingField_12(int32_t value)
{
___U3CCurrentDisplayTypeU3Ek__BackingField_12 = value;
}
inline static int32_t get_offset_of_OnDisplayDetected_13() { return static_cast<int32_t>(offsetof(MixedRealityCameraManager_t3589305101, ___OnDisplayDetected_13)); }
inline DisplayEventHandler_t3688058425 * get_OnDisplayDetected_13() const { return ___OnDisplayDetected_13; }
inline DisplayEventHandler_t3688058425 ** get_address_of_OnDisplayDetected_13() { return &___OnDisplayDetected_13; }
inline void set_OnDisplayDetected_13(DisplayEventHandler_t3688058425 * value)
{
___OnDisplayDetected_13 = value;
Il2CppCodeGenWriteBarrier((&___OnDisplayDetected_13), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // MIXEDREALITYCAMERAMANAGER_T3589305101_H
#ifndef LINEPOINTER_T114985340_H
#define LINEPOINTER_T114985340_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Controllers.LinePointer
struct LinePointer_t114985340 : public PhysicsPointer_t2887364969
{
public:
// HoloToolkit.Unity.Design.Line HoloToolkit.Unity.Controllers.LinePointer::line
Line_t549989228 * ___line_20;
// HoloToolkit.Unity.Design.LineRenderer[] HoloToolkit.Unity.Controllers.LinePointer::renderers
LineRendererU5BU5D_t2548926732* ___renderers_21;
// System.Single HoloToolkit.Unity.Controllers.LinePointer::maxDistance
float ___maxDistance_22;
public:
inline static int32_t get_offset_of_line_20() { return static_cast<int32_t>(offsetof(LinePointer_t114985340, ___line_20)); }
inline Line_t549989228 * get_line_20() const { return ___line_20; }
inline Line_t549989228 ** get_address_of_line_20() { return &___line_20; }
inline void set_line_20(Line_t549989228 * value)
{
___line_20 = value;
Il2CppCodeGenWriteBarrier((&___line_20), value);
}
inline static int32_t get_offset_of_renderers_21() { return static_cast<int32_t>(offsetof(LinePointer_t114985340, ___renderers_21)); }
inline LineRendererU5BU5D_t2548926732* get_renderers_21() const { return ___renderers_21; }
inline LineRendererU5BU5D_t2548926732** get_address_of_renderers_21() { return &___renderers_21; }
inline void set_renderers_21(LineRendererU5BU5D_t2548926732* value)
{
___renderers_21 = value;
Il2CppCodeGenWriteBarrier((&___renderers_21), value);
}
inline static int32_t get_offset_of_maxDistance_22() { return static_cast<int32_t>(offsetof(LinePointer_t114985340, ___maxDistance_22)); }
inline float get_maxDistance_22() const { return ___maxDistance_22; }
inline float* get_address_of_maxDistance_22() { return &___maxDistance_22; }
inline void set_maxDistance_22(float value)
{
___maxDistance_22 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LINEPOINTER_T114985340_H
#ifndef ATTACHTOCONTROLLER_T1213746185_H
#define ATTACHTOCONTROLLER_T1213746185_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.InputModule.AttachToController
struct AttachToController_t1213746185 : public ControllerFinder_t3151550888
{
public:
// System.Boolean HoloToolkit.Unity.InputModule.AttachToController::SetChildrenInactiveWhenDetached
bool ___SetChildrenInactiveWhenDetached_6;
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.AttachToController::PositionOffset
Vector3_t3722313464 ___PositionOffset_7;
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.AttachToController::RotationOffset
Vector3_t3722313464 ___RotationOffset_8;
// UnityEngine.Vector3 HoloToolkit.Unity.InputModule.AttachToController::ScaleOffset
Vector3_t3722313464 ___ScaleOffset_9;
// System.Boolean HoloToolkit.Unity.InputModule.AttachToController::SetScaleOnAttach
bool ___SetScaleOnAttach_10;
// System.Boolean HoloToolkit.Unity.InputModule.AttachToController::<IsAttached>k__BackingField
bool ___U3CIsAttachedU3Ek__BackingField_11;
public:
inline static int32_t get_offset_of_SetChildrenInactiveWhenDetached_6() { return static_cast<int32_t>(offsetof(AttachToController_t1213746185, ___SetChildrenInactiveWhenDetached_6)); }
inline bool get_SetChildrenInactiveWhenDetached_6() const { return ___SetChildrenInactiveWhenDetached_6; }
inline bool* get_address_of_SetChildrenInactiveWhenDetached_6() { return &___SetChildrenInactiveWhenDetached_6; }
inline void set_SetChildrenInactiveWhenDetached_6(bool value)
{
___SetChildrenInactiveWhenDetached_6 = value;
}
inline static int32_t get_offset_of_PositionOffset_7() { return static_cast<int32_t>(offsetof(AttachToController_t1213746185, ___PositionOffset_7)); }
inline Vector3_t3722313464 get_PositionOffset_7() const { return ___PositionOffset_7; }
inline Vector3_t3722313464 * get_address_of_PositionOffset_7() { return &___PositionOffset_7; }
inline void set_PositionOffset_7(Vector3_t3722313464 value)
{
___PositionOffset_7 = value;
}
inline static int32_t get_offset_of_RotationOffset_8() { return static_cast<int32_t>(offsetof(AttachToController_t1213746185, ___RotationOffset_8)); }
inline Vector3_t3722313464 get_RotationOffset_8() const { return ___RotationOffset_8; }
inline Vector3_t3722313464 * get_address_of_RotationOffset_8() { return &___RotationOffset_8; }
inline void set_RotationOffset_8(Vector3_t3722313464 value)
{
___RotationOffset_8 = value;
}
inline static int32_t get_offset_of_ScaleOffset_9() { return static_cast<int32_t>(offsetof(AttachToController_t1213746185, ___ScaleOffset_9)); }
inline Vector3_t3722313464 get_ScaleOffset_9() const { return ___ScaleOffset_9; }
inline Vector3_t3722313464 * get_address_of_ScaleOffset_9() { return &___ScaleOffset_9; }
inline void set_ScaleOffset_9(Vector3_t3722313464 value)
{
___ScaleOffset_9 = value;
}
inline static int32_t get_offset_of_SetScaleOnAttach_10() { return static_cast<int32_t>(offsetof(AttachToController_t1213746185, ___SetScaleOnAttach_10)); }
inline bool get_SetScaleOnAttach_10() const { return ___SetScaleOnAttach_10; }
inline bool* get_address_of_SetScaleOnAttach_10() { return &___SetScaleOnAttach_10; }
inline void set_SetScaleOnAttach_10(bool value)
{
___SetScaleOnAttach_10 = value;
}
inline static int32_t get_offset_of_U3CIsAttachedU3Ek__BackingField_11() { return static_cast<int32_t>(offsetof(AttachToController_t1213746185, ___U3CIsAttachedU3Ek__BackingField_11)); }
inline bool get_U3CIsAttachedU3Ek__BackingField_11() const { return ___U3CIsAttachedU3Ek__BackingField_11; }
inline bool* get_address_of_U3CIsAttachedU3Ek__BackingField_11() { return &___U3CIsAttachedU3Ek__BackingField_11; }
inline void set_U3CIsAttachedU3Ek__BackingField_11(bool value)
{
___U3CIsAttachedU3Ek__BackingField_11 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ATTACHTOCONTROLLER_T1213746185_H
#ifndef OBJECTSPAWNER_T3925816580_H
#define OBJECTSPAWNER_T3925816580_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.ControllerExamples.ObjectSpawner
struct ObjectSpawner_t3925816580 : public AttachToController_t1213746185
{
public:
// UnityEngine.Transform HoloToolkit.Unity.ControllerExamples.ObjectSpawner::displayParent
Transform_t3600365921 * ___displayParent_12;
// UnityEngine.Transform HoloToolkit.Unity.ControllerExamples.ObjectSpawner::scaleParent
Transform_t3600365921 * ___scaleParent_13;
// UnityEngine.Transform HoloToolkit.Unity.ControllerExamples.ObjectSpawner::spawnParent
Transform_t3600365921 * ___spawnParent_14;
// UnityEngine.MeshFilter HoloToolkit.Unity.ControllerExamples.ObjectSpawner::displayObject
MeshFilter_t3523625662 * ___displayObject_15;
// UnityEngine.Material HoloToolkit.Unity.ControllerExamples.ObjectSpawner::objectMaterial
Material_t340375123 * ___objectMaterial_16;
// HoloToolkit.Unity.ControllerExamples.ColorPickerWheel HoloToolkit.Unity.ControllerExamples.ObjectSpawner::colorSource
ColorPickerWheel_t2235220782 * ___colorSource_17;
// UnityEngine.Mesh[] HoloToolkit.Unity.ControllerExamples.ObjectSpawner::availableMeshes
MeshU5BU5D_t3972987605* ___availableMeshes_18;
// UnityEngine.Animator HoloToolkit.Unity.ControllerExamples.ObjectSpawner::animator
Animator_t434523843 * ___animator_19;
// System.Int32 HoloToolkit.Unity.ControllerExamples.ObjectSpawner::meshIndex
int32_t ___meshIndex_20;
// HoloToolkit.Unity.ControllerExamples.ObjectSpawner/StateEnum HoloToolkit.Unity.ControllerExamples.ObjectSpawner::state
int32_t ___state_21;
// UnityEngine.Material HoloToolkit.Unity.ControllerExamples.ObjectSpawner::instantiatedMaterial
Material_t340375123 * ___instantiatedMaterial_22;
public:
inline static int32_t get_offset_of_displayParent_12() { return static_cast<int32_t>(offsetof(ObjectSpawner_t3925816580, ___displayParent_12)); }
inline Transform_t3600365921 * get_displayParent_12() const { return ___displayParent_12; }
inline Transform_t3600365921 ** get_address_of_displayParent_12() { return &___displayParent_12; }
inline void set_displayParent_12(Transform_t3600365921 * value)
{
___displayParent_12 = value;
Il2CppCodeGenWriteBarrier((&___displayParent_12), value);
}
inline static int32_t get_offset_of_scaleParent_13() { return static_cast<int32_t>(offsetof(ObjectSpawner_t3925816580, ___scaleParent_13)); }
inline Transform_t3600365921 * get_scaleParent_13() const { return ___scaleParent_13; }
inline Transform_t3600365921 ** get_address_of_scaleParent_13() { return &___scaleParent_13; }
inline void set_scaleParent_13(Transform_t3600365921 * value)
{
___scaleParent_13 = value;
Il2CppCodeGenWriteBarrier((&___scaleParent_13), value);
}
inline static int32_t get_offset_of_spawnParent_14() { return static_cast<int32_t>(offsetof(ObjectSpawner_t3925816580, ___spawnParent_14)); }
inline Transform_t3600365921 * get_spawnParent_14() const { return ___spawnParent_14; }
inline Transform_t3600365921 ** get_address_of_spawnParent_14() { return &___spawnParent_14; }
inline void set_spawnParent_14(Transform_t3600365921 * value)
{
___spawnParent_14 = value;
Il2CppCodeGenWriteBarrier((&___spawnParent_14), value);
}
inline static int32_t get_offset_of_displayObject_15() { return static_cast<int32_t>(offsetof(ObjectSpawner_t3925816580, ___displayObject_15)); }
inline MeshFilter_t3523625662 * get_displayObject_15() const { return ___displayObject_15; }
inline MeshFilter_t3523625662 ** get_address_of_displayObject_15() { return &___displayObject_15; }
inline void set_displayObject_15(MeshFilter_t3523625662 * value)
{
___displayObject_15 = value;
Il2CppCodeGenWriteBarrier((&___displayObject_15), value);
}
inline static int32_t get_offset_of_objectMaterial_16() { return static_cast<int32_t>(offsetof(ObjectSpawner_t3925816580, ___objectMaterial_16)); }
inline Material_t340375123 * get_objectMaterial_16() const { return ___objectMaterial_16; }
inline Material_t340375123 ** get_address_of_objectMaterial_16() { return &___objectMaterial_16; }
inline void set_objectMaterial_16(Material_t340375123 * value)
{
___objectMaterial_16 = value;
Il2CppCodeGenWriteBarrier((&___objectMaterial_16), value);
}
inline static int32_t get_offset_of_colorSource_17() { return static_cast<int32_t>(offsetof(ObjectSpawner_t3925816580, ___colorSource_17)); }
inline ColorPickerWheel_t2235220782 * get_colorSource_17() const { return ___colorSource_17; }
inline ColorPickerWheel_t2235220782 ** get_address_of_colorSource_17() { return &___colorSource_17; }
inline void set_colorSource_17(ColorPickerWheel_t2235220782 * value)
{
___colorSource_17 = value;
Il2CppCodeGenWriteBarrier((&___colorSource_17), value);
}
inline static int32_t get_offset_of_availableMeshes_18() { return static_cast<int32_t>(offsetof(ObjectSpawner_t3925816580, ___availableMeshes_18)); }
inline MeshU5BU5D_t3972987605* get_availableMeshes_18() const { return ___availableMeshes_18; }
inline MeshU5BU5D_t3972987605** get_address_of_availableMeshes_18() { return &___availableMeshes_18; }
inline void set_availableMeshes_18(MeshU5BU5D_t3972987605* value)
{
___availableMeshes_18 = value;
Il2CppCodeGenWriteBarrier((&___availableMeshes_18), value);
}
inline static int32_t get_offset_of_animator_19() { return static_cast<int32_t>(offsetof(ObjectSpawner_t3925816580, ___animator_19)); }
inline Animator_t434523843 * get_animator_19() const { return ___animator_19; }
inline Animator_t434523843 ** get_address_of_animator_19() { return &___animator_19; }
inline void set_animator_19(Animator_t434523843 * value)
{
___animator_19 = value;
Il2CppCodeGenWriteBarrier((&___animator_19), value);
}
inline static int32_t get_offset_of_meshIndex_20() { return static_cast<int32_t>(offsetof(ObjectSpawner_t3925816580, ___meshIndex_20)); }
inline int32_t get_meshIndex_20() const { return ___meshIndex_20; }
inline int32_t* get_address_of_meshIndex_20() { return &___meshIndex_20; }
inline void set_meshIndex_20(int32_t value)
{
___meshIndex_20 = value;
}
inline static int32_t get_offset_of_state_21() { return static_cast<int32_t>(offsetof(ObjectSpawner_t3925816580, ___state_21)); }
inline int32_t get_state_21() const { return ___state_21; }
inline int32_t* get_address_of_state_21() { return &___state_21; }
inline void set_state_21(int32_t value)
{
___state_21 = value;
}
inline static int32_t get_offset_of_instantiatedMaterial_22() { return static_cast<int32_t>(offsetof(ObjectSpawner_t3925816580, ___instantiatedMaterial_22)); }
inline Material_t340375123 * get_instantiatedMaterial_22() const { return ___instantiatedMaterial_22; }
inline Material_t340375123 ** get_address_of_instantiatedMaterial_22() { return &___instantiatedMaterial_22; }
inline void set_instantiatedMaterial_22(Material_t340375123 * value)
{
___instantiatedMaterial_22 = value;
Il2CppCodeGenWriteBarrier((&___instantiatedMaterial_22), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // OBJECTSPAWNER_T3925816580_H
#ifndef COLORPICKERWHEEL_T2235220782_H
#define COLORPICKERWHEEL_T2235220782_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.ControllerExamples.ColorPickerWheel
struct ColorPickerWheel_t2235220782 : public AttachToController_t1213746185
{
public:
// System.Boolean HoloToolkit.Unity.ControllerExamples.ColorPickerWheel::visible
bool ___visible_12;
// UnityEngine.Transform HoloToolkit.Unity.ControllerExamples.ColorPickerWheel::selectorTransform
Transform_t3600365921 * ___selectorTransform_13;
// UnityEngine.Renderer HoloToolkit.Unity.ControllerExamples.ColorPickerWheel::selectorRenderer
Renderer_t2627027031 * ___selectorRenderer_14;
// System.Single HoloToolkit.Unity.ControllerExamples.ColorPickerWheel::inputScale
float ___inputScale_15;
// UnityEngine.Color HoloToolkit.Unity.ControllerExamples.ColorPickerWheel::selectedColor
Color_t2555686324 ___selectedColor_16;
// UnityEngine.Texture2D HoloToolkit.Unity.ControllerExamples.ColorPickerWheel::colorWheelTexture
Texture2D_t3840446185 * ___colorWheelTexture_17;
// UnityEngine.GameObject HoloToolkit.Unity.ControllerExamples.ColorPickerWheel::colorWheelObject
GameObject_t1113636619 * ___colorWheelObject_18;
// UnityEngine.Animator HoloToolkit.Unity.ControllerExamples.ColorPickerWheel::animator
Animator_t434523843 * ___animator_19;
// System.Single HoloToolkit.Unity.ControllerExamples.ColorPickerWheel::timeout
float ___timeout_20;
// UnityEngine.Vector2 HoloToolkit.Unity.ControllerExamples.ColorPickerWheel::selectorPosition
Vector2_t2156229523 ___selectorPosition_21;
// System.Single HoloToolkit.Unity.ControllerExamples.ColorPickerWheel::lastTimeVisible
float ___lastTimeVisible_22;
// System.Boolean HoloToolkit.Unity.ControllerExamples.ColorPickerWheel::visibleLastFrame
bool ___visibleLastFrame_23;
public:
inline static int32_t get_offset_of_visible_12() { return static_cast<int32_t>(offsetof(ColorPickerWheel_t2235220782, ___visible_12)); }
inline bool get_visible_12() const { return ___visible_12; }
inline bool* get_address_of_visible_12() { return &___visible_12; }
inline void set_visible_12(bool value)
{
___visible_12 = value;
}
inline static int32_t get_offset_of_selectorTransform_13() { return static_cast<int32_t>(offsetof(ColorPickerWheel_t2235220782, ___selectorTransform_13)); }
inline Transform_t3600365921 * get_selectorTransform_13() const { return ___selectorTransform_13; }
inline Transform_t3600365921 ** get_address_of_selectorTransform_13() { return &___selectorTransform_13; }
inline void set_selectorTransform_13(Transform_t3600365921 * value)
{
___selectorTransform_13 = value;
Il2CppCodeGenWriteBarrier((&___selectorTransform_13), value);
}
inline static int32_t get_offset_of_selectorRenderer_14() { return static_cast<int32_t>(offsetof(ColorPickerWheel_t2235220782, ___selectorRenderer_14)); }
inline Renderer_t2627027031 * get_selectorRenderer_14() const { return ___selectorRenderer_14; }
inline Renderer_t2627027031 ** get_address_of_selectorRenderer_14() { return &___selectorRenderer_14; }
inline void set_selectorRenderer_14(Renderer_t2627027031 * value)
{
___selectorRenderer_14 = value;
Il2CppCodeGenWriteBarrier((&___selectorRenderer_14), value);
}
inline static int32_t get_offset_of_inputScale_15() { return static_cast<int32_t>(offsetof(ColorPickerWheel_t2235220782, ___inputScale_15)); }
inline float get_inputScale_15() const { return ___inputScale_15; }
inline float* get_address_of_inputScale_15() { return &___inputScale_15; }
inline void set_inputScale_15(float value)
{
___inputScale_15 = value;
}
inline static int32_t get_offset_of_selectedColor_16() { return static_cast<int32_t>(offsetof(ColorPickerWheel_t2235220782, ___selectedColor_16)); }
inline Color_t2555686324 get_selectedColor_16() const { return ___selectedColor_16; }
inline Color_t2555686324 * get_address_of_selectedColor_16() { return &___selectedColor_16; }
inline void set_selectedColor_16(Color_t2555686324 value)
{
___selectedColor_16 = value;
}
inline static int32_t get_offset_of_colorWheelTexture_17() { return static_cast<int32_t>(offsetof(ColorPickerWheel_t2235220782, ___colorWheelTexture_17)); }
inline Texture2D_t3840446185 * get_colorWheelTexture_17() const { return ___colorWheelTexture_17; }
inline Texture2D_t3840446185 ** get_address_of_colorWheelTexture_17() { return &___colorWheelTexture_17; }
inline void set_colorWheelTexture_17(Texture2D_t3840446185 * value)
{
___colorWheelTexture_17 = value;
Il2CppCodeGenWriteBarrier((&___colorWheelTexture_17), value);
}
inline static int32_t get_offset_of_colorWheelObject_18() { return static_cast<int32_t>(offsetof(ColorPickerWheel_t2235220782, ___colorWheelObject_18)); }
inline GameObject_t1113636619 * get_colorWheelObject_18() const { return ___colorWheelObject_18; }
inline GameObject_t1113636619 ** get_address_of_colorWheelObject_18() { return &___colorWheelObject_18; }
inline void set_colorWheelObject_18(GameObject_t1113636619 * value)
{
___colorWheelObject_18 = value;
Il2CppCodeGenWriteBarrier((&___colorWheelObject_18), value);
}
inline static int32_t get_offset_of_animator_19() { return static_cast<int32_t>(offsetof(ColorPickerWheel_t2235220782, ___animator_19)); }
inline Animator_t434523843 * get_animator_19() const { return ___animator_19; }
inline Animator_t434523843 ** get_address_of_animator_19() { return &___animator_19; }
inline void set_animator_19(Animator_t434523843 * value)
{
___animator_19 = value;
Il2CppCodeGenWriteBarrier((&___animator_19), value);
}
inline static int32_t get_offset_of_timeout_20() { return static_cast<int32_t>(offsetof(ColorPickerWheel_t2235220782, ___timeout_20)); }
inline float get_timeout_20() const { return ___timeout_20; }
inline float* get_address_of_timeout_20() { return &___timeout_20; }
inline void set_timeout_20(float value)
{
___timeout_20 = value;
}
inline static int32_t get_offset_of_selectorPosition_21() { return static_cast<int32_t>(offsetof(ColorPickerWheel_t2235220782, ___selectorPosition_21)); }
inline Vector2_t2156229523 get_selectorPosition_21() const { return ___selectorPosition_21; }
inline Vector2_t2156229523 * get_address_of_selectorPosition_21() { return &___selectorPosition_21; }
inline void set_selectorPosition_21(Vector2_t2156229523 value)
{
___selectorPosition_21 = value;
}
inline static int32_t get_offset_of_lastTimeVisible_22() { return static_cast<int32_t>(offsetof(ColorPickerWheel_t2235220782, ___lastTimeVisible_22)); }
inline float get_lastTimeVisible_22() const { return ___lastTimeVisible_22; }
inline float* get_address_of_lastTimeVisible_22() { return &___lastTimeVisible_22; }
inline void set_lastTimeVisible_22(float value)
{
___lastTimeVisible_22 = value;
}
inline static int32_t get_offset_of_visibleLastFrame_23() { return static_cast<int32_t>(offsetof(ColorPickerWheel_t2235220782, ___visibleLastFrame_23)); }
inline bool get_visibleLastFrame_23() const { return ___visibleLastFrame_23; }
inline bool* get_address_of_visibleLastFrame_23() { return &___visibleLastFrame_23; }
inline void set_visibleLastFrame_23(bool value)
{
___visibleLastFrame_23 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // COLORPICKERWHEEL_T2235220782_H
#ifndef POINTERINPUT_T2201074199_H
#define POINTERINPUT_T2201074199_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.Controllers.PointerInput
struct PointerInput_t2201074199 : public AttachToController_t1213746185
{
public:
// HoloToolkit.Unity.Controllers.PhysicsPointer HoloToolkit.Unity.Controllers.PointerInput::pointer
PhysicsPointer_t2887364969 * ___pointer_12;
// UnityEngine.XR.WSA.Input.InteractionSourcePressType HoloToolkit.Unity.Controllers.PointerInput::activePressType
int32_t ___activePressType_13;
public:
inline static int32_t get_offset_of_pointer_12() { return static_cast<int32_t>(offsetof(PointerInput_t2201074199, ___pointer_12)); }
inline PhysicsPointer_t2887364969 * get_pointer_12() const { return ___pointer_12; }
inline PhysicsPointer_t2887364969 ** get_address_of_pointer_12() { return &___pointer_12; }
inline void set_pointer_12(PhysicsPointer_t2887364969 * value)
{
___pointer_12 = value;
Il2CppCodeGenWriteBarrier((&___pointer_12), value);
}
inline static int32_t get_offset_of_activePressType_13() { return static_cast<int32_t>(offsetof(PointerInput_t2201074199, ___activePressType_13)); }
inline int32_t get_activePressType_13() const { return ___activePressType_13; }
inline int32_t* get_address_of_activePressType_13() { return &___activePressType_13; }
inline void set_activePressType_13(int32_t value)
{
___activePressType_13 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // POINTERINPUT_T2201074199_H
#ifndef BRUSHSELECTOR_T2086558127_H
#define BRUSHSELECTOR_T2086558127_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HoloToolkit.Unity.ControllerExamples.BrushSelector
struct BrushSelector_t2086558127 : public AttachToController_t1213746185
{
public:
// HoloToolkit.Unity.Design.LineObjectCollection HoloToolkit.Unity.ControllerExamples.BrushSelector::brushCollection
LineObjectCollection_t2817952665 * ___brushCollection_12;
// HoloToolkit.Unity.ControllerExamples.BrushSelector/SwipeEnum HoloToolkit.Unity.ControllerExamples.BrushSelector::currentAction
int32_t ___currentAction_13;
// UnityEngine.AnimationCurve HoloToolkit.Unity.ControllerExamples.BrushSelector::swipeCurve
AnimationCurve_t3046754366 * ___swipeCurve_14;
// System.Single HoloToolkit.Unity.ControllerExamples.BrushSelector::swipeDuration
float ___swipeDuration_15;
// System.Int32 HoloToolkit.Unity.ControllerExamples.BrushSelector::displayBrushindex
int32_t ___displayBrushindex_16;
// System.Int32 HoloToolkit.Unity.ControllerExamples.BrushSelector::activeBrushindex
int32_t ___activeBrushindex_17;
// HoloToolkit.Unity.ControllerExamples.ColorPickerWheel HoloToolkit.Unity.ControllerExamples.BrushSelector::colorPicker
ColorPickerWheel_t2235220782 * ___colorPicker_18;
// System.Single HoloToolkit.Unity.ControllerExamples.BrushSelector::menuTimeout
float ___menuTimeout_19;
// System.Single HoloToolkit.Unity.ControllerExamples.BrushSelector::selectPressedDrawThreshold
float ___selectPressedDrawThreshold_20;
// System.Single HoloToolkit.Unity.ControllerExamples.BrushSelector::selectPressedStartValue
float ___selectPressedStartValue_21;
// UnityEngine.AnimationCurve HoloToolkit.Unity.ControllerExamples.BrushSelector::selectWidthCurve
AnimationCurve_t3046754366 * ___selectWidthCurve_22;
// UnityEngine.Material HoloToolkit.Unity.ControllerExamples.BrushSelector::touchpadMaterial
Material_t340375123 * ___touchpadMaterial_23;
// UnityEngine.Gradient HoloToolkit.Unity.ControllerExamples.BrushSelector::touchpadColor
Gradient_t3067099924 * ___touchpadColor_24;
// System.Single HoloToolkit.Unity.ControllerExamples.BrushSelector::touchpadGlowLossTime
float ___touchpadGlowLossTime_25;
// System.Single HoloToolkit.Unity.ControllerExamples.BrushSelector::touchpadTouchTime
float ___touchpadTouchTime_26;
// UnityEngine.MeshRenderer HoloToolkit.Unity.ControllerExamples.BrushSelector::touchpadRenderer
MeshRenderer_t587009260 * ___touchpadRenderer_27;
// System.Single HoloToolkit.Unity.ControllerExamples.BrushSelector::menuOpenTime
float ___menuOpenTime_28;
// System.Boolean HoloToolkit.Unity.ControllerExamples.BrushSelector::menuOpen
bool ___menuOpen_29;
// System.Boolean HoloToolkit.Unity.ControllerExamples.BrushSelector::switchingBrush
bool ___switchingBrush_30;
// System.Single HoloToolkit.Unity.ControllerExamples.BrushSelector::startOffset
float ___startOffset_31;
// System.Single HoloToolkit.Unity.ControllerExamples.BrushSelector::targetOffset
float ___targetOffset_32;
// System.Single HoloToolkit.Unity.ControllerExamples.BrushSelector::startTime
float ___startTime_33;
// System.Boolean HoloToolkit.Unity.ControllerExamples.BrushSelector::resetInput
bool ___resetInput_34;
// System.Single HoloToolkit.Unity.ControllerExamples.BrushSelector::selectPressedSmooth
float ___selectPressedSmooth_35;
// HoloToolkit.Unity.ControllerExamples.Brush HoloToolkit.Unity.ControllerExamples.BrushSelector::activeBrush
Brush_t1548626474 * ___activeBrush_36;
// UnityEngine.Material HoloToolkit.Unity.ControllerExamples.BrushSelector::originalTouchpadMaterial
Material_t340375123 * ___originalTouchpadMaterial_37;
public:
inline static int32_t get_offset_of_brushCollection_12() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___brushCollection_12)); }
inline LineObjectCollection_t2817952665 * get_brushCollection_12() const { return ___brushCollection_12; }
inline LineObjectCollection_t2817952665 ** get_address_of_brushCollection_12() { return &___brushCollection_12; }
inline void set_brushCollection_12(LineObjectCollection_t2817952665 * value)
{
___brushCollection_12 = value;
Il2CppCodeGenWriteBarrier((&___brushCollection_12), value);
}
inline static int32_t get_offset_of_currentAction_13() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___currentAction_13)); }
inline int32_t get_currentAction_13() const { return ___currentAction_13; }
inline int32_t* get_address_of_currentAction_13() { return &___currentAction_13; }
inline void set_currentAction_13(int32_t value)
{
___currentAction_13 = value;
}
inline static int32_t get_offset_of_swipeCurve_14() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___swipeCurve_14)); }
inline AnimationCurve_t3046754366 * get_swipeCurve_14() const { return ___swipeCurve_14; }
inline AnimationCurve_t3046754366 ** get_address_of_swipeCurve_14() { return &___swipeCurve_14; }
inline void set_swipeCurve_14(AnimationCurve_t3046754366 * value)
{
___swipeCurve_14 = value;
Il2CppCodeGenWriteBarrier((&___swipeCurve_14), value);
}
inline static int32_t get_offset_of_swipeDuration_15() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___swipeDuration_15)); }
inline float get_swipeDuration_15() const { return ___swipeDuration_15; }
inline float* get_address_of_swipeDuration_15() { return &___swipeDuration_15; }
inline void set_swipeDuration_15(float value)
{
___swipeDuration_15 = value;
}
inline static int32_t get_offset_of_displayBrushindex_16() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___displayBrushindex_16)); }
inline int32_t get_displayBrushindex_16() const { return ___displayBrushindex_16; }
inline int32_t* get_address_of_displayBrushindex_16() { return &___displayBrushindex_16; }
inline void set_displayBrushindex_16(int32_t value)
{
___displayBrushindex_16 = value;
}
inline static int32_t get_offset_of_activeBrushindex_17() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___activeBrushindex_17)); }
inline int32_t get_activeBrushindex_17() const { return ___activeBrushindex_17; }
inline int32_t* get_address_of_activeBrushindex_17() { return &___activeBrushindex_17; }
inline void set_activeBrushindex_17(int32_t value)
{
___activeBrushindex_17 = value;
}
inline static int32_t get_offset_of_colorPicker_18() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___colorPicker_18)); }
inline ColorPickerWheel_t2235220782 * get_colorPicker_18() const { return ___colorPicker_18; }
inline ColorPickerWheel_t2235220782 ** get_address_of_colorPicker_18() { return &___colorPicker_18; }
inline void set_colorPicker_18(ColorPickerWheel_t2235220782 * value)
{
___colorPicker_18 = value;
Il2CppCodeGenWriteBarrier((&___colorPicker_18), value);
}
inline static int32_t get_offset_of_menuTimeout_19() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___menuTimeout_19)); }
inline float get_menuTimeout_19() const { return ___menuTimeout_19; }
inline float* get_address_of_menuTimeout_19() { return &___menuTimeout_19; }
inline void set_menuTimeout_19(float value)
{
___menuTimeout_19 = value;
}
inline static int32_t get_offset_of_selectPressedDrawThreshold_20() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___selectPressedDrawThreshold_20)); }
inline float get_selectPressedDrawThreshold_20() const { return ___selectPressedDrawThreshold_20; }
inline float* get_address_of_selectPressedDrawThreshold_20() { return &___selectPressedDrawThreshold_20; }
inline void set_selectPressedDrawThreshold_20(float value)
{
___selectPressedDrawThreshold_20 = value;
}
inline static int32_t get_offset_of_selectPressedStartValue_21() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___selectPressedStartValue_21)); }
inline float get_selectPressedStartValue_21() const { return ___selectPressedStartValue_21; }
inline float* get_address_of_selectPressedStartValue_21() { return &___selectPressedStartValue_21; }
inline void set_selectPressedStartValue_21(float value)
{
___selectPressedStartValue_21 = value;
}
inline static int32_t get_offset_of_selectWidthCurve_22() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___selectWidthCurve_22)); }
inline AnimationCurve_t3046754366 * get_selectWidthCurve_22() const { return ___selectWidthCurve_22; }
inline AnimationCurve_t3046754366 ** get_address_of_selectWidthCurve_22() { return &___selectWidthCurve_22; }
inline void set_selectWidthCurve_22(AnimationCurve_t3046754366 * value)
{
___selectWidthCurve_22 = value;
Il2CppCodeGenWriteBarrier((&___selectWidthCurve_22), value);
}
inline static int32_t get_offset_of_touchpadMaterial_23() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___touchpadMaterial_23)); }
inline Material_t340375123 * get_touchpadMaterial_23() const { return ___touchpadMaterial_23; }
inline Material_t340375123 ** get_address_of_touchpadMaterial_23() { return &___touchpadMaterial_23; }
inline void set_touchpadMaterial_23(Material_t340375123 * value)
{
___touchpadMaterial_23 = value;
Il2CppCodeGenWriteBarrier((&___touchpadMaterial_23), value);
}
inline static int32_t get_offset_of_touchpadColor_24() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___touchpadColor_24)); }
inline Gradient_t3067099924 * get_touchpadColor_24() const { return ___touchpadColor_24; }
inline Gradient_t3067099924 ** get_address_of_touchpadColor_24() { return &___touchpadColor_24; }
inline void set_touchpadColor_24(Gradient_t3067099924 * value)
{
___touchpadColor_24 = value;
Il2CppCodeGenWriteBarrier((&___touchpadColor_24), value);
}
inline static int32_t get_offset_of_touchpadGlowLossTime_25() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___touchpadGlowLossTime_25)); }
inline float get_touchpadGlowLossTime_25() const { return ___touchpadGlowLossTime_25; }
inline float* get_address_of_touchpadGlowLossTime_25() { return &___touchpadGlowLossTime_25; }
inline void set_touchpadGlowLossTime_25(float value)
{
___touchpadGlowLossTime_25 = value;
}
inline static int32_t get_offset_of_touchpadTouchTime_26() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___touchpadTouchTime_26)); }
inline float get_touchpadTouchTime_26() const { return ___touchpadTouchTime_26; }
inline float* get_address_of_touchpadTouchTime_26() { return &___touchpadTouchTime_26; }
inline void set_touchpadTouchTime_26(float value)
{
___touchpadTouchTime_26 = value;
}
inline static int32_t get_offset_of_touchpadRenderer_27() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___touchpadRenderer_27)); }
inline MeshRenderer_t587009260 * get_touchpadRenderer_27() const { return ___touchpadRenderer_27; }
inline MeshRenderer_t587009260 ** get_address_of_touchpadRenderer_27() { return &___touchpadRenderer_27; }
inline void set_touchpadRenderer_27(MeshRenderer_t587009260 * value)
{
___touchpadRenderer_27 = value;
Il2CppCodeGenWriteBarrier((&___touchpadRenderer_27), value);
}
inline static int32_t get_offset_of_menuOpenTime_28() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___menuOpenTime_28)); }
inline float get_menuOpenTime_28() const { return ___menuOpenTime_28; }
inline float* get_address_of_menuOpenTime_28() { return &___menuOpenTime_28; }
inline void set_menuOpenTime_28(float value)
{
___menuOpenTime_28 = value;
}
inline static int32_t get_offset_of_menuOpen_29() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___menuOpen_29)); }
inline bool get_menuOpen_29() const { return ___menuOpen_29; }
inline bool* get_address_of_menuOpen_29() { return &___menuOpen_29; }
inline void set_menuOpen_29(bool value)
{
___menuOpen_29 = value;
}
inline static int32_t get_offset_of_switchingBrush_30() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___switchingBrush_30)); }
inline bool get_switchingBrush_30() const { return ___switchingBrush_30; }
inline bool* get_address_of_switchingBrush_30() { return &___switchingBrush_30; }
inline void set_switchingBrush_30(bool value)
{
___switchingBrush_30 = value;
}
inline static int32_t get_offset_of_startOffset_31() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___startOffset_31)); }
inline float get_startOffset_31() const { return ___startOffset_31; }
inline float* get_address_of_startOffset_31() { return &___startOffset_31; }
inline void set_startOffset_31(float value)
{
___startOffset_31 = value;
}
inline static int32_t get_offset_of_targetOffset_32() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___targetOffset_32)); }
inline float get_targetOffset_32() const { return ___targetOffset_32; }
inline float* get_address_of_targetOffset_32() { return &___targetOffset_32; }
inline void set_targetOffset_32(float value)
{
___targetOffset_32 = value;
}
inline static int32_t get_offset_of_startTime_33() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___startTime_33)); }
inline float get_startTime_33() const { return ___startTime_33; }
inline float* get_address_of_startTime_33() { return &___startTime_33; }
inline void set_startTime_33(float value)
{
___startTime_33 = value;
}
inline static int32_t get_offset_of_resetInput_34() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___resetInput_34)); }
inline bool get_resetInput_34() const { return ___resetInput_34; }
inline bool* get_address_of_resetInput_34() { return &___resetInput_34; }
inline void set_resetInput_34(bool value)
{
___resetInput_34 = value;
}
inline static int32_t get_offset_of_selectPressedSmooth_35() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___selectPressedSmooth_35)); }
inline float get_selectPressedSmooth_35() const { return ___selectPressedSmooth_35; }
inline float* get_address_of_selectPressedSmooth_35() { return &___selectPressedSmooth_35; }
inline void set_selectPressedSmooth_35(float value)
{
___selectPressedSmooth_35 = value;
}
inline static int32_t get_offset_of_activeBrush_36() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___activeBrush_36)); }
inline Brush_t1548626474 * get_activeBrush_36() const { return ___activeBrush_36; }
inline Brush_t1548626474 ** get_address_of_activeBrush_36() { return &___activeBrush_36; }
inline void set_activeBrush_36(Brush_t1548626474 * value)
{
___activeBrush_36 = value;
Il2CppCodeGenWriteBarrier((&___activeBrush_36), value);
}
inline static int32_t get_offset_of_originalTouchpadMaterial_37() { return static_cast<int32_t>(offsetof(BrushSelector_t2086558127, ___originalTouchpadMaterial_37)); }
inline Material_t340375123 * get_originalTouchpadMaterial_37() const { return ___originalTouchpadMaterial_37; }
inline Material_t340375123 ** get_address_of_originalTouchpadMaterial_37() { return &___originalTouchpadMaterial_37; }
inline void set_originalTouchpadMaterial_37(Material_t340375123 * value)
{
___originalTouchpadMaterial_37 = value;
Il2CppCodeGenWriteBarrier((&___originalTouchpadMaterial_37), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BRUSHSELECTOR_T2086558127_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6400 = { sizeof (AxisController_t4134225610), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6400[20] =
{
AxisController_t4134225610::get_offset_of_SensitivityScale_2(),
AxisController_t4134225610::get_offset_of_UseUnscaledTime_3(),
AxisController_t4134225610::get_offset_of_axisType_4(),
AxisController_t4134225610::get_offset_of_buttonType_5(),
AxisController_t4134225610::get_offset_of_InputManagerHorizontalAxisName_6(),
AxisController_t4134225610::get_offset_of_InputManagerVerticalAxisName_7(),
AxisController_t4134225610::get_offset_of_Axis0Destination_8(),
AxisController_t4134225610::get_offset_of_Axis1Destination_9(),
AxisController_t4134225610::get_offset_of_Axis2Destination_10(),
AxisController_t4134225610::get_offset_of_lastMousePosition_11(),
0,
0,
0,
0,
AxisController_t4134225610::get_offset_of_isMouseJumping_16(),
AxisController_t4134225610::get_offset_of_appHasFocus_17(),
AxisController_t4134225610::get_offset_of_usingMouse_18(),
AxisController_t4134225610::get_offset_of_inputManagerAxesNeedApproval_19(),
AxisController_t4134225610::get_offset_of_inputManagerHorizontalAxisApproved_20(),
AxisController_t4134225610::get_offset_of_inputManagerVerticalAxisApproved_21(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6401 = { sizeof (AxisType_t3765642005)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6401[15] =
{
AxisType_t3765642005::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6402 = { sizeof (AxisDestination_t1407114111)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6402[8] =
{
AxisDestination_t1407114111::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
0,
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6403 = { sizeof (ButtonController_t4125738237), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6403[2] =
{
ButtonController_t4125738237::get_offset_of_buttonType_2(),
ButtonController_t4125738237::get_offset_of_appHasFocus_3(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6404 = { sizeof (ButtonType_t2268838932)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6404[23] =
{
ButtonType_t2268838932::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6405 = { sizeof (CameraMotionInfo_t3171865163), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6405[8] =
{
CameraMotionInfo_t3171865163::get_offset_of_headVelIdleThresh_4(),
CameraMotionInfo_t3171865163::get_offset_of_headVelMoveThresh_5(),
CameraMotionInfo_t3171865163::get_offset_of_headVelocity_6(),
CameraMotionInfo_t3171865163::get_offset_of_lastHeadPos_7(),
CameraMotionInfo_t3171865163::get_offset_of_newHeadMoveDirection_8(),
CameraMotionInfo_t3171865163::get_offset_of_headMoveDirection_9(),
CameraMotionInfo_t3171865163::get_offset_of_debugDrawHeadVelocity_10(),
CameraMotionInfo_t3171865163::get_offset_of_debugDrawHeadDirection_11(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6406 = { sizeof (ControllerFinder_t3151550888), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6406[4] =
{
ControllerFinder_t3151550888::get_offset_of_element_2(),
ControllerFinder_t3151550888::get_offset_of_handedness_3(),
ControllerFinder_t3151550888::get_offset_of_elementTransform_4(),
ControllerFinder_t3151550888::get_offset_of_ControllerInfo_5(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6407 = { sizeof (CustomInputControl_t1681541923), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6407[27] =
{
CustomInputControl_t1681541923::get_offset_of_ControllerReturnFactor_2(),
CustomInputControl_t1681541923::get_offset_of_ControllerTimeBeforeReturn_3(),
CustomInputControl_t1681541923::get_offset_of_UseUnscaledTime_4(),
CustomInputControl_t1681541923::get_offset_of_PrimaryAxisTranslateControl_5(),
CustomInputControl_t1681541923::get_offset_of_SecondaryAxisTranslateControl_6(),
CustomInputControl_t1681541923::get_offset_of_PrimaryAxisRotateControl_7(),
CustomInputControl_t1681541923::get_offset_of_SecondaryAxisRotateControl_8(),
CustomInputControl_t1681541923::get_offset_of_TertiaryAxisRotateControl_9(),
CustomInputControl_t1681541923::get_offset_of_SelectButtonControl_10(),
CustomInputControl_t1681541923::get_offset_of_MenuButtonControl_11(),
CustomInputControl_t1681541923::get_offset_of_GraspControl_12(),
CustomInputControl_t1681541923::get_offset_of_ControllerSourceState_13(),
CustomInputControl_t1681541923::get_offset_of_ActiveControllerColor_14(),
CustomInputControl_t1681541923::get_offset_of_DroppedControllerColor_15(),
CustomInputControl_t1681541923::get_offset_of_VisualizeController_16(),
CustomInputControl_t1681541923::get_offset_of_ControllerVisualizer_17(),
CustomInputControl_t1681541923::get_offset_of_HandUpTexture_18(),
CustomInputControl_t1681541923::get_offset_of_HandDownTexture_19(),
CustomInputControl_t1681541923::get_offset_of_ShowPointingRay_20(),
CustomInputControl_t1681541923::get_offset_of_U3CControllerInViewU3Ek__BackingField_21(),
CustomInputControl_t1681541923::get_offset_of_InitialPosition_22(),
CustomInputControl_t1681541923::get_offset_of_localPosition_23(),
CustomInputControl_t1681541923::get_offset_of_localRotation_24(),
CustomInputControl_t1681541923::get_offset_of_visualRenderer_25(),
CustomInputControl_t1681541923::get_offset_of_visualPropertyBlock_26(),
CustomInputControl_t1681541923::get_offset_of_mainTexId_27(),
CustomInputControl_t1681541923::get_offset_of_timeBeforeReturn_28(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6408 = { sizeof (CustomInputSelector_t2305655481), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6408[7] =
{
CustomInputSelector_t2305655481::get_offset_of_simulateHandsInEditor_2(),
CustomInputSelector_t2305655481::get_offset_of_sourceType_3(),
CustomInputSelector_t2305655481::get_offset_of_sourceNumber_4(),
CustomInputSelector_t2305655481::get_offset_of_Inputs_5(),
CustomInputSelector_t2305655481::get_offset_of_mouse_6(),
CustomInputSelector_t2305655481::get_offset_of_leftHand_7(),
CustomInputSelector_t2305655481::get_offset_of_rightHand_8(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6409 = { sizeof (InputSourceType_t1321505344)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6409[3] =
{
InputSourceType_t1321505344::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6410 = { sizeof (InputSourceNumber_t4204415176)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6410[3] =
{
InputSourceNumber_t4204415176::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6411 = { sizeof (DebugInteractionSourcePose_t924263473), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6411[7] =
{
DebugInteractionSourcePose_t924263473::get_offset_of_TryGetFunctionsReturnTrue_0(),
DebugInteractionSourcePose_t924263473::get_offset_of_IsPositionAvailable_1(),
DebugInteractionSourcePose_t924263473::get_offset_of_IsRotationAvailable_2(),
DebugInteractionSourcePose_t924263473::get_offset_of_Position_3(),
DebugInteractionSourcePose_t924263473::get_offset_of_Velocity_4(),
DebugInteractionSourcePose_t924263473::get_offset_of_Rotation_5(),
DebugInteractionSourcePose_t924263473::get_offset_of_PointerRay_6(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6412 = { sizeof (DebugInteractionSourceState_t431096814)+ sizeof (RuntimeObject), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6412[5] =
{
DebugInteractionSourceState_t431096814::get_offset_of_Pressed_0() + static_cast<int32_t>(sizeof(RuntimeObject)),
DebugInteractionSourceState_t431096814::get_offset_of_Grasped_1() + static_cast<int32_t>(sizeof(RuntimeObject)),
DebugInteractionSourceState_t431096814::get_offset_of_MenuPressed_2() + static_cast<int32_t>(sizeof(RuntimeObject)),
DebugInteractionSourceState_t431096814::get_offset_of_SelectPressed_3() + static_cast<int32_t>(sizeof(RuntimeObject)),
DebugInteractionSourceState_t431096814::get_offset_of_SourcePose_4() + static_cast<int32_t>(sizeof(RuntimeObject)),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6413 = { sizeof (HandDraggable_t2374705028), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6413[22] =
{
HandDraggable_t2374705028::get_offset_of_StartedDragging_2(),
HandDraggable_t2374705028::get_offset_of_StoppedDragging_3(),
HandDraggable_t2374705028::get_offset_of_HostTransform_4(),
HandDraggable_t2374705028::get_offset_of_DistanceScale_5(),
HandDraggable_t2374705028::get_offset_of_RotationMode_6(),
HandDraggable_t2374705028::get_offset_of_PositionLerpSpeed_7(),
HandDraggable_t2374705028::get_offset_of_RotationLerpSpeed_8(),
HandDraggable_t2374705028::get_offset_of_IsDraggingEnabled_9(),
HandDraggable_t2374705028::get_offset_of_isDragging_10(),
HandDraggable_t2374705028::get_offset_of_isGazed_11(),
HandDraggable_t2374705028::get_offset_of_objRefForward_12(),
HandDraggable_t2374705028::get_offset_of_objRefUp_13(),
HandDraggable_t2374705028::get_offset_of_objRefDistance_14(),
HandDraggable_t2374705028::get_offset_of_gazeAngularOffset_15(),
HandDraggable_t2374705028::get_offset_of_handRefDistance_16(),
HandDraggable_t2374705028::get_offset_of_objRefGrabPoint_17(),
HandDraggable_t2374705028::get_offset_of_draggingPosition_18(),
HandDraggable_t2374705028::get_offset_of_draggingRotation_19(),
HandDraggable_t2374705028::get_offset_of_currentInputSource_20(),
HandDraggable_t2374705028::get_offset_of_currentInputSourceId_21(),
HandDraggable_t2374705028::get_offset_of_hostRigidbody_22(),
HandDraggable_t2374705028::get_offset_of_hostRigidbodyWasKinematic_23(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6414 = { sizeof (RotationModeEnum_t1696056988)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6414[5] =
{
RotationModeEnum_t1696056988::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6415 = { sizeof (ManualGazeControl_t2345825373), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6415[16] =
{
ManualGazeControl_t2345825373::get_offset_of_MouseSupported_2(),
ManualGazeControl_t2345825373::get_offset_of_MouseXYRotationAxisControl_3(),
ManualGazeControl_t2345825373::get_offset_of_MouseXYTranslationAxisControl_4(),
ManualGazeControl_t2345825373::get_offset_of_MouseXZTranslationAxisControl_5(),
ManualGazeControl_t2345825373::get_offset_of_KeyboardSupported_6(),
ManualGazeControl_t2345825373::get_offset_of_KeyboardXYRotationAxisControl_7(),
ManualGazeControl_t2345825373::get_offset_of_KeyboardXZRotationAxisControl_8(),
ManualGazeControl_t2345825373::get_offset_of_KeyboardXYTranslationAxisControl_9(),
ManualGazeControl_t2345825373::get_offset_of_KeyboardXZTranslationAxisControl_10(),
ManualGazeControl_t2345825373::get_offset_of_JoystickSupported_11(),
ManualGazeControl_t2345825373::get_offset_of_JoystickXYRotationAxisControl_12(),
ManualGazeControl_t2345825373::get_offset_of_JoystickXYTranslationAxisControl_13(),
ManualGazeControl_t2345825373::get_offset_of_JoystickXZTranslationAxisControl_14(),
ManualGazeControl_t2345825373::get_offset_of_lastTrackerToUnityTranslation_15(),
ManualGazeControl_t2345825373::get_offset_of_lastTrackerToUnityRotation_16(),
ManualGazeControl_t2345825373::get_offset_of_cameraTransform_17(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6416 = { sizeof (SpeechInputHandler_t1098372982), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6416[4] =
{
SpeechInputHandler_t1098372982::get_offset_of_Keywords_2(),
SpeechInputHandler_t1098372982::get_offset_of_IsGlobalListener_3(),
SpeechInputHandler_t1098372982::get_offset_of_PersistentKeywords_4(),
SpeechInputHandler_t1098372982::get_offset_of_responses_5(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6417 = { sizeof (KeywordAndResponse_t3411225000)+ sizeof (RuntimeObject), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6417[2] =
{
KeywordAndResponse_t3411225000::get_offset_of_Keyword_0() + static_cast<int32_t>(sizeof(RuntimeObject)),
KeywordAndResponse_t3411225000::get_offset_of_Response_1() + static_cast<int32_t>(sizeof(RuntimeObject)),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6418 = { sizeof (TriggerButton_t188319007), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6418[2] =
{
TriggerButton_t188319007::get_offset_of_IsEnabled_2(),
TriggerButton_t188319007::get_offset_of_ButtonPressed_3(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6419 = { sizeof (KeywordAndKeyCode_t2714956691)+ sizeof (RuntimeObject), sizeof(KeywordAndKeyCode_t2714956691_marshaled_pinvoke), 0, 0 };
extern const int32_t g_FieldOffsetTable6419[2] =
{
KeywordAndKeyCode_t2714956691::get_offset_of_Keyword_0() + static_cast<int32_t>(sizeof(RuntimeObject)),
KeywordAndKeyCode_t2714956691::get_offset_of_KeyCode_1() + static_cast<int32_t>(sizeof(RuntimeObject)),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6420 = { sizeof (HandGuidance_t211969559), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6420[6] =
{
HandGuidance_t211969559::get_offset_of_Cursor_4(),
HandGuidance_t211969559::get_offset_of_HandGuidanceIndicator_5(),
HandGuidance_t211969559::get_offset_of_HandGuidanceThreshold_6(),
HandGuidance_t211969559::get_offset_of_handGuidanceIndicatorGameObject_7(),
HandGuidance_t211969559::get_offset_of_defaultHandGuidanceRotation_8(),
HandGuidance_t211969559::get_offset_of_currentlyTrackedHand_9(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6421 = { sizeof (InputManager_t3617695730), -1, sizeof(InputManager_t3617695730_StaticFields), 0 };
extern const int32_t g_FieldOffsetTable6421[54] =
{
InputManager_t3617695730::get_offset_of_InputEnabled_4(),
InputManager_t3617695730::get_offset_of_InputDisabled_5(),
InputManager_t3617695730::get_offset_of_globalListeners_6(),
InputManager_t3617695730::get_offset_of_modalInputStack_7(),
InputManager_t3617695730::get_offset_of_fallbackInputStack_8(),
InputManager_t3617695730::get_offset_of_U3COverrideFocusedObjectU3Ek__BackingField_9(),
InputManager_t3617695730::get_offset_of_disabledRefCount_10(),
InputManager_t3617695730::get_offset_of_inputEventData_11(),
InputManager_t3617695730::get_offset_of_sourceClickedEventData_12(),
InputManager_t3617695730::get_offset_of_sourceStateEventData_13(),
InputManager_t3617695730::get_offset_of_manipulationEventData_14(),
InputManager_t3617695730::get_offset_of_holdEventData_15(),
InputManager_t3617695730::get_offset_of_navigationEventData_16(),
InputManager_t3617695730::get_offset_of_xboxControllerEventData_17(),
InputManager_t3617695730::get_offset_of_sourceRotationEventData_18(),
InputManager_t3617695730::get_offset_of_sourcePositionEventData_19(),
InputManager_t3617695730::get_offset_of_pointerSpecificEventData_20(),
InputManager_t3617695730::get_offset_of_inputPositionEventData_21(),
InputManager_t3617695730::get_offset_of_selectPressedEventData_22(),
InputManager_t3617695730::get_offset_of_speechEventData_23(),
InputManager_t3617695730::get_offset_of_dictationEventData_24(),
InputManager_t3617695730_StaticFields::get_offset_of_detectedInputSources_25(),
InputManager_t3617695730_StaticFields::get_offset_of_OnFocusEnterEventHandler_26(),
InputManager_t3617695730_StaticFields::get_offset_of_OnFocusExitEventHandler_27(),
InputManager_t3617695730_StaticFields::get_offset_of_OnPointerSpecificFocusEnterEventHandler_28(),
InputManager_t3617695730_StaticFields::get_offset_of_OnPointerSpecificFocusExitEventHandler_29(),
InputManager_t3617695730_StaticFields::get_offset_of_OnInputClickedEventHandler_30(),
InputManager_t3617695730_StaticFields::get_offset_of_OnSourceUpEventHandler_31(),
InputManager_t3617695730_StaticFields::get_offset_of_OnSourceDownEventHandler_32(),
InputManager_t3617695730_StaticFields::get_offset_of_OnSourceDetectedEventHandler_33(),
InputManager_t3617695730_StaticFields::get_offset_of_OnSourceLostEventHandler_34(),
InputManager_t3617695730_StaticFields::get_offset_of_OnManipulationStartedEventHandler_35(),
InputManager_t3617695730_StaticFields::get_offset_of_OnManipulationUpdatedEventHandler_36(),
InputManager_t3617695730_StaticFields::get_offset_of_OnManipulationCompletedEventHandler_37(),
InputManager_t3617695730_StaticFields::get_offset_of_OnManipulationCanceledEventHandler_38(),
InputManager_t3617695730_StaticFields::get_offset_of_OnHoldStartedEventHandler_39(),
InputManager_t3617695730_StaticFields::get_offset_of_OnHoldCompletedEventHandler_40(),
InputManager_t3617695730_StaticFields::get_offset_of_OnHoldCanceledEventHandler_41(),
InputManager_t3617695730_StaticFields::get_offset_of_OnNavigationStartedEventHandler_42(),
InputManager_t3617695730_StaticFields::get_offset_of_OnNavigationUpdatedEventHandler_43(),
InputManager_t3617695730_StaticFields::get_offset_of_OnNavigationCompletedEventHandler_44(),
InputManager_t3617695730_StaticFields::get_offset_of_OnNavigationCanceledEventHandler_45(),
InputManager_t3617695730_StaticFields::get_offset_of_OnInputPositionChangedEventHandler_46(),
InputManager_t3617695730_StaticFields::get_offset_of_OnSelectPressedAmountChangedEventHandler_47(),
InputManager_t3617695730_StaticFields::get_offset_of_OnTouchpadTouchedEventHandler_48(),
InputManager_t3617695730_StaticFields::get_offset_of_OnTouchpadReleasedEventHandler_49(),
InputManager_t3617695730_StaticFields::get_offset_of_OnSourcePositionChangedEventHandler_50(),
InputManager_t3617695730_StaticFields::get_offset_of_OnSourceRotationChangedEventHandler_51(),
InputManager_t3617695730_StaticFields::get_offset_of_OnXboxInputUpdateHandler_52(),
InputManager_t3617695730_StaticFields::get_offset_of_OnSpeechKeywordRecognizedEventHandler_53(),
InputManager_t3617695730_StaticFields::get_offset_of_OnDictationHypothesisEventHandler_54(),
InputManager_t3617695730_StaticFields::get_offset_of_OnDictationResultEventHandler_55(),
InputManager_t3617695730_StaticFields::get_offset_of_OnDictationCompleteEventHandler_56(),
InputManager_t3617695730_StaticFields::get_offset_of_OnDictationErrorEventHandler_57(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6422 = { sizeof (U3CU3Ec_t129755298), -1, sizeof(U3CU3Ec_t129755298_StaticFields), 0 };
extern const int32_t g_FieldOffsetTable6422[1] =
{
U3CU3Ec_t129755298_StaticFields::get_offset_of_U3CU3E9_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6423 = { sizeof (KeyboardManager_t1786564518), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6423[3] =
{
KeyboardManager_t1786564518::get_offset_of_registeredCallbacks_4(),
KeyboardManager_t1786564518::get_offset_of_detectedKeyEvents_5(),
KeyboardManager_t1786564518::get_offset_of_pendingKeyEvents_6(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6424 = { sizeof (KeyEvent_t245959883)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6424[4] =
{
KeyEvent_t245959883::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6425 = { sizeof (KeyCodeEventPair_t1510105498)+ sizeof (RuntimeObject), sizeof(KeyCodeEventPair_t1510105498 ), 0, 0 };
extern const int32_t g_FieldOffsetTable6425[2] =
{
KeyCodeEventPair_t1510105498::get_offset_of_KeyCode_0() + static_cast<int32_t>(sizeof(RuntimeObject)),
KeyCodeEventPair_t1510105498::get_offset_of_KeyEvent_1() + static_cast<int32_t>(sizeof(RuntimeObject)),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6426 = { sizeof (KeyboardRegistration_t3963964306), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6426[3] =
{
KeyboardRegistration_t3963964306::get_offset_of_keyCodeEvent_0(),
KeyboardRegistration_t3963964306::get_offset_of_callback_1(),
KeyboardRegistration_t3963964306::get_offset_of_isRegistered_2(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6427 = { sizeof (KeyboardCallback_t3784036511), sizeof(Il2CppMethodPointer), 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6428 = { sizeof (MixedRealityCameraManager_t3589305101), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6428[10] =
{
MixedRealityCameraManager_t3589305101::get_offset_of_NearClipPlane_OpaqueDisplay_4(),
MixedRealityCameraManager_t3589305101::get_offset_of_CameraClearFlags_OpaqueDisplay_5(),
MixedRealityCameraManager_t3589305101::get_offset_of_BackgroundColor_OpaqueDisplay_6(),
MixedRealityCameraManager_t3589305101::get_offset_of_OpaqueQualityLevel_7(),
MixedRealityCameraManager_t3589305101::get_offset_of_NearClipPlane_TransparentDisplay_8(),
MixedRealityCameraManager_t3589305101::get_offset_of_CameraClearFlags_TransparentDisplay_9(),
MixedRealityCameraManager_t3589305101::get_offset_of_BackgroundColor_TransparentDisplay_10(),
MixedRealityCameraManager_t3589305101::get_offset_of_HoloLensQualityLevel_11(),
MixedRealityCameraManager_t3589305101::get_offset_of_U3CCurrentDisplayTypeU3Ek__BackingField_12(),
MixedRealityCameraManager_t3589305101::get_offset_of_OnDisplayDetected_13(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6429 = { sizeof (DisplayType_t1965195260)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6429[3] =
{
DisplayType_t1965195260::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6430 = { sizeof (DisplayEventHandler_t3688058425), sizeof(Il2CppMethodPointer), 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6431 = { sizeof (MixedRealityTeleport_t2468362838), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6431[21] =
{
MixedRealityTeleport_t2468362838::get_offset_of_HorizontalStrafe_4(),
MixedRealityTeleport_t2468362838::get_offset_of_ForwardMovement_5(),
MixedRealityTeleport_t2468362838::get_offset_of_HorizontalRotation_6(),
MixedRealityTeleport_t2468362838::get_offset_of_VerticalRotation_7(),
MixedRealityTeleport_t2468362838::get_offset_of_LeftThumbstickX_8(),
MixedRealityTeleport_t2468362838::get_offset_of_LeftThumbstickY_9(),
MixedRealityTeleport_t2468362838::get_offset_of_RightThumbstickX_10(),
MixedRealityTeleport_t2468362838::get_offset_of_RightThumbstickY_11(),
MixedRealityTeleport_t2468362838::get_offset_of_EnableTeleport_12(),
MixedRealityTeleport_t2468362838::get_offset_of_EnableRotation_13(),
MixedRealityTeleport_t2468362838::get_offset_of_EnableStrafe_14(),
MixedRealityTeleport_t2468362838::get_offset_of_StayOnTheFloor_15(),
MixedRealityTeleport_t2468362838::get_offset_of_RotationSize_16(),
MixedRealityTeleport_t2468362838::get_offset_of_StrafeAmount_17(),
MixedRealityTeleport_t2468362838::get_offset_of_teleportMarker_18(),
MixedRealityTeleport_t2468362838::get_offset_of_animationController_19(),
MixedRealityTeleport_t2468362838::get_offset_of_useCustomMapping_20(),
MixedRealityTeleport_t2468362838::get_offset_of_fadeControl_21(),
MixedRealityTeleport_t2468362838::get_offset_of_isTeleportValid_22(),
MixedRealityTeleport_t2468362838::get_offset_of_currentPointingSource_23(),
MixedRealityTeleport_t2468362838::get_offset_of_currentSourceId_24(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6432 = { sizeof (U3CU3Ec__DisplayClass26_0_t3736397246), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6432[2] =
{
U3CU3Ec__DisplayClass26_0_t3736397246::get_offset_of_hitPos_0(),
U3CU3Ec__DisplayClass26_0_t3736397246::get_offset_of_U3CU3E4__this_1(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6433 = { sizeof (U3CU3Ec__DisplayClass27_0_t3736462782), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6433[2] =
{
U3CU3Ec__DisplayClass27_0_t3736462782::get_offset_of_rotationAmount_0(),
U3CU3Ec__DisplayClass27_0_t3736462782::get_offset_of_U3CU3E4__this_1(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6434 = { sizeof (U3CU3Ec__DisplayClass28_0_t3736790462), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6434[2] =
{
U3CU3Ec__DisplayClass28_0_t3736790462::get_offset_of_strafeAmount_0(),
U3CU3Ec__DisplayClass28_0_t3736790462::get_offset_of_U3CU3E4__this_1(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6435 = { sizeof (MicStream_t454139717), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6435[1] =
{
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6436 = { sizeof (StreamCategory_t2445411138)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6436[4] =
{
StreamCategory_t2445411138::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6437 = { sizeof (ErrorCodes_t3343133449)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6437[10] =
{
ErrorCodes_t3343133449::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
0,
0,
0,
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6438 = { sizeof (LiveMicCallback_t4027000814), sizeof(Il2CppMethodPointer), 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6439 = { sizeof (MotionControllerInfo_t938152223), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6439[43] =
{
MotionControllerInfo_t938152223::get_offset_of_ControllerParent_0(),
MotionControllerInfo_t938152223::get_offset_of_Handedness_1(),
MotionControllerInfo_t938152223::get_offset_of_home_2(),
MotionControllerInfo_t938152223::get_offset_of_homePressed_3(),
MotionControllerInfo_t938152223::get_offset_of_homeUnpressed_4(),
MotionControllerInfo_t938152223::get_offset_of_menu_5(),
MotionControllerInfo_t938152223::get_offset_of_menuPressed_6(),
MotionControllerInfo_t938152223::get_offset_of_menuUnpressed_7(),
MotionControllerInfo_t938152223::get_offset_of_grasp_8(),
MotionControllerInfo_t938152223::get_offset_of_graspPressed_9(),
MotionControllerInfo_t938152223::get_offset_of_graspUnpressed_10(),
MotionControllerInfo_t938152223::get_offset_of_thumbstickPress_11(),
MotionControllerInfo_t938152223::get_offset_of_thumbstickPressed_12(),
MotionControllerInfo_t938152223::get_offset_of_thumbstickUnpressed_13(),
MotionControllerInfo_t938152223::get_offset_of_thumbstickX_14(),
MotionControllerInfo_t938152223::get_offset_of_thumbstickXMin_15(),
MotionControllerInfo_t938152223::get_offset_of_thumbstickXMax_16(),
MotionControllerInfo_t938152223::get_offset_of_thumbstickY_17(),
MotionControllerInfo_t938152223::get_offset_of_thumbstickYMin_18(),
MotionControllerInfo_t938152223::get_offset_of_thumbstickYMax_19(),
MotionControllerInfo_t938152223::get_offset_of_select_20(),
MotionControllerInfo_t938152223::get_offset_of_selectPressed_21(),
MotionControllerInfo_t938152223::get_offset_of_selectUnpressed_22(),
MotionControllerInfo_t938152223::get_offset_of_touchpadPress_23(),
MotionControllerInfo_t938152223::get_offset_of_touchpadPressed_24(),
MotionControllerInfo_t938152223::get_offset_of_touchpadUnpressed_25(),
MotionControllerInfo_t938152223::get_offset_of_touchpadTouchX_26(),
MotionControllerInfo_t938152223::get_offset_of_touchpadTouchXMin_27(),
MotionControllerInfo_t938152223::get_offset_of_touchpadTouchXMax_28(),
MotionControllerInfo_t938152223::get_offset_of_touchpadTouchY_29(),
MotionControllerInfo_t938152223::get_offset_of_touchpadTouchYMin_30(),
MotionControllerInfo_t938152223::get_offset_of_touchpadTouchYMax_31(),
MotionControllerInfo_t938152223::get_offset_of_touchpadTouchVisualizer_32(),
MotionControllerInfo_t938152223::get_offset_of_pointingPose_33(),
MotionControllerInfo_t938152223::get_offset_of_wasGrasped_34(),
MotionControllerInfo_t938152223::get_offset_of_wasMenuPressed_35(),
MotionControllerInfo_t938152223::get_offset_of_wasHomePressed_36(),
MotionControllerInfo_t938152223::get_offset_of_wasThumbstickPressed_37(),
MotionControllerInfo_t938152223::get_offset_of_wasTouchpadPressed_38(),
MotionControllerInfo_t938152223::get_offset_of_wasTouchpadTouched_39(),
MotionControllerInfo_t938152223::get_offset_of_lastThumbstickPosition_40(),
MotionControllerInfo_t938152223::get_offset_of_lastTouchpadPosition_41(),
MotionControllerInfo_t938152223::get_offset_of_lastSelectPressedAmount_42(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6440 = { sizeof (ControllerElementEnum_t4108764020)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6440[8] =
{
ControllerElementEnum_t4108764020::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
0,
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6441 = { sizeof (MotionControllerVisualizer_t392243420), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6441[13] =
{
MotionControllerVisualizer_t392243420::get_offset_of_AnimateControllerModel_4(),
MotionControllerVisualizer_t392243420::get_offset_of_AlwaysUseAlternateLeftModel_5(),
MotionControllerVisualizer_t392243420::get_offset_of_AlwaysUseAlternateRightModel_6(),
MotionControllerVisualizer_t392243420::get_offset_of_AlternateLeftController_7(),
MotionControllerVisualizer_t392243420::get_offset_of_AlternateRightController_8(),
MotionControllerVisualizer_t392243420::get_offset_of_TouchpadTouchedOverride_9(),
MotionControllerVisualizer_t392243420::get_offset_of_GLTFMaterial_10(),
MotionControllerVisualizer_t392243420::get_offset_of_controllerDictionary_11(),
MotionControllerVisualizer_t392243420::get_offset_of_loadingControllers_12(),
MotionControllerVisualizer_t392243420::get_offset_of_leftControllerModel_13(),
MotionControllerVisualizer_t392243420::get_offset_of_rightControllerModel_14(),
MotionControllerVisualizer_t392243420::get_offset_of_OnControllerModelLoaded_15(),
MotionControllerVisualizer_t392243420::get_offset_of_OnControllerModelUnloaded_16(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6442 = { sizeof (U3CLoadControllerModelU3Ed__27_t1961351108), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6442[4] =
{
U3CLoadControllerModelU3Ed__27_t1961351108::get_offset_of_U3CU3E1__state_0(),
U3CLoadControllerModelU3Ed__27_t1961351108::get_offset_of_U3CU3E2__current_1(),
U3CLoadControllerModelU3Ed__27_t1961351108::get_offset_of_source_2(),
U3CLoadControllerModelU3Ed__27_t1961351108::get_offset_of_U3CU3E4__this_3(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6443 = { sizeof (U3CLoadSourceControllerModelU3Ed__28_t2257991569), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6443[11] =
{
U3CLoadSourceControllerModelU3Ed__28_t2257991569::get_offset_of_U3CU3E1__state_0(),
U3CLoadSourceControllerModelU3Ed__28_t2257991569::get_offset_of_U3CU3E2__current_1(),
U3CLoadSourceControllerModelU3Ed__28_t2257991569::get_offset_of_source_2(),
U3CLoadSourceControllerModelU3Ed__28_t2257991569::get_offset_of_U3CU3E4__this_3(),
U3CLoadSourceControllerModelU3Ed__28_t2257991569::get_offset_of_U3CfileBytesU3E5__1_4(),
U3CLoadSourceControllerModelU3Ed__28_t2257991569::get_offset_of_U3CcontrollerModelGameObjectU3E5__2_5(),
U3CLoadSourceControllerModelU3Ed__28_t2257991569::get_offset_of_U3CmodelTaskU3E5__3_6(),
U3CLoadSourceControllerModelU3Ed__28_t2257991569::get_offset_of_U3CmodelStreamU3E5__4_7(),
U3CLoadSourceControllerModelU3Ed__28_t2257991569::get_offset_of_U3CgltfScriptU3E5__5_8(),
U3CLoadSourceControllerModelU3Ed__28_t2257991569::get_offset_of_U3CreaderU3E5__6_9(),
U3CLoadSourceControllerModelU3Ed__28_t2257991569::get_offset_of_U3CloadModelOpU3E5__7_10(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6444 = { sizeof (SetGlobalListener_t2628677908), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6445 = { sizeof (BoundaryManager_t2608055002), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6445[8] =
{
BoundaryManager_t2608055002::get_offset_of_FloorQuad_4(),
BoundaryManager_t2608055002::get_offset_of_floorQuadInstance_5(),
BoundaryManager_t2608055002::get_offset_of_boundaryHeight_6(),
BoundaryManager_t2608055002::get_offset_of_boundaryBounds_7(),
BoundaryManager_t2608055002::get_offset_of_opaqueTrackingSpaceType_8(),
BoundaryManager_t2608055002::get_offset_of_floorPositionInEditor_9(),
BoundaryManager_t2608055002::get_offset_of_renderFloor_10(),
BoundaryManager_t2608055002::get_offset_of_renderBoundary_11(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6446 = { sizeof (SceneContentAdjuster_t1258964661), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6446[6] =
{
SceneContentAdjuster_t1258964661::get_offset_of_containerObject_2(),
SceneContentAdjuster_t1258964661::get_offset_of_alignmentType_3(),
SceneContentAdjuster_t1258964661::get_offset_of_stationarySpaceTypePosition_4(),
SceneContentAdjuster_t1258964661::get_offset_of_roomScaleSpaceTypePosition_5(),
SceneContentAdjuster_t1258964661::get_offset_of_contentPosition_6(),
SceneContentAdjuster_t1258964661::get_offset_of_frameWaitHack_7(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6447 = { sizeof (AlignmentType_t4238599496)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6447[4] =
{
AlignmentType_t4238599496::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6448 = { sizeof (U3CSetContentHeightU3Ed__8_t405582793), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6448[3] =
{
U3CSetContentHeightU3Ed__8_t405582793::get_offset_of_U3CU3E1__state_0(),
U3CSetContentHeightU3Ed__8_t405582793::get_offset_of_U3CU3E2__current_1(),
U3CSetContentHeightU3Ed__8_t405582793::get_offset_of_U3CU3E4__this_2(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6449 = { sizeof (LinePointer_t114985340), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6449[3] =
{
LinePointer_t114985340::get_offset_of_line_20(),
LinePointer_t114985340::get_offset_of_renderers_21(),
LinePointer_t114985340::get_offset_of_maxDistance_22(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6450 = { sizeof (NavigationHotSpot_t405511513), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6451 = { 0, -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6452 = { sizeof (PointerSurfaceResultEnum_t86002505)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6452[5] =
{
PointerSurfaceResultEnum_t86002505::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6453 = { sizeof (PhysicsPointer_t2887364969), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6453[18] =
{
PhysicsPointer_t2887364969::get_offset_of_U3CTotalLengthU3Ek__BackingField_2(),
PhysicsPointer_t2887364969::get_offset_of_U3CStartPointU3Ek__BackingField_3(),
PhysicsPointer_t2887364969::get_offset_of_U3CTargetPointU3Ek__BackingField_4(),
PhysicsPointer_t2887364969::get_offset_of_U3CStartPointNormalU3Ek__BackingField_5(),
PhysicsPointer_t2887364969::get_offset_of_U3CTargetPointNormalU3Ek__BackingField_6(),
PhysicsPointer_t2887364969::get_offset_of_U3CPointerForwardU3Ek__BackingField_7(),
PhysicsPointer_t2887364969::get_offset_of_U3CTargetResultU3Ek__BackingField_8(),
PhysicsPointer_t2887364969::get_offset_of_U3CTargetPointOrientationU3Ek__BackingField_9(),
PhysicsPointer_t2887364969::get_offset_of_lineColorValid_10(),
PhysicsPointer_t2887364969::get_offset_of_lineColorInvalid_11(),
PhysicsPointer_t2887364969::get_offset_of_lineColorHotSpot_12(),
PhysicsPointer_t2887364969::get_offset_of_lineColorNoTarget_13(),
PhysicsPointer_t2887364969::get_offset_of_validLayers_14(),
PhysicsPointer_t2887364969::get_offset_of_invalidLayers_15(),
PhysicsPointer_t2887364969::get_offset_of_detectTriggers_16(),
PhysicsPointer_t2887364969::get_offset_of_active_17(),
PhysicsPointer_t2887364969::get_offset_of_raycastOrigin_18(),
PhysicsPointer_t2887364969::get_offset_of_targetHit_19(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6454 = { sizeof (PointerCursor_t2821356970), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6454[5] =
{
PointerCursor_t2821356970::get_offset_of_pointer_2(),
PointerCursor_t2821356970::get_offset_of_sizeOnScreen_3(),
PointerCursor_t2821356970::get_offset_of_scaleAdjustTime_4(),
PointerCursor_t2821356970::get_offset_of_renderers_5(),
PointerCursor_t2821356970::get_offset_of_pointerTransform_6(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6455 = { sizeof (PointerInput_t2201074199), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6455[2] =
{
PointerInput_t2201074199::get_offset_of_pointer_12(),
PointerInput_t2201074199::get_offset_of_activePressType_13(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6456 = { 0, -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6457 = { sizeof (Distorter_t3335802222), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6457[1] =
{
Distorter_t3335802222::get_offset_of_distortOrder_2(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6458 = { sizeof (Ellipse_t4234545539), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6458[3] =
{
0,
Ellipse_t4234545539::get_offset_of_Resolution_17(),
Ellipse_t4234545539::get_offset_of_Radius_18(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6459 = { sizeof (Line_t549989228), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6459[2] =
{
Line_t549989228::get_offset_of_Start_16(),
Line_t549989228::get_offset_of_End_17(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6460 = { sizeof (LineBase_t717918686), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6460[14] =
{
0,
LineBase_t717918686::get_offset_of_Space_3(),
LineBase_t717918686::get_offset_of_LineStartClamp_4(),
LineBase_t717918686::get_offset_of_LineEndClamp_5(),
LineBase_t717918686::get_offset_of_RotationType_6(),
LineBase_t717918686::get_offset_of_FlipUpVector_7(),
LineBase_t717918686::get_offset_of_OriginOffset_8(),
LineBase_t717918686::get_offset_of_ManualUpVectorBlend_9(),
LineBase_t717918686::get_offset_of_ManualUpVectors_10(),
LineBase_t717918686::get_offset_of_VelocitySearchRange_11(),
LineBase_t717918686::get_offset_of_VelocityBlend_12(),
LineBase_t717918686::get_offset_of_DistortionStrength_13(),
LineBase_t717918686::get_offset_of_distorters_14(),
LineBase_t717918686::get_offset_of_loops_15(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6461 = { sizeof (U3CU3Ec_t3579773046), -1, sizeof(U3CU3Ec_t3579773046_StaticFields), 0 };
extern const int32_t g_FieldOffsetTable6461[2] =
{
U3CU3Ec_t3579773046_StaticFields::get_offset_of_U3CU3E9_0(),
U3CU3Ec_t3579773046_StaticFields::get_offset_of_U3CU3E9__38_0_1(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6462 = { sizeof (LineObjectCollection_t2817952665), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6462[16] =
{
LineObjectCollection_t2817952665::get_offset_of_Objects_2(),
LineObjectCollection_t2817952665::get_offset_of_DistributionOffset_3(),
LineObjectCollection_t2817952665::get_offset_of_LengthOffset_4(),
LineObjectCollection_t2817952665::get_offset_of_ScaleOffset_5(),
LineObjectCollection_t2817952665::get_offset_of_ScaleMultiplier_6(),
LineObjectCollection_t2817952665::get_offset_of_PositionMultiplier_7(),
LineObjectCollection_t2817952665::get_offset_of_ObjectScale_8(),
LineObjectCollection_t2817952665::get_offset_of_ObjectPosition_9(),
LineObjectCollection_t2817952665::get_offset_of_FlipRotation_10(),
LineObjectCollection_t2817952665::get_offset_of_RotationOffset_11(),
LineObjectCollection_t2817952665::get_offset_of_PositionOffset_12(),
LineObjectCollection_t2817952665::get_offset_of_RotationTypeOverride_13(),
LineObjectCollection_t2817952665::get_offset_of_DistributionType_14(),
LineObjectCollection_t2817952665::get_offset_of_StepMode_15(),
LineObjectCollection_t2817952665::get_offset_of_source_16(),
LineObjectCollection_t2817952665::get_offset_of_transformHelper_17(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6463 = { sizeof (LineRenderer_t3025162641), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6463[14] =
{
LineRenderer_t3025162641::get_offset_of_LineColor_2(),
LineRenderer_t3025162641::get_offset_of_LineWidth_3(),
LineRenderer_t3025162641::get_offset_of_WidthMultiplier_4(),
LineRenderer_t3025162641::get_offset_of_ColorOffset_5(),
LineRenderer_t3025162641::get_offset_of_WidthOffset_6(),
LineRenderer_t3025162641::get_offset_of_RotationOffset_7(),
LineRenderer_t3025162641::get_offset_of_StepMode_8(),
LineRenderer_t3025162641::get_offset_of_InterpolationMode_9(),
LineRenderer_t3025162641::get_offset_of_NumLineSteps_10(),
LineRenderer_t3025162641::get_offset_of_StepLength_11(),
LineRenderer_t3025162641::get_offset_of_MaxLineSteps_12(),
LineRenderer_t3025162641::get_offset_of_StepLengthCurve_13(),
LineRenderer_t3025162641::get_offset_of_source_14(),
LineRenderer_t3025162641::get_offset_of_normalizedLengths_15(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6464 = { sizeof (LineUnity_t4238357500), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6464[7] =
{
0,
0,
LineUnity_t4238357500::get_offset_of_LineMaterial_18(),
LineUnity_t4238357500::get_offset_of_RoundedEdges_19(),
LineUnity_t4238357500::get_offset_of_RoundedCaps_20(),
LineUnity_t4238357500::get_offset_of_lineRenderer_21(),
LineUnity_t4238357500::get_offset_of_positions_22(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6465 = { sizeof (U3CUpdateLineUnityU3Ed__8_t3720518906), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6465[6] =
{
U3CUpdateLineUnityU3Ed__8_t3720518906::get_offset_of_U3CU3E1__state_0(),
U3CUpdateLineUnityU3Ed__8_t3720518906::get_offset_of_U3CU3E2__current_1(),
U3CUpdateLineUnityU3Ed__8_t3720518906::get_offset_of_U3CU3E4__this_2(),
U3CUpdateLineUnityU3Ed__8_t3720518906::get_offset_of_U3CiU3E5__1_3(),
U3CUpdateLineUnityU3Ed__8_t3720518906::get_offset_of_U3CiU3E5__2_4(),
U3CUpdateLineUnityU3Ed__8_t3720518906::get_offset_of_U3CnormalizedDistanceU3E5__3_5(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6466 = { sizeof (SplinePoint_t3315310755)+ sizeof (RuntimeObject), sizeof(SplinePoint_t3315310755 ), 0, 0 };
extern const int32_t g_FieldOffsetTable6466[2] =
{
SplinePoint_t3315310755::get_offset_of_Point_0() + static_cast<int32_t>(sizeof(RuntimeObject)),
SplinePoint_t3315310755::get_offset_of_Rotation_1() + static_cast<int32_t>(sizeof(RuntimeObject)),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6467 = { sizeof (LineUtils_t4143855974), -1, sizeof(LineUtils_t4143855974_StaticFields), 0 };
extern const int32_t g_FieldOffsetTable6467[1] =
{
LineUtils_t4143855974_StaticFields::get_offset_of_DefaultUpVector_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6468 = { sizeof (InterpolationEnum_t2040439712)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6468[4] =
{
InterpolationEnum_t2040439712::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6469 = { sizeof (SpaceEnum_t2918055180)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6469[3] =
{
SpaceEnum_t2918055180::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6470 = { sizeof (RotationTypeEnum_t2752505697)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6470[4] =
{
RotationTypeEnum_t2752505697::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6471 = { sizeof (PointDistributionTypeEnum_t4198058532)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6471[5] =
{
PointDistributionTypeEnum_t4198058532::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6472 = { sizeof (StepModeEnum_t777535071)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6472[3] =
{
StepModeEnum_t777535071::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6473 = { sizeof (InterpolationModeEnum_t4207999760)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6473[4] =
{
InterpolationModeEnum_t4207999760::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6474 = { sizeof (Brush_t1548626474), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6474[18] =
{
Brush_t1548626474::get_offset_of_minColorDelta_2(),
Brush_t1548626474::get_offset_of_minPositionDelta_3(),
Brush_t1548626474::get_offset_of_maxTimeDelta_4(),
Brush_t1548626474::get_offset_of_tip_5(),
Brush_t1548626474::get_offset_of_strokePrefab_6(),
Brush_t1548626474::get_offset_of_brushObjectTransform_7(),
Brush_t1548626474::get_offset_of_brushRenderer_8(),
Brush_t1548626474::get_offset_of_draw_9(),
Brush_t1548626474::get_offset_of_width_10(),
Brush_t1548626474::get_offset_of_inMenuPosition_11(),
Brush_t1548626474::get_offset_of_inMenuRotation_12(),
Brush_t1548626474::get_offset_of_inHandPosition_13(),
Brush_t1548626474::get_offset_of_inHandRotation_14(),
Brush_t1548626474::get_offset_of_displayMode_15(),
Brush_t1548626474::get_offset_of_transitionDuration_16(),
Brush_t1548626474::get_offset_of_transitionCurve_17(),
Brush_t1548626474::get_offset_of_currentStrokeColor_18(),
Brush_t1548626474::get_offset_of_lastPointAddedTime_19(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6475 = { sizeof (DisplayModeEnum_t2177039354)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6475[4] =
{
DisplayModeEnum_t2177039354::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6476 = { sizeof (U3CDrawOverTimeU3Ed__31_t814362136), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6476[8] =
{
U3CDrawOverTimeU3Ed__31_t814362136::get_offset_of_U3CU3E1__state_0(),
U3CDrawOverTimeU3Ed__31_t814362136::get_offset_of_U3CU3E2__current_1(),
U3CDrawOverTimeU3Ed__31_t814362136::get_offset_of_U3CU3E4__this_2(),
U3CDrawOverTimeU3Ed__31_t814362136::get_offset_of_U3ClastPointPositionU3E5__1_3(),
U3CDrawOverTimeU3Ed__31_t814362136::get_offset_of_U3CstartPositionU3E5__2_4(),
U3CDrawOverTimeU3Ed__31_t814362136::get_offset_of_U3CnewStrokeU3E5__3_5(),
U3CDrawOverTimeU3Ed__31_t814362136::get_offset_of_U3ClineU3E5__4_6(),
U3CDrawOverTimeU3Ed__31_t814362136::get_offset_of_U3CinitialWidthU3E5__5_7(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6477 = { sizeof (U3CUpdateDisplayModeU3Ed__32_t268247815), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6477[12] =
{
U3CUpdateDisplayModeU3Ed__32_t268247815::get_offset_of_U3CU3E1__state_0(),
U3CUpdateDisplayModeU3Ed__32_t268247815::get_offset_of_U3CU3E2__current_1(),
U3CUpdateDisplayModeU3Ed__32_t268247815::get_offset_of_U3CU3E4__this_2(),
U3CUpdateDisplayModeU3Ed__32_t268247815::get_offset_of_U3CtargetPositionU3E5__1_3(),
U3CUpdateDisplayModeU3Ed__32_t268247815::get_offset_of_U3CtargetScaleU3E5__2_4(),
U3CUpdateDisplayModeU3Ed__32_t268247815::get_offset_of_U3CtargetRotationU3E5__3_5(),
U3CUpdateDisplayModeU3Ed__32_t268247815::get_offset_of_U3CstartPositionU3E5__4_6(),
U3CUpdateDisplayModeU3Ed__32_t268247815::get_offset_of_U3CstartScaleU3E5__5_7(),
U3CUpdateDisplayModeU3Ed__32_t268247815::get_offset_of_U3CstartRotationU3E5__6_8(),
U3CUpdateDisplayModeU3Ed__32_t268247815::get_offset_of_U3ClastDisplayModeU3E5__7_9(),
U3CUpdateDisplayModeU3Ed__32_t268247815::get_offset_of_U3CstartTimeU3E5__8_10(),
U3CUpdateDisplayModeU3Ed__32_t268247815::get_offset_of_U3CnormalizedTimeU3E5__9_11(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6478 = { sizeof (BrushController_t3766631826), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6478[12] =
{
BrushController_t3766631826::get_offset_of_minColorDelta_2(),
BrushController_t3766631826::get_offset_of_minPositionDelta_3(),
BrushController_t3766631826::get_offset_of_maxTimeDelta_4(),
BrushController_t3766631826::get_offset_of_tip_5(),
BrushController_t3766631826::get_offset_of_strokePrefab_6(),
BrushController_t3766631826::get_offset_of_brushObjectTransform_7(),
BrushController_t3766631826::get_offset_of_brushRenderer_8(),
BrushController_t3766631826::get_offset_of_colorPicker_9(),
BrushController_t3766631826::get_offset_of_currentStrokeColor_10(),
BrushController_t3766631826::get_offset_of_draw_11(),
BrushController_t3766631826::get_offset_of_width_12(),
BrushController_t3766631826::get_offset_of_lastPointAddedTime_13(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6479 = { sizeof (DisplayModeEnum_t2111840609)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6479[4] =
{
DisplayModeEnum_t2111840609::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6480 = { sizeof (U3CDrawOverTimeU3Ed__24_t1141827424), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6480[8] =
{
U3CDrawOverTimeU3Ed__24_t1141827424::get_offset_of_U3CU3E1__state_0(),
U3CDrawOverTimeU3Ed__24_t1141827424::get_offset_of_U3CU3E2__current_1(),
U3CDrawOverTimeU3Ed__24_t1141827424::get_offset_of_U3CU3E4__this_2(),
U3CDrawOverTimeU3Ed__24_t1141827424::get_offset_of_U3ClastPointPositionU3E5__1_3(),
U3CDrawOverTimeU3Ed__24_t1141827424::get_offset_of_U3CstartPositionU3E5__2_4(),
U3CDrawOverTimeU3Ed__24_t1141827424::get_offset_of_U3CnewStrokeU3E5__3_5(),
U3CDrawOverTimeU3Ed__24_t1141827424::get_offset_of_U3ClineU3E5__4_6(),
U3CDrawOverTimeU3Ed__24_t1141827424::get_offset_of_U3CinitialWidthU3E5__5_7(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6481 = { sizeof (BrushSelector_t2086558127), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6481[26] =
{
BrushSelector_t2086558127::get_offset_of_brushCollection_12(),
BrushSelector_t2086558127::get_offset_of_currentAction_13(),
BrushSelector_t2086558127::get_offset_of_swipeCurve_14(),
BrushSelector_t2086558127::get_offset_of_swipeDuration_15(),
BrushSelector_t2086558127::get_offset_of_displayBrushindex_16(),
BrushSelector_t2086558127::get_offset_of_activeBrushindex_17(),
BrushSelector_t2086558127::get_offset_of_colorPicker_18(),
BrushSelector_t2086558127::get_offset_of_menuTimeout_19(),
BrushSelector_t2086558127::get_offset_of_selectPressedDrawThreshold_20(),
BrushSelector_t2086558127::get_offset_of_selectPressedStartValue_21(),
BrushSelector_t2086558127::get_offset_of_selectWidthCurve_22(),
BrushSelector_t2086558127::get_offset_of_touchpadMaterial_23(),
BrushSelector_t2086558127::get_offset_of_touchpadColor_24(),
BrushSelector_t2086558127::get_offset_of_touchpadGlowLossTime_25(),
BrushSelector_t2086558127::get_offset_of_touchpadTouchTime_26(),
BrushSelector_t2086558127::get_offset_of_touchpadRenderer_27(),
BrushSelector_t2086558127::get_offset_of_menuOpenTime_28(),
BrushSelector_t2086558127::get_offset_of_menuOpen_29(),
BrushSelector_t2086558127::get_offset_of_switchingBrush_30(),
BrushSelector_t2086558127::get_offset_of_startOffset_31(),
BrushSelector_t2086558127::get_offset_of_targetOffset_32(),
BrushSelector_t2086558127::get_offset_of_startTime_33(),
BrushSelector_t2086558127::get_offset_of_resetInput_34(),
BrushSelector_t2086558127::get_offset_of_selectPressedSmooth_35(),
BrushSelector_t2086558127::get_offset_of_activeBrush_36(),
BrushSelector_t2086558127::get_offset_of_originalTouchpadMaterial_37(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6482 = { sizeof (SwipeEnum_t3123030255)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6482[4] =
{
SwipeEnum_t3123030255::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6483 = { sizeof (ColorPickerWheel_t2235220782), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6483[12] =
{
ColorPickerWheel_t2235220782::get_offset_of_visible_12(),
ColorPickerWheel_t2235220782::get_offset_of_selectorTransform_13(),
ColorPickerWheel_t2235220782::get_offset_of_selectorRenderer_14(),
ColorPickerWheel_t2235220782::get_offset_of_inputScale_15(),
ColorPickerWheel_t2235220782::get_offset_of_selectedColor_16(),
ColorPickerWheel_t2235220782::get_offset_of_colorWheelTexture_17(),
ColorPickerWheel_t2235220782::get_offset_of_colorWheelObject_18(),
ColorPickerWheel_t2235220782::get_offset_of_animator_19(),
ColorPickerWheel_t2235220782::get_offset_of_timeout_20(),
ColorPickerWheel_t2235220782::get_offset_of_selectorPosition_21(),
ColorPickerWheel_t2235220782::get_offset_of_lastTimeVisible_22(),
ColorPickerWheel_t2235220782::get_offset_of_visibleLastFrame_23(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6484 = { sizeof (Eraser_t1049249012), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6484[4] =
{
Eraser_t1049249012::get_offset_of_eraseRange_20(),
Eraser_t1049249012::get_offset_of_eraseTime_21(),
Eraser_t1049249012::get_offset_of_erasingStrokes_22(),
Eraser_t1049249012::get_offset_of_erasedStrokes_23(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6485 = { sizeof (U3CDrawOverTimeU3Ed__4_t2030358129), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6485[8] =
{
U3CDrawOverTimeU3Ed__4_t2030358129::get_offset_of_U3CU3E1__state_0(),
U3CDrawOverTimeU3Ed__4_t2030358129::get_offset_of_U3CU3E2__current_1(),
U3CDrawOverTimeU3Ed__4_t2030358129::get_offset_of_U3CU3E4__this_2(),
U3CDrawOverTimeU3Ed__4_t2030358129::get_offset_of_U3CbrushStrokesU3E5__1_3(),
U3CDrawOverTimeU3Ed__4_t2030358129::get_offset_of_U3CiU3E5__2_4(),
U3CDrawOverTimeU3Ed__4_t2030358129::get_offset_of_U3ClineRendererU3E5__3_5(),
U3CDrawOverTimeU3Ed__4_t2030358129::get_offset_of_U3CpositionsU3E5__4_6(),
U3CDrawOverTimeU3Ed__4_t2030358129::get_offset_of_U3CjU3E5__5_7(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6486 = { sizeof (U3CEraseStrokesOverTimeU3Ed__5_t963038218), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6486[11] =
{
U3CEraseStrokesOverTimeU3Ed__5_t963038218::get_offset_of_U3CU3E1__state_0(),
U3CEraseStrokesOverTimeU3Ed__5_t963038218::get_offset_of_U3CU3E2__current_1(),
U3CEraseStrokesOverTimeU3Ed__5_t963038218::get_offset_of_U3CU3E4__this_2(),
U3CEraseStrokesOverTimeU3Ed__5_t963038218::get_offset_of_U3ClineRendererU3E5__1_3(),
U3CEraseStrokesOverTimeU3Ed__5_t963038218::get_offset_of_U3CstartTimeU3E5__2_4(),
U3CEraseStrokesOverTimeU3Ed__5_t963038218::get_offset_of_U3CstartWidthU3E5__3_5(),
U3CEraseStrokesOverTimeU3Ed__5_t963038218::get_offset_of_U3CstartPositionsU3E5__4_6(),
U3CEraseStrokesOverTimeU3Ed__5_t963038218::get_offset_of_U3CendPositionsU3E5__5_7(),
U3CEraseStrokesOverTimeU3Ed__5_t963038218::get_offset_of_U3CnormalizedTimeU3E5__6_8(),
U3CEraseStrokesOverTimeU3Ed__5_t963038218::get_offset_of_U3CiU3E5__7_9(),
U3CEraseStrokesOverTimeU3Ed__5_t963038218::get_offset_of_U3CrandomNoiseU3E5__8_10(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6487 = { sizeof (ObjectSpawner_t3925816580), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6487[11] =
{
ObjectSpawner_t3925816580::get_offset_of_displayParent_12(),
ObjectSpawner_t3925816580::get_offset_of_scaleParent_13(),
ObjectSpawner_t3925816580::get_offset_of_spawnParent_14(),
ObjectSpawner_t3925816580::get_offset_of_displayObject_15(),
ObjectSpawner_t3925816580::get_offset_of_objectMaterial_16(),
ObjectSpawner_t3925816580::get_offset_of_colorSource_17(),
ObjectSpawner_t3925816580::get_offset_of_availableMeshes_18(),
ObjectSpawner_t3925816580::get_offset_of_animator_19(),
ObjectSpawner_t3925816580::get_offset_of_meshIndex_20(),
ObjectSpawner_t3925816580::get_offset_of_state_21(),
ObjectSpawner_t3925816580::get_offset_of_instantiatedMaterial_22(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6488 = { sizeof (StateEnum_t2160764486)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable6488[5] =
{
StateEnum_t2160764486::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6489 = { sizeof (U3CSwitchOverTimeU3Ed__23_t3239096198), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable6489[3] =
{
U3CSwitchOverTimeU3Ed__23_t3239096198::get_offset_of_U3CU3E1__state_0(),
U3CSwitchOverTimeU3Ed__23_t3239096198::get_offset_of_U3CU3E2__current_1(),
U3CSwitchOverTimeU3Ed__23_t3239096198::get_offset_of_U3CU3E4__this_2(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6490 = { sizeof (U3CPrivateImplementationDetailsU3E_t3057255377), -1, sizeof(U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields), 0 };
extern const int32_t g_FieldOffsetTable6490[18] =
{
U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields::get_offset_of_U3013E068C5CF13ADD6FADCBE20DC57D04D9748467_0(),
U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields::get_offset_of_U30C334FA5B28CF955C37AF8CEFB7F11ED8156B371_1(),
U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields::get_offset_of_U30F9516F3B2268DEFAD0122DF5B7EB338BD7C6F20_2(),
U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields::get_offset_of_U31D1DF6626546FCE866E0F077A81E3F15D2FDAA02_3(),
U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields::get_offset_of_U3326FF6F77BB5C244576A14A56AB1CB5F79950ED5_4(),
U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields::get_offset_of_U339E2F60BD85399DDD5728E8DD2951FB4457ABEC4_5(),
U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields::get_offset_of_U35D55BEE8A63F25A4C9ADC5776E15D1077A336940_6(),
U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields::get_offset_of_U362E39AF6A4EDE5B98ACA51428D9AF0E37629FB4F_7(),
U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields::get_offset_of_U36497EB3FE2DD456D24F706237E5A882D2BA9996F_8(),
U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields::get_offset_of_U377500517B2CAA87B3925D20EEAA1428A8CD11B9C_9(),
U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields::get_offset_of_U37C864787BEF4C9722095E7546132ACBC5C8FD940_10(),
U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields::get_offset_of_U38634E53F81A91ED972DCFB19F840F53AC39A67F9_11(),
U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields::get_offset_of_U3888C635713ED1BDB91D86A17C2F3F4647CF4A55F_12(),
U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields::get_offset_of_U38CFF0276DAC339BBEAD6BFC55B53ED9492217C08_13(),
U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields::get_offset_of_U39AE3FD136714B4C4439E72CA48C36314C843CA0E_14(),
U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields::get_offset_of_A714705DEAA10EE10D925E684E64E7CC81896007_15(),
U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields::get_offset_of_C962AD6D5D1773668C4D37330DA336E1C53D07DE_16(),
U3CPrivateImplementationDetailsU3E_t3057255377_StaticFields::get_offset_of_F84A5DF36B7884A8F76FAEED14A7E066C2DAA4DC_17(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6491 = { sizeof (__StaticArrayInitTypeSizeU3D36_t385526563)+ sizeof (RuntimeObject), sizeof(__StaticArrayInitTypeSizeU3D36_t385526563 ), 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6492 = { sizeof (__StaticArrayInitTypeSizeU3D64_t3517497838)+ sizeof (RuntimeObject), sizeof(__StaticArrayInitTypeSizeU3D64_t3517497838 ), 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6493 = { sizeof (__StaticArrayInitTypeSizeU3D96_t385919777)+ sizeof (RuntimeObject), sizeof(__StaticArrayInitTypeSizeU3D96_t385919777 ), 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6494 = { sizeof (__StaticArrayInitTypeSizeU3D100_t2134348887)+ sizeof (RuntimeObject), sizeof(__StaticArrayInitTypeSizeU3D100_t2134348887 ), 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6495 = { sizeof (__StaticArrayInitTypeSizeU3D128_t531529104)+ sizeof (RuntimeObject), sizeof(__StaticArrayInitTypeSizeU3D128_t531529104 ), 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6496 = { sizeof (__StaticArrayInitTypeSizeU3D200_t2134545495)+ sizeof (RuntimeObject), sizeof(__StaticArrayInitTypeSizeU3D200_t2134545495 ), 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6497 = { sizeof (__StaticArrayInitTypeSizeU3D576_t2919708294)+ sizeof (RuntimeObject), sizeof(__StaticArrayInitTypeSizeU3D576_t2919708294 ), 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6498 = { sizeof (__StaticArrayInitTypeSizeU3D864_t1736813345)+ sizeof (RuntimeObject), sizeof(__StaticArrayInitTypeSizeU3D864_t1736813345 ), 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6499 = { sizeof (__StaticArrayInitTypeSizeU3D2048_t1070431641)+ sizeof (RuntimeObject), sizeof(__StaticArrayInitTypeSizeU3D2048_t1070431641 ), 0, 0 };
#ifdef __clang__
#pragma clang diagnostic pop
#endif
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1c604, %rsi
lea addresses_normal_ht+0x1bf4, %rdi
clflush (%rdi)
nop
nop
nop
add %r14, %r14
mov $98, %rcx
rep movsw
nop
nop
nop
nop
add %r9, %r9
lea addresses_UC_ht+0x2ea6, %r12
nop
nop
add %r8, %r8
mov (%r12), %di
and $1479, %rsi
lea addresses_A_ht+0x17c04, %rdi
nop
and %r9, %r9
movb (%rdi), %r12b
nop
nop
nop
inc %r9
lea addresses_normal_ht+0x256a, %rcx
clflush (%rcx)
nop
nop
nop
nop
sub $58489, %r9
vmovups (%rcx), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $0, %xmm6, %r8
nop
nop
and $37524, %r8
lea addresses_D_ht+0x8604, %rdi
sub %rcx, %rcx
mov $0x6162636465666768, %r9
movq %r9, %xmm1
vmovups %ymm1, (%rdi)
dec %r8
lea addresses_WT_ht+0xe604, %r12
nop
nop
nop
and $51902, %r14
mov (%r12), %edi
nop
nop
nop
nop
xor %rsi, %rsi
lea addresses_A_ht+0x1bc44, %r14
nop
nop
nop
nop
nop
xor %rsi, %rsi
mov $0x6162636465666768, %r8
movq %r8, (%r14)
nop
nop
nop
add %rcx, %rcx
lea addresses_UC_ht+0x14a04, %rsi
lea addresses_A_ht+0x17b14, %rdi
nop
nop
nop
nop
cmp %r13, %r13
mov $34, %rcx
rep movsl
nop
nop
nop
nop
add $61345, %rdi
lea addresses_WC_ht+0x352c, %rsi
lea addresses_WT_ht+0x8a04, %rdi
cmp %r9, %r9
mov $30, %rcx
rep movsw
nop
nop
nop
cmp $65262, %r13
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r14
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_RW+0x1b8e4, %rsi
lea addresses_UC+0xa84, %rdi
nop
nop
nop
nop
xor %r10, %r10
mov $50, %rcx
rep movsb
nop
nop
nop
inc %rsi
// Store
lea addresses_D+0xf4a4, %r9
nop
nop
nop
nop
xor $23397, %rcx
mov $0x5152535455565758, %r11
movq %r11, %xmm1
movups %xmm1, (%r9)
nop
nop
and %rdi, %rdi
// Faulty Load
lea addresses_RW+0x13204, %r10
nop
sub %rbp, %rbp
mov (%r10), %r11
lea oracles, %rsi
and $0xff, %r11
shlq $12, %r11
mov (%rsi,%r11,1), %r11
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_RW'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_UC'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5, 'same': False, 'type': 'addresses_D'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 1, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 10, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 11, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
|
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Object
FILE: objProcess.asm
ROUTINES:
Name Description
---- -----------
GLB ProcessClass Superclass of all processes
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 9/88 Initial version
DESCRIPTION:
This file contains routines to implement the process class.
$Id: objectProcess.asm,v 1.1 97/04/05 01:14:48 newdeal Exp $
------------------------------------------------------------------------------@
COMMENT @----------------------------------------------------------------------
Synopsis
--------
ProcessClass is the parent of all processes in the system. ProcessClass is
a special class in that there are no instances of ProcessClass and there is
only one instance of each subclass of ProcessClass. Also, methods sent to
a process (via ObjMessage) are sent as events and therefore are
received asyncronously.
ProcessClass provides methods for the standard handling of some standard events
sent to processes.
------------------------------------------------------------------------------@
; process class (parent of all processes)
ProcessClass mask CLASSF_NEVER_SAVED
method ThreadDestroy, ProcessClass, MSG_PROCESS_EXIT
COMMENT @----------------------------------------------------------------------
FUNCTION: ProcessDetach -- MSG_META_DETACH for ProcessClass
DESCRIPTION: Destroy the current thread by clearing the event queue and
calling ThreadDestroy
PASS:
ds - core block of geode
es - segment where process class defined (same as ds for applications)
di - MSG_META_DETACH
cx - Exit code
dx:bp - Output descriptor of caller (one to send METHOD_META_ACK to)
si - data to pass as BP portion of "DX:BP = source of ACK" in
MSG_META_ACK, as the source, this thread, requires only DX
to reference.
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 2/89 Initial version
------------------------------------------------------------------------------@
ProcessDetach method static ProcessClass, MSG_META_DETACH
mov ax, MSG_PROCESS_EXIT
mov bx,ss:[TPD_threadHandle]
call ObjMessageForceQueue
ret
ProcessDetach endm
MetaProcessClassCode segment resource
COMMENT @----------------------------------------------------------------------
FUNCTION: ProcessFinalBlockFree --
MSG_PROCESS_FINAL_BLOCK_FREE for ProcessClass
DESCRIPTION: free the block
PASS:
ds - core block of geode
cx - block handle
RETURN:
none
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 12/91 Broken out from ProcessInternalContinueFreeBlock
------------------------------------------------------------------------------@
ProcessFinalBlockFree method dynamic ProcessClass,
MSG_PROCESS_FINAL_BLOCK_FREE
mov bx, cx
; First, check to see if the block is really a VM block
LoadVarSeg ds
mov si, ds:[bx].HM_owner
cmp ds:[si].HG_type, SIG_VM
jnz notVM
call VMMemBlockToVMBlock
call VMFree
ret
notVM:
call ObjLockObjBlock
mov ds, ax
mov ax, ds:[LMBH_flags]
test ax, mask LMF_DETACHABLE
jz useMemFree
test ax, mask LMF_DUPLICATED
jnz useFreeDup
useMemFree:
GOTO MemFree
useFreeDup:
call ObjFreeDuplicate
ret
ProcessFinalBlockFree endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ProcessBlockDiscard
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Discards the passed block - if it is a resource block, this
modifies the handle data to reflect the size of the block.
CALLED BY: GLOBAL
PASS: cx - handle of block to discard (must be owned by this geode)
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 8/ 3/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ProcessBlockDiscard method ProcessClass, MSG_PROCESS_OBJ_BLOCK_DISCARD
.enter
mov bx, cx
EC < call ECCheckLMemHandle >
call MemLock
mov ds, ax
; Ensure that the block passed in is valid - it has to be an object
; block, and cannot be allocated from scratch or duplicated
EC < test ds:[LMBH_flags], mask LMF_DUPLICATED >
EC < ERROR_NZ CANNOT_DISCARD_DUPLICATED_BLOCK >
EC < cmp ds:[LMBH_lmemType], LMEM_TYPE_OBJ_BLOCK >
EC < ERROR_NZ CANNOT_DISCARD_NON_OBJ_BLOCK >
EC < tst ds:[OLMBH_inUseCount] >
EC < ERROR_NZ CANNOT_DISCARD_BLOCK_THAT_IS_IN_USE >
; The object block can be a different size than it was originally
; (if objects were allocated/spec built in the block).
;
; Get the original size of the resource so we can stuff it back in
;
mov cx, ds:[OLMBH_resourceSize] ;CX <- original size of block
; (in paragraphs)
EC < tst cx >
EC < ERROR_Z CANNOT_DISCARD_ALLOCATED_OBJ_BLOCK >
call MemUnlock ;
; Make the block discardable temporarily, discard it, then set it
; not-discardable.
LoadVarSeg ds
BitSet ds:[bx].HM_flags, HF_DISCARDABLE
call MemDiscard
BitClr ds:[bx].HM_flags, HF_DISCARDABLE
mov ds:[bx].HM_size, cx
.leave
ret
ProcessBlockDiscard endp
COMMENT @----------------------------------------------------------------------
FUNCTION: ProcessInstantiate -- MSG_PROCESS_INSTANTIATE for ProcessClass
DESCRIPTION: Remotely instantiate an object
PASS:
ds - core block of geode
es - segment where process class defined (same as ds for applications)
di - MSG_PROCESS_INSTANTIATE
cx - data for ObjInstantiate
dx - block to instantiate in
bp:si - class to instantiate
RETURN:
bp - newly created chunk
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 2/89 Initial version
------------------------------------------------------------------------------@
ProcessInstantiate method dynamic ProcessClass, MSG_PROCESS_INSTANTIATE
mov es,bp
mov di,si
mov bx,dx
call ObjInstantiate
mov bp,si
ret
ProcessInstantiate endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ProcessInstantiateForThread
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Remotely instantiate an object for thread
CALLED BY: MSG_PROCESS_INSTANTIATE_FOR_THREAD
PASS: *ds:si = ProcessClass object
ds:di = ProcessClass instance data
ds:bx = ProcessClass object (same as *ds:si)
es = segment of ProcessClass
ax = message #
dx:bp = class of new object to instantiate
RETURN: ^ldx:bp = optr of new object
DESTROYED: ax
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Joon 2/ 2/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ProcessInstantiateForThread method dynamic ProcessClass,
MSG_PROCESS_INSTANTIATE_FOR_THREAD
clr bx ; instantiate for current thread
movdw esdi, dxbp
call ObjInstantiateForThread
movdw dxbp, bxsi
ret
ProcessInstantiateForThread endm
COMMENT @----------------------------------------------------------------------
METHOD: ProcessCopyChunkIn
DESCRIPTION: Copy memory into an object block. Source can be in same block
(but must be using mode CCM_OPTR).
WHO CAN USE: Anyone
PASS:
es - segment of ProcessClass
ax - MSG_PROCESS_COPY_CHUNK_IN
dx - # of bytes on stack
ss:bp - pointer to:
CopyChunkInFrame struct
CCIF_copyFlags CopyChunkFlags
CCIF_source dword
CCIF_destBlock hptr
CopyChunkInFrame ends
CopyChunkMode etype byte
CCM_OPTR
;from <object block><chunk>
;object flags are copied to dest chunk
CCM_HPTR
;from <mem block><offset>
CCM_FPTR
;from <seg><offset>
to <destination block><CREATED chunk>
CopyChunkFlags record
CCF_DIRTY:1
; DIRTY - if set, mark dest chunk dirty
CCF_MODE CopyChunkMode:2
CCF_SIZE:13
; Not used for CCM_OPTR
CopyChunkFlags end
DIRTY - if set, new chunk is DIRTY, but not IGNORE_DIRTY
if clear, not DIRTY, but IGNORE_DIRTY
RETURN:
ax - chunk handle created
cx - # bytes copied
DESTROYED:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
If an object chunk is copied to another chunk the OCF_IS_OBJECT flag
IS copied to the dest chunk. See above for more details
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 1/90 Initial version
cdb 10/91 Changed to allow copying to a
non-object lmem block
------------------------------------------------------------------------------@
ProcessCopyChunkIn method ProcessClass, MSG_PROCESS_COPY_CHUNK_IN
mov cx,ss:[bp].CCIF_source.handle ;<cx><dx> = source
mov dx,ss:[bp].CCIF_source.chunk
mov bx,ss:[bp].CCIF_destBlock
mov bp, ss:[bp].CCIF_copyFlags ;bp = CopyChunkFlags
call ObjLockObjBlock ;Lock destination block
EC < call ECCheckLMemHandle >
mov ds,ax ;DS <- destination block
EC < call ECLMemValidateHeapFar >
; First, get a far pointer to the data and get the size of the data.
; How to do this depends on the type of parameters passed.
push bp ;Save flags
clr si ;Set flag saying we want to
; unlock the block
and bp, mask CCF_MODE
cmp bp, CCM_HPTR shl offset CCF_MODE
je handleoffset
inc si ;Set flag saying we don't want
; to unlock a block
cmp bp, CCM_FPTR shl offset CCF_MODE
je farptr
EC < cmp bp, CCM_OPTR shl offset CCF_MODE >
EC < ERROR_NZ BAD_COPY_CHUNK_MODE >
; passed ^lcx:dx -- must lock block, get chunk size and deref chunk
mov bx, cx
call ObjLockObjBlock ; lock block
mov es, ax
mov si, dx ; *es:si = source
; make sure that the passed chunk actually exists
EC < push ds >
EC < segmov ds, es >
EC < call ECLMemValidateHandle >
EC < pop ds >
mov di, es:[si] ; es:di = source
ChunkSizePtr es, di, cx ; cx = size
call ProcObjGetFlags ; get object flags
andnf al, mask OCF_IS_OBJECT ; leave only is object flag
ornf al, mask OCF_DIRTY ; assume dirty
pop bp ; passed chunk copy flags
test bp,mask CCF_DIRTY
jne dirty1
andnf al, not (mask OCF_DIRTY); clear dirty
ornf al, mask OCF_IGNORE_DIRTY; set ignore dirty
dirty1:
call LMemAlloc
mov di, ax ; *ds:di is destination
mov di, ds:[di] ; ds:di = dest
segmov es, ds ; es:di = dest
call MemDerefDS ; *ds:si = source
mov si, ds:[si] ; ds:si = source
clr bp ; Unlock source block
jmp short common
; passed global memory handle:far
handleoffset:
mov bx,cx
call MemLock ; lock global block:far
mov cx,ax ; segment in cx, offset in dx
farptr:
EC < mov ax,ds >
EC < cmp cx,ax >
EC < ERROR_Z CANT_COPY_CHUNK_FROM_FIXED_OFFSET_IN_SAME_SEGMENT >
pop bp ;Restore CopyChunkFlags
push cx ;Save source segment
mov cx,bp ; cx <- size
and cx, mask CCF_SIZE ;
push cx ;Save size
EC < tst cx >
EC < ERROR_Z ZERO_SIZE_PASSED_TO_COPY_CHUNK_MESSAGE >
mov al, mask OCF_DIRTY
test bp,mask CCF_DIRTY
jne dirty2
mov al, mask OCF_IGNORE_DIRTY
dirty2:
call LMemAlloc
mov di, ax ; *ds:di is destination
mov di, ds:[di] ; ds:di = dest
segmov es, ds ; es:di = dest
pop cx ;CX <- size
pop ds ;Restore source segment
mov bp,si ;Move unlock flag into BP
mov si,dx ; ds:si = source
common:
; ds:si = source
; es:di = dest
; cx = size
; bp is zero if block needs unlocking
; ax = chunk handle of created destination chunk
call ProcessCopyCommon
push ax
mov bx, es:[LMBH_handle] ;Unlock destination block
call MemUnlock
pop ax
ret
ProcessCopyChunkIn endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ProcObjGetFlags
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS:
Return flags for chunk. If chunk has no flags return 0
CALLED BY: INTERNAL
ProcessCopyChunkIn
PASS:
*(es:si) - chunk
RETURN:
al - flags or zero
ah - zero
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
optimized for no flags case
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 5/14/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ProcObjGetFlags proc near
.enter
test es:[LMBH_flags], mask LMF_HAS_FLAGS
jnz hasFlags
clr ax ;no flags
done:
.leave
ret
hasFlags:
push ds ;don't destroy
segmov ds,es,ax ;object segment
mov ax,si ;object chunk
call ObjGetFlags
pop ds ;undestroy
jmp done
ProcObjGetFlags endp
COMMENT @----------------------------------------------------------------------
FUNCTION: ProcessCopyCommon
DESCRIPTION: Common code between GenCopyChunkIn and GenCopyChunkOut
CALLED BY: INTERNAL
PASS:
ds:si - source
es:di - dest
cx - number of bytes to move (not including possible null-termination)
bp - flag -> if bp=0 then unlock bx after move
bx - handle (if bp = 0)
RETURN: nada
DESTROYED: cx,si,di
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/89 Initial version
------------------------------------------------------------------------------@
ProcessCopyCommon proc near
uses cx
.enter
;ds:si = source, es:di = dest, cx = count
rep movsb
tst bp
jnz farPtr
push ax
call MemUnlock
pop ax
farPtr:
.leave
ret
ProcessCopyCommon endp
COMMENT @----------------------------------------------------------------------
METHOD: ProcessCopyChunkOut
DESCRIPTION: Copy a local memory chunk. Operation may be done in same
block.
WHO CAN USE: Anyone
PASS:
es - segment of ProcessClass
ax - MSG_PROCESS_COPY_CHUNK_OUT
dx - # of bytes on stack
ss:bp - pointer to:
CopyChunkOutFrame struct
CCOF_copyFlags CopyChunkFlags
CCOF_source optr
CCOF_dest dword
CopyChunkOutFrame ends
CopyChunkMode etype byte
CCM_OPTR
;to <object block><CREATED CHUNK)
; object block handle in CCOF_dest.handle
CCM_HPTR
;to <CREATED mem block>)
CCM_FPTR
;to <seg><offset>
In CopyChunkFlags:
DIRTY - IF there is a CREATED chunk, THEN:
if set, new chunk is DIRTY, but not IGNORE_DIRTY
if clear, not DIRTY, but IGNORE_DIRTY
RETURN:
ax - chunk/block handle (if one created)
cx - number of characters copied
DESTROYED:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
If an object chunk is copied to another chunk the OCF_IS_OBJECT flag
is NOT copied to the dest chunk.
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 1/90 Initial version
------------------------------------------------------------------------------@
ProcessCopyChunkOut method dynamic ProcessClass, MSG_PROCESS_COPY_CHUNK_OUT
mov cx, ss:[bp].CCOF_copyFlags
; FIRST, GET PTR TO SOURCE IN DS:SI
mov bx,ss:[bp].CCOF_source.handle
mov si,ss:[bp].CCOF_source.chunk
call ObjLockObjBlock ;Lock source block
EC < call ECCheckLMemHandle >
mov ds,ax ;DS <- source block
EC < call ECLMemValidateHeapFar >
EC < call ECLMemValidateHandle >
mov si,ds:[si] ;DS:SI <- ptr to data
ChunkSizePtr ds,si,dx ;DX <- size of data
; NOW, GET PTR TO DEST IN ES:DI
clr di ;Set flag saying we want to
; unlock the block
push cx
and cx, mask CCF_MODE
cmp cx, CCM_HPTR shl offset CCF_MODE
je handleoffset
inc di ;Set flag saying we don't want
; to unlock a block
cmp cx, CCM_FPTR shl offset CCF_MODE
je farptr
EC < cmp cx, CCM_OPTR shl offset CCF_MODE >
EC < ERROR_NZ BAD_COPY_CHUNK_MODE >
; DEST IS OPTR -- LOCK BLOCK AND CREATE CHUNK FOR DEST
pop cx ;Restore CopyChunkFlags
push bx ;Save handle of source block
mov bx,ss:[bp].CCOF_dest.handle
call ObjLockObjBlock ;Lock the block
mov ds,ax ;DS <- dest block
EC < call ECLMemValidateHeapFar >
pop bx ;Restore handle of source block
mov al, mask OCF_DIRTY ;Set dirty flags of dest block
test cx, mask CCF_DIRTY
jne dirty
mov al, mask OCF_IGNORE_DIRTY
dirty:
mov cx,dx ;CX <- size
call LMemAlloc
push ax ;Save chunk handle
mov di,ax
mov di,ds:[di] ;Dereference new chunk
segmov es,ds ;ES:DI <- ptr to dest
call MemDerefDS ;DS:SI <- ptr to source
mov bx, es:[LMBH_handle] ;BX <- handle of dest block
jmp unlockblockcommon
handleoffset:
; DEST IS CREATED BLOCK -- CREATE BLOCK
pop cx ;Pop flags off stack
mov ax,dx ;AX <- SIZE OF NEW BLOCK
mov cx, (HAF_STANDARD_NO_ERR_LOCK shl 8) or mask HF_SHARABLE or mask HF_SWAPABLE
call MemAllocFar ;BX <- handle of dest block
;AX <- size of dest block
push bx ;Save new block handle
mov es,ax ;ES:DI <- dest
clr di
unlockblockcommon:
clr bp ;Set flag -- we want to unlock
; dest block
jmp common
farptr:
; DEST IS FAR POINTER -- JUST GET POINTER
pop cx ;Pop flags off stack
mov es, ss:[bp].CCOF_dest.segment
mov di, ss:[bp].CCOF_dest.offset
mov bp,1 ;Don't want to unlock dest
; block
push bp ;Just push any random amount
common:
mov cx,dx ;CX <- size
call ProcessCopyCommon
mov bx,ds:[LMBH_handle]
call MemUnlock ;Unlock source block
pop ax ;Restore created chunk/block
; handle
ret
ProcessCopyChunkOut endm
COMMENT @----------------------------------------------------------------------
METHOD: ProcessCopyChunkOver
DESCRIPTION: Copy a local memory chunk OVER an object block chunk. If
copying from the same block, MUST USE CCM_OPTR!
WHO CAN USE: Anyone
PASS:
es - segment of ProcessClass
ax - MSG_PROCESS_COPY_CHUNK_OVER
dx - # of bytes on stack
ss:bp - pointer to:
CopyChunkOVerFrame struct
CCOVF_copyFlags CopyChunkFlags
CCOVF_source dword
CCOVF_dest optr
;If dest chunk is 0, new chunk created and
;object flags are copied to dest chunk
CopyChunkOVerFrame ends
CopyChunkMode etype byte
CCM_OPTR
;from <object block><chunk>
CCM_HPTR
;from <mem block><offset>
CCM_FPTR
;from <seg><offset>
;
CopyChunkFlags record
CCF_DIRTY:1
; DIRTY - if set, mark dest chunk dirty
CCF_MODE CopyChunkMode:2
CCF_SIZE:13
; Not used for CCM_OPTR
CopyChunkFlags end
RETURN:
DESTROYED:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
In general, if an object chunk is copied to another chunk,
the OCF_IS_OBJECT flag is NOT copied to the dest chunk.
See above for more details
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 1/90 Initial version
------------------------------------------------------------------------------@
ProcessCopyChunkOver method dynamic ProcessClass, MSG_PROCESS_COPY_CHUNK_OVER
mov cx, ss:[bp].CCOVF_copyFlags ;cx = CopyChunkFlags
; First, get a far pointer to the data and get the size of the data.
; How to do this depends on the type of parameters passed.
tst ss:[bp].CCOVF_dest.chunk ;Is dest chunk null?
jne notnull ;Branch if not
mov bx,bp ;Save CCOVF
sub sp, size CopyChunkInFrame
mov bp, sp
mov ax, ss:[bx].CCOVF_source.handle
mov ss:[bp].CCIF_source.handle, ax
mov ax, ss:[bx].CCOVF_source.chunk
mov ss:[bp].CCIF_source.chunk, ax
mov ax, ss:[bx].CCOVF_dest.handle
mov ss:[bp].CCIF_destBlock, ax
mov ss:[bp].CCIF_copyFlags, cx
call ProcessCopyChunkIn ;Copy the data in.
add sp, size CopyChunkInFrame
ret
notnull:
push cx ;Save flags
clr si ;Set flag saying we want to
; unlock the block
and cx, mask CCF_MODE
cmp cx, CCM_HPTR shl offset CCF_MODE
LONG_EC je handleoffset
inc si ;Set flag saying we don't want
; to unlock a block
cmp cx, CCM_FPTR shl offset CCF_MODE
LONG_EC je farptr
EC < cmp cx, CCM_OPTR shl offset CCF_MODE >
EC < ERROR_NZ BAD_COPY_CHUNK_MODE >
; SOURCE IS OPTR - LOCK BLOCK AND DEREFERENCE CHUNK
mov bx, ss:[bp].CCOVF_source.handle
call ObjLockObjBlock ; lock source block
mov es, ax
mov si, ss:[bp].CCOVF_source.chunk ; *es:si = source
; make sure that the passed chunk actaully exists
EC < push ds >
EC < segmov ds, es >
EC < call ECLMemValidateHeapFar >
EC < call ECLMemValidateHandle >
EC < pop ds >
mov di, es:[si] ; es:di = source
ChunkSizePtr es, di, cx ; cx = size
mov bx, ss:[bp].CCOVF_dest.handle
call ObjLockObjBlock ;Lock the block
mov ds,ax ;DS <- dest segment
mov ax, ss:[bp].CCOVF_dest.chunk
EC < push si >
EC < mov si,ax >
EC < call ECLMemValidateHeapFar >
EC < call ECLMemValidateHandle >
EC < pop si >
call LMemReAlloc ;Reallocate the chunk to be the right
; size
pop di
test di, mask CCF_DIRTY ;Do we want to mark the chunk as dirty?
mov bx, (mask OCF_DIRTY shl 8) ;assume not, clear OCF_DIRTY
jz notdirty ;If not, branch
mov bx, mask OCF_DIRTY ;Else set the block as dirty
notdirty:
call ObjSetFlags ;
mov di,ax
mov di,ds:[di] ;
segmov es,ds ;es:di <- dest ptr
mov bx, ss:[bp].CCOVF_source.handle ;^lBX:SI <- source ptr
call MemDerefDS ;*DS:SI <- source ptr
mov si,ds:[si] ;DS:SI <- source ptr
clr bp ;Else, clear BP so we unlock the block
; in BX
jmp common
handleoffset:
mov bx,ss:[bp].CCOVF_source.handle
call MemLock ; lock global block:far
mov es,ax ;ES <- source segment
jmp offsetcommon
farptr:
mov es,ss:[bp].CCOVF_source.segment
offsetcommon:
pop cx ;Restore flags
push bx
mov bx, ss:[bp].CCOVF_dest.handle
call ObjLockObjBlock
EC < mov bx,es >
EC < cmp bx,ax >
EC < ERROR_Z CANT_COPY_CHUNK_FROM_FIXED_OFFSET_IN_SAME_SEGMENT >
mov ds,ax ;DS <- dest block
mov ax, ss:[bp].CCOVF_dest.chunk
; MARK DEST CHUNK AS DIRTY IF NEEDED
test cx, mask CCF_DIRTY ;Do we want to mark the chunk as dirty?
je notdirty1 ;If not, branch
mov bx, mask OCF_DIRTY ;Else set the block as dirty
call ObjSetFlags ;
notdirty1:
and cx, mask CCF_SIZE ;CX <- size of data
EC < tst cx >
EC < ERROR_Z ZERO_SIZE_PASSED_TO_COPY_CHUNK_MESSAGE >
call LMemReAlloc ;Reallocate dest to be correct size
mov di,es ;DI <- segment of source block
segmov es,ds,dx ;ES <- segment of dest block
mov ds,di ;DS <- segment of source block
mov di,ss:[bp].CCOVF_source.offset ;DS:DI <- source
mov bp,si ;BP <- unlock source block flag
; (if 0, unlock the source block in
; ProcessCopyCommon)
mov si,di ;DS:SI <- source
mov di,ax ;*ES:DI <- dest
mov di,es:[di] ;ES:DI <- dest
pop bx ;Restore handle of source block (if
; mode is CCM_HPTR)
common:
; ds:si = source
; es:di = dest
; cx = size
; bp is zero if block in bx needs unlocking
call ProcessCopyCommon
push ax
mov bx, es:[LMBH_handle] ;Unlock destination block
call MemUnlock
pop ax
ret
ProcessCopyChunkOver endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ProcessSendClassedEvent
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: handle MSG_META_SEND_CLASSED_EVENT to avoid getting to
MetaClass handler, which assumes an LMem object
CALLED BY: MSG_META_SEND_CLASSED_EVENT
PASS: ds = dgroup of process
es = segment of ProcessClass
ax = MSG_META_SEND_CLASSED_EVENT
cx = handle of classed event
dx = TravelOption:
If TO_NULL, destroy
If TO_OBJ_BLOCK_OUTPUT, FatalError
else send to self (TO_SELF or TO_PROCESS)
RETURN: if Event delivered:
carry, ax, cx, dx, bp = return values, if any,
from method
ALLOWED TO DESTROY:
bx, si, di, ds, es
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 1/21/93 Initial version (modified from
ObjMetaSendClassedEvent)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ProcessSendClassedEvent method ProcessClass, MSG_META_SEND_CLASSED_EVENT
mov bx, cx ; bx = event
tst dx
jnz maybeDeliver ; if not TO_NULL, maybe deliver
destroyEvent:
call ObjFreeMessage
;
; Emulate ObjCallMethodTable, clearing AX and carry, so caller
; can reliably determine if message was delivered, barring
; thread crossings and assuming real handler always returns carry
; set... -- ardeb 10/25/92
;
clr ax
ret ; <-- EXIT HERE
maybeDeliver:
EC < cmp dx, TO_OBJ_BLOCK_OUTPUT >
EC < ERROR_E PROCESS_CLASS_ASKED_TO_SEND_TO_OBJ_BLOCK_OUTPUT >
NEC < cmp dx, TO_OBJ_BLOCK_OUTPUT >
NEC < je destroyEvent >
call ObjGetMessageInfo ; ^lcx:si = class
jcxz dispatchEvent ; null class, dispatch
push ds, es
mov di, si
mov es, cx ; es:di = event class
mov si, segment ProcessClass
mov ds, si
mov si, offset ProcessClass ; ds:si = ProcessClass
call ObjIsClassADescendant ; is event class a subclass of Process?
pop ds, es
jnc destroyEvent ; nope, destroy event
dispatchEvent:
push bx ; save event handle
call GeodeGetProcessHandle ; bx = process
mov cx, bx
pop bx ; restore event handle
clr si ; no extra data for process message
; handler
call MessageSetDestination ; set destination
mov di, mask MF_CALL
call MessageDispatch
ret
ProcessSendClassedEvent endm
MetaProcessClassCode ends
GLoad segment
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ProcessStartupUIThread
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create a "UI" thread for this process, if any of its resources
are marked to be run by such a thread.
CALLED BY: MSG_PROCESS_STARTUP_UI_THREAD
PASS: es = kdata
RETURN: carry clear if thread created
DESTROYED: cx, dx, bp
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
doug 6/1/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ProcessStartupUIThread method ProcessClass,
MSG_PROCESS_STARTUP_UI_THREAD
.enter
call GeodeGetProcessHandle
call MemLock
mov ds, ax ; ds:0 now points at ProcessHeader
push bx
mov ax, -2 ; "-2" is token left to mean "UI thread"
mov bx, ax
; Nothing to substitute yet, just find out if there are any blocks
; marked to be run by an as-yet uncreated UI thread
;
call SubstituteRunningThread
pop bx
tst ax
jz noThread ; if none found, exit -- no UI thread needed
clr si
mov cx, segment ProcessClass
mov dx, offset ProcessClass
clr bp ; Use default stack size (GenProcessClass
; will intercept to stuff appropriate value,
; if app hasn't intercepted & overridden)
mov ax, MSG_PROCESS_CREATE_UI_THREAD
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
jc noThread ; if unable to create for whatever reason, exit
; Now that we've got a UI thread, fix up all resources marked as
; "ui-object" to be run by that thread.
;
push bx
mov bx, -2 ; "-2" is token left to mean "UI thread"
xchg ax, bx
call SubstituteRunningThread
xchg ax, bx
pop bx
; Store thread handle in ProcessHeader, for later access
mov ds:[PH_uiThread], ax
clc ; return carry clear, to indicate thread created
done:
call MemUnlock ; unlock core block
.leave
ret
noThread:
stc
jmp short done
ProcessStartupUIThread endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ProcessCreateEventThread
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create an event-driven thread owned by the current process.
Thread is a PRIORITY_STANDARD thread.
CALLED BY: MSG_PROCESS_CREATE_EVENT_THREAD,
MSG_PROCESS_CREATE_UI_THREAD
PASS: es = kdata
cx:dx = fptr to object class for new thread
bp = size of stack for new thread, or NULL for default
size (512 bytes)
RETURN: carry clear if thread could be created:
ax = handle of new thread
DESTROYED: cx, dx, bp
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 1/28/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ProcessCreateEventThread method ProcessClass, MSG_PROCESS_CREATE_EVENT_THREAD,
MSG_PROCESS_CREATE_UI_THREAD
mov si, ss:[TPD_processHandle]
FALL_THRU ProcessCreateEventThreadWithOwner
ProcessCreateEventThread endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ProcessCreateEventThreadWithOwner
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Creates an event thread for a geode.
CALLED BY: GLOBAL
PASS: si - geode to own the thread
cx:dx - class for the thread
bp - stack size for the thread, or NULL for the default
RETURN: carry clear if thread created
ax - handle of new thread
DESTROYED: cx, dx, bp
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/ 1/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ProcessCreateEventThreadWithOwner method ProcessClass,
MSG_PROCESS_CREATE_EVENT_THREAD_WITH_OWNER
.enter
LoadVarSeg ds, ax ; ds <- kdata
push cx, dx ; Save class pointer
;
; Allocate a queue for the thing.
;
call GeodeAllocQueue
mov ax, si
call HandleModifyOwner ;Make it owned by the passed
; geode.
;
; Put MSG_META_ATTACH on it for when the thread attaches to it.
;
mov ax, MSG_META_ATTACH
mov di, mask MF_FORCE_QUEUE
call ObjMessage ; no nukage of BP if MF_FORCE_QUEUE
;
; Now create a thread for the beast and make it attach to the queue
; we just created. BX already holds the queue (to be passed to the
; thread in CX)
;
mov al, PRIORITY_STANDARD
mov cx, segment NewEventThread
mov dx, offset NewEventThread
mov di, bp
tst di ; if NULL stack size passed,
jnz haveStackSize
mov di, 512 ; use a paltry size of 512.
haveStackSize:
mov bp, si ;BP <- owner thread to create
push bx
call ThreadCreate
jc error
pop ds:[bx].HT_eventQueue ; set event queue for the
; thread in case somebody
; sends an event to it early.
;
; Set the class pointer for the thread to that passed. It'll wait
; until we've done this before it tries to attach to the queue.
;
call ThreadFindStack ; use ThreadFindStack to deal with the
; thread possibly being in DOS while it's
; notifying its various libraries of its
; creation.
mov es, ax
pop es:[TPD_classPointer].segment, \
es:[TPD_classPointer].offset
;
; Let the new thread run. Again, we use the semaphore created at
; the bottom of the stack, just above ThreadPrivateData, to
; synchronize the startup of the thread.
;
mov di, size ThreadPrivateData
.warn -field
VSem es, [di]
.warn @field
;
; Return the new thread handle in AX
;
mov_trash ax, bx
clc
done:
.leave
ret
error:
;
; Free the queue, since there's no thread for it.
;
pop bx
call GeodeFreeQueue
;
; Clear out the class pointer
;
add sp, 4
;
; Return an error, dude.
;
stc
jmp done
ProcessCreateEventThreadWithOwner endm
GLoad ends
; Put this small routine into kcode to avoid swapping in of the entire GLoad
; resource if the system makes frequent use of MSG_PROCESS_CALL_ROUTINE
; (e.g. gpc1apm for battery polling). -- mgroeber 12/03/00
kcode segment resource
COMMENT @----------------------------------------------------------------------
MESSAGE: ProcessCallRoutine -- MSG_PROCESS_CALL_ROUTINE for ProcessClass
DESCRIPTION: Call a routine
PASS:
*ds:si - instance data
es - segment of ProcessClass
ax - The message
ss:bp - ProcessCallRoutineParams
RETURN:
DESTROYED:
bx, si, di, ds, es (message handler)
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 4/22/93 Initial version
------------------------------------------------------------------------------@
ProcessCallRoutine method dynamic ProcessClass, MSG_PROCESS_CALL_ROUTINE
mov ax, ss:[bp].PCRP_dataAX
mov ss:[TPD_dataAX], ax
mov ax, ss:[bp].PCRP_dataBX
mov ss:[TPD_dataBX], ax
mov cx, ss:[bp].PCRP_dataCX
mov dx, ss:[bp].PCRP_dataDX
mov si, ss:[bp].PCRP_dataSI
mov di, ss:[bp].PCRP_dataDI
movdw bxax, ss:[bp].PCRP_address
GOTO ProcCallFixedOrMovable
ProcessCallRoutine endm
kcode ends
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
NewEventThread
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Simple little startup routine for MSG_PROCESS_CREATE_EVENT_THREAD
that waits until it's ok to attach to the passed queue
and does so.
CALLED BY: ThreadCreate
PASS: ds,es = thread's dgroup
cx = queue to which to attach
RETURN: never
DESTROYED: everything
PSEUDO CODE/STRATEGY:
Block on ss:TPD_callVector until TPD_classPointer is set
Go to AttachToQueueLow to handle everything else.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 1/28/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
NewEventThread proc far
;
; block on semaphore at stackBot until resources properly initialized/
; class pointer is properly set, then shift stackBot back to its
; original place.
;
mov bx, ss:[TPD_stackBot]
sub bx, size Semaphore
.warn -field ; I know, I know...
PSem ss, [bx]
.warn @field
mov ss:[TPD_stackBot], bx
mov bx, cx
jmp AttachToQueueLow
NewEventThread endp
|
/*
Project: SSBRenderer
File: virtualdub.cpp
Copyright (c) 2015, Christoph "Youka" Spanknebel
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "interfaces/vd2/vdvideofilt.h"
#include "FilterBase.hpp"
namespace VDub{
// Fill description for stringProc & stringProc2
void fill_description(std::string desc, char* buf, int maxlen = 128){
// Fill description buffer with given string
strncpy(buf, desc.c_str(), maxlen-1)[maxlen-1] = '\0';
}
// Filter definition
VDXFilterDefinition filter_definition = {
nullptr, // _next
nullptr, // _prev
nullptr, // _module
FilterBase::get_name(), // name
FilterBase::get_description(), // desc
FilterBase::get_author(), // maker
nullptr, // private data
sizeof(void*), // inst_data_size
// initProc (Filter initialization)
[](VDXFilterActivation* fdata, const VDXFilterFunctions* ffuncs) -> int{
void** userdata = reinterpret_cast<void**>(fdata->filter_data);
*userdata = nullptr;
try{
FilterBase::VDub::init(userdata);
}catch(std::string err){
ffuncs->Except(err.c_str());
return 1;
}
// Success
return 0;
},
// deinitProc (Filter deinitialization)
[](VDXFilterActivation* fdata, const VDXFilterFunctions*) -> void{
FilterBase::VDub::deinit(*reinterpret_cast<void**>(fdata->filter_data));
},
// runProc (Filter run/frame processing)
[](const VDXFilterActivation* fdata, const VDXFilterFunctions*) -> int{
FilterBase::VDub::filter_frame(reinterpret_cast<unsigned char*>(fdata->src.data), fdata->src.pitch, fdata->src.mFrameTimestampStart / 10000, fdata->src.mFrameTimestampEnd / 10000, reinterpret_cast<void**>(fdata->filter_data));
// Success
return 0;
},
// paramProc (Filter video format)
[](VDXFilterActivation*, const VDXFilterFunctions*) -> long{
// Use default format (RGB, bottom-up)
return 0;
},
// configProc (Filter configuration)
[](VDXFilterActivation* fdata, const VDXFilterFunctions*, VDXHWND wnd) -> int{
return FilterBase::VDub::request_config(reinterpret_cast<HWND>(wnd), reinterpret_cast<void**>(fdata->filter_data));
},
// stringProc (Filter description)
[](const VDXFilterActivation* fdata, const VDXFilterFunctions*, char* buf) -> void{
fill_description(FilterBase::VDub::gen_args_desc(*reinterpret_cast<void**>(fdata->filter_data)), buf);
},
// startProc (Filter start running)
[](VDXFilterActivation* fdata, const VDXFilterFunctions* ffuncs) -> int{
// All video informations available?
if(fdata->pfsi == nullptr)
ffuncs->Except("Video informations are missing!");
// Allocate renderer (and free previous renderer in case of buggy twice start)
try{
FilterBase::VDub::start({fdata->src.w, fdata->src.h, FilterBase::ColorType::BGRX, static_cast<double>(fdata->src.mFrameRateHi)/fdata->src.mFrameRateLo, static_cast<decltype(FilterBase::VideoInfo::frames)>(fdata->src.mFrameCount)}, reinterpret_cast<void**>(fdata->filter_data));
}catch(std::string err){
ffuncs->Except(err.c_str());
return 1;
}
// Success
return 0;
},
// endProc (Filter end running)
[](VDXFilterActivation* fdata, const VDXFilterFunctions*) -> int{
FilterBase::VDub::end(reinterpret_cast<void**>(fdata->filter_data));
// Success
return 0;
},
nullptr, // script_obj
nullptr, // fssProc
// stringProc2 (Filter description *newer versions*)
[](const VDXFilterActivation* fdata, const VDXFilterFunctions*, char* buf, int maxlen) -> void{
fill_description(FilterBase::VDub::gen_args_desc(*reinterpret_cast<void**>(fdata->filter_data)), buf, maxlen);
},
nullptr, // serializeProc
nullptr, // deserializeProc
nullptr, // copyProc
nullptr, // prefetchProc
nullptr, // copyProc2
nullptr, // prefetchProc2
nullptr // eventProc
};
}
// VirtualDub plugin interface - register
VDXFilterDefinition *registered_filter_definition;
extern "C" __declspec(dllexport) int VirtualdubFilterModuleInit2(struct VDXFilterModule* fmodule, const VDXFilterFunctions* ffuncs, int& vdfd_ver, int& vdfd_compat){
// Create register definition
registered_filter_definition = ffuncs->addFilter(fmodule, &VDub::filter_definition, sizeof(VDXFilterDefinition));
// Version & compatibility definition
vdfd_ver = VIRTUALDUB_FILTERDEF_VERSION;
vdfd_compat = VIRTUALDUB_FILTERDEF_COMPATIBLE_COPYCTOR;
// Success
return 0;
}
// VirtualDub plugin interface - unregister
extern "C" __declspec(dllexport) void VirtualdubFilterModuleDeinit(struct VDXFilterModule*, const VDXFilterFunctions *ffuncs){
// Remove register definition
ffuncs->removeFilter(registered_filter_definition);
}
|
; A184744: floor(nr+h), where r=1+1/e, h=1/2; complement of A184745.
; 1,3,4,5,7,8,10,11,12,14,15,16,18,19,21,22,23,25,26,27,29,30,31,33,34,36,37,38,40,41,42,44,45,47,48,49,51,52,53,55,56,57,59,60,62,63,64,66,67,68,70,71,72,74,75,77,78,79,81,82,83,85,86,88,89,90,92,93,94,96,97,98,100,101,103,104,105,107,108,109,111,112,114,115,116,118,119,120,122,123,124,126,127,129,130,131,133,134,135,137,138,140,141,142,144,145,146,148,149,150,152,153,155,156,157,159,160,161,163,164
mov $7,$0
add $7,1
mov $13,$0
lpb $7
mov $0,$13
sub $7,1
sub $0,$7
mov $9,$0
mov $11,2
lpb $11
mov $0,$9
sub $11,1
add $0,$11
sub $0,1
mul $0,4
add $0,10
mov $3,8
mov $4,8
lpb $0
sub $0,1
sub $3,1
mul $4,$0
mov $0,4
mov $2,$4
sub $2,5
mov $5,8
add $5,$2
mov $6,$3
pow $6,2
mul $6,2
sub $6,4
add $0,$6
sub $0,11
div $5,$0
mov $0,2
mul $6,$5
lpe
mov $8,$6
mov $12,$11
lpb $12
mov $10,$8
sub $12,1
lpe
lpe
lpb $9
mov $9,0
sub $10,$8
lpe
mov $8,$10
div $8,94
add $8,1
add $1,$8
lpe
|
/*
* WARNING: This file is the eptimome of deadline-induced bad practice.. while this definitely works,
* it is far from elegant code, and is probably hard to read. You're welcome to use it as an example,
* but I strongly suggest looking elsewhere. You have been warned.
*/
.macro draw_nametable name
set_ppu_addr $2000
store #<(name), tempAddr
store #>(name), tempAddr+1
jsr PKB_unpackblk
.endmacro
.macro draw_sprites name
jsr clear_sprites
store #<(name), tempAddr
store #>(name), tempAddr+1
jsr draw_title_sprites_origin
.endmacro
.macro draw_full_screen screen, sprites
jsr vblank_wait
jsr disable_all
jsr vblank_wait
jsr sound_update
draw_nametable screen
draw_sprites sprites
reset_ppu_scrolling_and_ctrl
jsr vblank_wait
jsr enable_all
jsr sound_update
.endmacro
; Why have estimated stats when you can put the real ones in?
draw_real_credits_numbers:
write_string .sprintf("% 6d", BUILD), $22f8
write_string .sprintf("% 6d", CODE_LINE_COUNT), $2318
write_string .sprintf("% 6d", COMMIT_COUNT), $2358
rts
.macro draw_ending_screen num
draw_full_screen .ident(.concat("ending_tile_", .string(num))), .ident(.concat("ending_sprites_", .string(num)))
.endmacro
.macro draw_good_ending_screen num
draw_full_screen .ident(.concat("good_ending_tile_", .string(num))), .ident(.concat("good_ending_sprites_", .string(num)))
.endmacro
.macro draw_ending_text_only num
draw_full_screen .ident(.concat("ending_tile_", .string(num))), .ident(.concat("ending_sprites_", .string(num)))
.endmacro
show_good_ending:
lda #SONG_GOOD_ENDING
jsr music_play
lda #1
jsr music_pause
lda #SFX_WARP
ldx #FT_SFX_CH0
jsr sfx_play
jsr disable_all
lda #%11001000
sta ppuCtrlBuffer
lda #0
sta scrollX
sta scrollY
reset_ppu_scrolling_and_ctrl
lda #MENU_PALETTE_ID
sta currentPalette
lda #$0f
sta currentBackgroundColorOverride
lda #0 ; High-resolution timer for events... tempe = lo, tempf = hi
sta tempe
sta tempf
jsr vblank_wait
set_ppu_addr $3f00
lda #$0f
ldx #0
@loop_pal:
sta PPU_DATA
inx
cpx #32
bne @loop_pal
draw_good_ending_screen 1
reset_ppu_scrolling_and_ctrl
jsr vblank_wait
jsr vblank_wait
jsr enable_all
@loop:
jsr sound_update
jsr read_controller
jsr draw_title_sprites
inc tempe
lda #0
cmp tempe
bne @no_increment
inc tempf
@no_increment:
jsr vblank_wait
bne16 100, tempe, @not_firstfade
jsr do_menu_fade_in
@not_firstfade:
bne16 689, tempe, @not_1st_fadeout
jsr do_menu_fade_out
@not_1st_fadeout:
; Look up where in the cycle we are and if we need to take action.
bne16 690, tempe, @not_2nd
draw_good_ending_screen 2
@not_2nd:
bne16 720, tempe, @not_2nd_fadein
jsr do_menu_fade_in
lda #0
jsr music_pause
@not_2nd_fadein:
bne16 1449, tempe, @not_2nd_fadeout
jsr do_menu_fade_out
@not_2nd_fadeout:
bne16 1450, tempe, @not_3rd
draw_good_ending_screen 3
@not_3rd:
bne16 1480, tempe, @not_3rd_fadein
jsr do_menu_fade_in
@not_3rd_fadein:
bne16 2109, tempe, @not_3rd_fadeout
jsr do_menu_fade_out
@not_3rd_fadeout:
bne16 2110, tempe, @not_4th
draw_good_ending_screen 4
@not_4th:
bne16 2140, tempe, @not_4th_fadein
jsr do_menu_fade_in
@not_4th_fadein:
bne16 2849, tempe, @not_4th_fadeout
jsr do_menu_fade_out
@not_4th_fadeout:
bne16 2850, tempe, @not_5th
draw_good_ending_screen 5
@not_5th:
bne16 2880, tempe, @not_5th_fadein
jsr do_menu_fade_in
@not_5th_fadein:
bne16 3509, tempe, @not_5th_fadeout
jsr do_menu_fade_out
@not_5th_fadeout:
bne16 3510, tempe, @not_credits_1
jsr disable_all
jsr vblank_wait
jsr sound_update
draw_nametable credits_tile_1
jsr draw_real_credits_numbers
reset_ppu_scrolling_and_ctrl
jsr clear_sprites
jsr vblank_wait
jsr sound_update
jsr enable_all
@not_credits_1:
bne16 3540, tempe, @not_credits_1_fadein
jsr do_menu_fade_in
@not_credits_1_fadein:
bne16 4269, tempe, @not_credits_1_fadeout
jsr do_menu_fade_out
@not_credits_1_fadeout:
bne16 4270, tempe, @not_credits_2
jsr disable_all
jsr vblank_wait
jsr sound_update
draw_nametable credits_tile_2
reset_ppu_scrolling_and_ctrl
jsr vblank_wait
jsr sound_update
jsr enable_all
@not_credits_2:
bne16 4300, tempe, @not_credits_2_fadein
jsr do_menu_fade_in
@not_credits_2_fadein:
bne16 5029, tempe, @not_credits_2_fadeout
jsr do_menu_fade_out
@not_credits_2_fadeout:
bne16 5030, tempe, @not_the_end
jsr disable_all
jsr vblank_wait
jsr sound_update
draw_nametable the_end_tile
reset_ppu_scrolling_and_ctrl
draw_sprites the_end_sprites
jsr vblank_wait
jsr sound_update
jsr enable_all
@not_the_end:
bne16 5060, tempe, @not_the_end_fade_in
jsr do_menu_fade_in
@not_the_end_fade_in:
bcs16 5040, tempe, @no_input
; Once you get to the end, hit start to continue
lda ctrlButtons
and #CONTROLLER_START
cmp #0
beq @no_input
jmp reset ; Welp, it was nice knowing you...
@no_input:
jmp @loop
show_bad_ending:
lda #SONG_BAD_ENDING
jsr music_play
lda #1
jsr music_pause
lda #SFX_WARP
ldx #FT_SFX_CH0
jsr sfx_play
lda #%11001000
sta ppuCtrlBuffer
lda #0
sta scrollX
sta scrollY
reset_ppu_scrolling_and_ctrl
lda #MENU_PALETTE_ID
sta currentPalette
lda #$0f
sta currentBackgroundColorOverride
lda #0 ; High-resolution timer for events... tempe = lo, tempf = hi
sta tempe
sta tempf
jsr vblank_wait
set_ppu_addr $3f00
lda #$0f
ldx #0
@loop_pal:
sta PPU_DATA
inx
cpx #32
bne @loop_pal
draw_ending_screen 1
reset_ppu_scrolling_and_ctrl
jsr vblank_wait
jsr vblank_wait
jsr enable_all
@loop:
jsr sound_update
jsr read_controller
jsr draw_title_sprites
inc tempe
lda #0
cmp tempe
bne @no_increment
inc tempf
@no_increment:
jsr vblank_wait
bne16 100, tempe, @not_musica
jsr do_menu_fade_in
lda #0
jsr music_pause
@not_musica:
bne16 689, tempe, @not_1st_fadeout
jsr do_menu_fade_out
@not_1st_fadeout:
; Look up where in the cycle we are and if we need to take action.
bne16 690, tempe, @not_2nd
draw_ending_screen 2
@not_2nd:
bne16 720, tempe, @not_2nd_fadein
jsr do_menu_fade_in
@not_2nd_fadein:
bne16 1449, tempe, @not_2nd_fadeout
jsr do_menu_fade_out
@not_2nd_fadeout:
bne16 1450, tempe, @not_3rd
draw_ending_screen 3
@not_3rd:
bne16 1480, tempe, @not_3rd_fadein
jsr do_menu_fade_in
@not_3rd_fadein:
bne16 2109, tempe, @not_3rd_fadeout
jsr do_menu_fade_out
@not_3rd_fadeout:
bne16 2110, tempe, @not_4th
draw_ending_screen 4
@not_4th:
bne16 2140, tempe, @not_4th_fadein
jsr do_menu_fade_in
@not_4th_fadein:
bne16 2849, tempe, @not_4th_fadeout
jsr do_menu_fade_out
@not_4th_fadeout:
bne16 2850, tempe, @not_5th
draw_ending_screen 5
@not_5th:
bne16 2880, tempe, @not_5th_fadein
jsr do_menu_fade_in
@not_5th_fadein:
bne16 3509, tempe, @not_5th_fadeout
jsr do_menu_fade_out
@not_5th_fadeout:
bne16 3510, tempe, @not_credits_1
jsr disable_all
jsr vblank_wait
jsr sound_update
draw_nametable credits_tile_1
jsr draw_real_credits_numbers
reset_ppu_scrolling_and_ctrl
jsr clear_sprites
jsr vblank_wait
jsr sound_update
jsr enable_all
@not_credits_1:
bne16 3540, tempe, @not_credits_1_fadein
jsr do_menu_fade_in
@not_credits_1_fadein:
bne16 4269, tempe, @not_credits_1_fadeout
jsr do_menu_fade_out
@not_credits_1_fadeout:
bne16 4270, tempe, @not_credits_2
jsr disable_all
jsr vblank_wait
jsr sound_update
draw_nametable credits_tile_2
reset_ppu_scrolling_and_ctrl
jsr vblank_wait
jsr sound_update
jsr enable_all
@not_credits_2:
bne16 4300, tempe, @not_credits_2_fadein
jsr do_menu_fade_in
@not_credits_2_fadein:
bne16 5029, tempe, @not_credits_2_fadeout
jsr do_menu_fade_out
@not_credits_2_fadeout:
bne16 5030, tempe, @not_the_end
jsr disable_all
jsr vblank_wait
jsr sound_update
draw_nametable the_end_question_tile
reset_ppu_scrolling_and_ctrl
jsr vblank_wait
jsr sound_update
jsr enable_all
@not_the_end:
bne16 5060, tempe, @not_the_end_fade_in
jsr do_menu_fade_in
@not_the_end_fade_in:
bcs16 5040, tempe, @no_input
; Once you get to the end, hit start to continue
lda ctrlButtons
and #CONTROLLER_START
cmp #0
beq @no_input
jmp reset ; Welp, it was nice knowing you...
@no_input:
jmp @loop
ending_tile_1:
.incbin "graphics/processed/bad_ending_0.nam.pkb"
ending_sprites_1:
.scope ENDING_SPRITE_0
DX1 = 60
DY1 = 48
.byte DY1, $c0, 0, DX1, DY1, $c1, 0, DX1+8, DY1, $c2, 0, DX1+16
.byte DY1+8, $d0, 0, DX1, DY1+8, $d1, 0, DX1+8, DY1+8, $d2, 0, DX1+16
DX2 = 160
DY2 = 48
.byte DY2, $c2, $40, DX2, DY2, $c1, $40, DX2+8, DY2, $c0, $40, DX2+16
.byte DY2+8, $d2, $40, DX2, DY2+8, $d1, $40, DX2+8, DY2+8, $d0, $40, DX2+16
DX3 = 190
DY3 = 68
.byte DY3, $c8, $40, DX3, DY3, $c7, $40, DX3+8, DY3, $c6, $40, DX3+16
.byte DY3+8, $d8, $40, DX3, DY3+8, $d7, $40, DX3+8, DY3+8, $d6, $40, DX3+16
.byte $ff
.byte $ff
.endscope
ending_tile_2:
.incbin "graphics/processed/bad_ending_1.nam.pkb"
ending_sprites_2:
ending_sprites_3:
ending_sprites_4:
.scope ENDING_SPRITE_1
DX1 = 60
DY1 = 48
.byte DY1, $c0, 0, DX1, DY1, $c1, 0, DX1+8, DY1, $c2, 0, DX1+16
.byte DY1+8, $d0, 0, DX1, DY1+8, $d1, 0, DX1+8, DY1+8, $d2, 0, DX1+16
DX2 = 90
DY2 = 38
.byte DY2, $c2, $40, DX2, DY2, $c1, $40, DX2+8, DY2, $c0, $40, DX2+16
.byte DY2+8, $d2, $40, DX2, DY2+8, $d1, $40, DX2+8, DY2+8, $d0, $40, DX2+16
DX3 = 90
DY3 = 62
.byte DY3, $c2, $40, DX3, DY3, $c1, $40, DX3+8, DY3, $c0, $40, DX3+16
.byte DY3+8, $d2, $40, DX3, DY3+8, $d1, $40, DX3+8, DY3+8, $d0, $40, DX3+16
.byte $ff
.endscope
ending_sprites_5:
.scope ENDING_SPRITE_5
DX1 = 100
DY1 = 48
.byte DY1, $c0, 0, DX1, DY1, $c1, 0, DX1+8, DY1, $c2, 0, DX1+16
.byte DY1+8, $d0, 0, DX1, DY1+8, $d1, 0, DX1+8, DY1+8, $d2, 0, DX1+16
.byte $ff
.endscope
ending_tile_3:
.incbin "graphics/processed/bad_ending_2.nam.pkb"
ending_tile_4:
.incbin "graphics/processed/bad_ending_3.nam.pkb"
ending_tile_5:
.incbin "graphics/processed/bad_ending_4.nam.pkb"
credits_tile_1:
.incbin "graphics/processed/credits_0.nam.pkb"
credits_tile_2:
.incbin "graphics/processed/credits_1.nam.pkb"
the_end_tile:
.incbin "graphics/processed/the_end.nam.pkb"
the_end_question_tile:
.incbin "graphics/processed/the_end_question.nam.pkb"
good_ending_tile_1:
.incbin "graphics/processed/good_ending_0.nam.pkb"
good_ending_tile_2:
.incbin "graphics/processed/good_ending_1.nam.pkb"
good_ending_tile_3:
.incbin "graphics/processed/good_ending_2.nam.pkb"
good_ending_tile_4:
.incbin "graphics/processed/good_ending_3.nam.pkb"
good_ending_tile_5:
.incbin "graphics/processed/good_ending_4.nam.pkb"
good_ending_sprites_1:
.byte $ff
good_ending_sprites_2:
good_ending_sprites_3:
good_ending_sprites_4:
.scope GOOD_ENDING_SPRITE_1
DX1 = 65
DY1 = 48
.byte DY1, $c0, 0, DX1, DY1, $c1, 0, DX1+8, DY1, $c2, 0, DX1+16
.byte DY1+8, $d0, 0, DX1, DY1+8, $d1, 0, DX1+8, DY1+8, $d2, 0, DX1+16
DX2 = 89
DY2 = 48
.byte DY2, $c2, $40, DX2, DY2, $c1, $40, DX2+8, DY2, $c0, $40, DX2+16
.byte DY2+8, $d2, $40, DX2, DY2+8, $d1, $40, DX2+8, DY2+8, $d0, $40, DX2+16
DX3 = 71
DY3 = 38
.byte DY3, $c4, 0, DX3, DY3, $c5, 0, DX3+8
DX4 = 71
DY4 = 68
.byte DY4, $c5, $40, DX4, DY4, $c4, $40, DX4+8
DX5 = 49
DY5 = 52
.byte DY5, $c4, 0, DX5, DY5, $c5, 0, DX5+8
.byte $ff
.endscope
good_ending_sprites_5:
.scope GOOD_ENDING_SPRITE_2
DX1 = 60
DY1 = 48
.byte DY1, $c0, 0, DX1, DY1, $c1, 0, DX1+8, DY1, $c2, 0, DX1+16
.byte DY1+8, $d0, 0, DX1, DY1+8, $d1, 0, DX1+8, DY1+8, $d2, 0, DX1+16
DX2 = 160
DY2 = 48
.byte DY2, $c2, $40, DX2, DY2, $c1, $40, DX2+8, DY2, $c0, $40, DX2+16
.byte DY2+8, $d2, $40, DX2, DY2+8, $d1, $40, DX2+8, DY2+8, $d0, $40, DX2+16
DX3 = 90
DY3 = 40
.byte DY3, $c4, 0, DX3, DY3, $c5, 0, DX3+8
DX4 = 140
DY4 = 40
.byte DY4, $c5, $40, DX4, DY4, $c4, $40, DX4+8
DX5 = 120
DY5 = 60
.byte DY5, $c4, 0, DX5, DY5, $c5, 0, DX5+8
.byte $ff
.endscope
the_end_sprites:
.scope THE_END_SPRITES
DX1 = 60
DY1 = 136
.byte DY1, $c0, 0, DX1, DY1, $c1, 0, DX1+8, DY1, $c2, 0, DX1+16
.byte DY1+8, $d0, 0, DX1, DY1+8, $d1, 0, DX1+8, DY1+8, $d2, 0, DX1+16
DX2 = 160
DY2 = 136
.byte DY2, $c2, $40, DX2, DY2, $c1, $40, DX2+8, DY2, $c0, $40, DX2+16
.byte DY2+8, $d2, $40, DX2, DY2+8, $d1, $40, DX2+8, DY2+8, $d0, $40, DX2+16
DX3 = 90
DY3 = 128
.byte DY3, $c4, 0, DX3, DY3, $c5, 0, DX3+8
DX4 = 140
DY4 = 128
.byte DY4, $c5, $40, DX4, DY4, $c4, $40, DX4+8
DX5 = 120
DY5 = 148
.byte DY5, $c4, 0, DX5, DY5, $c5, 0, DX5+8
.byte $ff
.endscope |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15
push %r9
push %rbp
push %rbx
push %rdx
push %rsi
// Store
lea addresses_WC+0x8f42, %rbx
nop
nop
nop
xor %r11, %r11
mov $0x5152535455565758, %r9
movq %r9, (%rbx)
nop
add %rdx, %rdx
// Store
lea addresses_D+0x1e842, %rsi
nop
nop
nop
nop
nop
xor $24884, %rbp
movl $0x51525354, (%rsi)
nop
nop
nop
nop
nop
and %r9, %r9
// Faulty Load
lea addresses_WT+0x1af42, %r11
nop
nop
nop
add $53888, %r15
vmovntdqa (%r11), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $1, %xmm3, %rbx
lea oracles, %rdx
and $0xff, %rbx
shlq $12, %rbx
mov (%rdx,%rbx,1), %rbx
pop %rsi
pop %rdx
pop %rbx
pop %rbp
pop %r9
pop %r15
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WC', 'size': 8, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_D', 'size': 4, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_WT', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'00': 415}
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 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 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 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 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 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 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 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 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 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 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 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 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
*/
|
#include <string>
#include <vector>
#include "caffe/data_layers.hpp"
#include "caffe/net.hpp"
#include "caffe/util/io.hpp"
namespace caffe {
template <typename Dtype>
BaseDataLayer<Dtype>::BaseDataLayer(const LayerParameter& param)
: Layer<Dtype>(param),
transform_param_(param.transform_param()) {
}
template <typename Dtype>
void BaseDataLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
if (top.size() == 1) {
output_labels_ = false;
} else {
output_labels_ = true;
}
// The subclasses should setup the size of bottom and top
DataLayerSetUp(bottom, top);
data_transformer_.reset(
new DataTransformer<Dtype>(transform_param_, this->phase_));
data_transformer_->InitRand();
}
template <typename Dtype>
void BasePrefetchingDataLayer<Dtype>::LayerSetUp(
const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) {
BaseDataLayer<Dtype>::LayerSetUp(bottom, top);
// Now, start the prefetch thread. Before calling prefetch, we make two
// cpu_data calls so that the prefetch thread does not accidentally make
// simultaneous cudaMalloc calls when the main thread is running. In some
// GPUs this seems to cause failures if we do not so.
this->prefetch_data_.mutable_cpu_data();
if (this->output_labels_) {
this->prefetch_label_.mutable_cpu_data();
}
DLOG(INFO) << "Initializing prefetch";
this->CreatePrefetchThread();
DLOG(INFO) << "Prefetch initialized.";
}
template <typename Dtype>
void BasePrefetchingDataLayer<Dtype>::CreatePrefetchThread() {
this->data_transformer_->InitRand();
CHECK(StartInternalThread()) << "Thread execution failed";
}
template <typename Dtype>
void BasePrefetchingDataLayer<Dtype>::JoinPrefetchThread() {
CHECK(WaitForInternalThreadToExit()) << "Thread joining failed";
}
template <typename Dtype>
void BasePrefetchingDataLayer<Dtype>::Forward_cpu(
const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) {
// First, join the thread
JoinPrefetchThread();
DLOG(INFO) << "Thread joined";
// Reshape to loaded data.
top[0]->Reshape(this->prefetch_data_.num(), this->prefetch_data_.channels(),
this->prefetch_data_.height(), this->prefetch_data_.width());
// Copy the data
caffe_copy(prefetch_data_.count(), prefetch_data_.cpu_data(),
top[0]->mutable_cpu_data());
DLOG(INFO) << "Prefetch copied";
if (this->output_labels_) {
top[1]->Reshape(this->prefetch_label_.num(),
this->prefetch_label_.channels(), this->prefetch_label_.height(),
this->prefetch_label_.width());
caffe_copy(prefetch_label_.count(), prefetch_label_.cpu_data(),
top[1]->mutable_cpu_data());
}
// Start a new prefetch thread
DLOG(INFO) << "CreatePrefetchThread";
CreatePrefetchThread();
}
#ifdef CPU_ONLY
STUB_GPU_FORWARD(BasePrefetchingDataLayer, Forward);
#endif
INSTANTIATE_CLASS(BaseDataLayer);
INSTANTIATE_CLASS(BasePrefetchingDataLayer);
} // namespace caffe
|
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Onex Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sendcoinsdialog.h"
#include "ui_sendcoinsdialog.h"
#include "addresstablemodel.h"
#include "bitcoinunits.h"
#include "clientmodel.h"
#include "coincontroldialog.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include "platformstyle.h"
#include "sendcoinsentry.h"
#include "walletmodel.h"
#include "base58.h"
#include "coincontrol.h"
#include "main.h" // mempool and minRelayTxFee
#include "ui_interface.h"
#include "txmempool.h"
#include "wallet/wallet.h"
#include "darksend.h"
#include <QMessageBox>
#include <QScrollBar>
#include <QSettings>
#include <QTextDocument>
SendCoinsDialog::SendCoinsDialog(const PlatformStyle *platformStyle, QWidget *parent) :
QDialog(parent),
ui(new Ui::SendCoinsDialog),
clientModel(0),
model(0),
fNewRecipientAllowed(true),
fFeeMinimized(true),
platformStyle(platformStyle)
{
ui->setupUi(this);
QString theme = GUIUtil::getThemeName();
if (!platformStyle->getImagesOnButtons()) {
ui->addButton->setIcon(QIcon());
ui->clearButton->setIcon(QIcon());
ui->sendButton->setIcon(QIcon());
} else {
ui->addButton->setIcon(QIcon(":/icons/" + theme + "/add"));
ui->clearButton->setIcon(QIcon(":/icons/" + theme + "/remove"));
ui->sendButton->setIcon(QIcon(":/icons/" + theme + "/send"));
}
GUIUtil::setupAddressWidget(ui->lineEditCoinControlChange, this);
addEntry();
connect(ui->addButton, SIGNAL(clicked()), this, SLOT(addEntry()));
connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clear()));
// Coin Control
connect(ui->pushButtonCoinControl, SIGNAL(clicked()), this, SLOT(coinControlButtonClicked()));
connect(ui->checkBoxCoinControlChange, SIGNAL(stateChanged(int)), this, SLOT(coinControlChangeChecked(int)));
connect(ui->lineEditCoinControlChange, SIGNAL(textEdited(const QString &)), this, SLOT(coinControlChangeEdited(const QString &)));
// Onex specific
QSettings settings;
if (!settings.contains("bUseDarkSend"))
settings.setValue("bUseDarkSend", false);
if (!settings.contains("bUseInstantX"))
settings.setValue("bUseInstantX", false);
bool fUsePrivateSend = settings.value("bUseDarkSend").toBool();
bool fUseInstantSend = settings.value("bUseInstantX").toBool();
if(fLiteMode) {
ui->checkUsePrivateSend->setChecked(false);
ui->checkUsePrivateSend->setVisible(false);
ui->checkUseInstantSend->setVisible(false);
CoinControlDialog::coinControl->fUsePrivateSend = false;
CoinControlDialog::coinControl->fUseInstantSend = false;
}
else{
ui->checkUsePrivateSend->setChecked(fUsePrivateSend);
ui->checkUseInstantSend->setChecked(fUseInstantSend);
CoinControlDialog::coinControl->fUsePrivateSend = fUsePrivateSend;
CoinControlDialog::coinControl->fUseInstantSend = fUseInstantSend;
}
connect(ui->checkUsePrivateSend, SIGNAL(stateChanged ( int )), this, SLOT(updateDisplayUnit()));
connect(ui->checkUseInstantSend, SIGNAL(stateChanged ( int )), this, SLOT(updateInstantSend()));
// Coin Control: clipboard actions
QAction *clipboardQuantityAction = new QAction(tr("Copy quantity"), this);
QAction *clipboardAmountAction = new QAction(tr("Copy amount"), this);
QAction *clipboardFeeAction = new QAction(tr("Copy fee"), this);
QAction *clipboardAfterFeeAction = new QAction(tr("Copy after fee"), this);
QAction *clipboardBytesAction = new QAction(tr("Copy bytes"), this);
QAction *clipboardPriorityAction = new QAction(tr("Copy priority"), this);
QAction *clipboardLowOutputAction = new QAction(tr("Copy dust"), this);
QAction *clipboardChangeAction = new QAction(tr("Copy change"), this);
connect(clipboardQuantityAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardQuantity()));
connect(clipboardAmountAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardAmount()));
connect(clipboardFeeAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardFee()));
connect(clipboardAfterFeeAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardAfterFee()));
connect(clipboardBytesAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardBytes()));
connect(clipboardPriorityAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardPriority()));
connect(clipboardLowOutputAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardLowOutput()));
connect(clipboardChangeAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardChange()));
ui->labelCoinControlQuantity->addAction(clipboardQuantityAction);
ui->labelCoinControlAmount->addAction(clipboardAmountAction);
ui->labelCoinControlFee->addAction(clipboardFeeAction);
ui->labelCoinControlAfterFee->addAction(clipboardAfterFeeAction);
ui->labelCoinControlBytes->addAction(clipboardBytesAction);
ui->labelCoinControlPriority->addAction(clipboardPriorityAction);
ui->labelCoinControlLowOutput->addAction(clipboardLowOutputAction);
ui->labelCoinControlChange->addAction(clipboardChangeAction);
// init transaction fee section
if (!settings.contains("fFeeSectionMinimized"))
settings.setValue("fFeeSectionMinimized", true);
if (!settings.contains("nFeeRadio") && settings.contains("nTransactionFee") && settings.value("nTransactionFee").toLongLong() > 0) // compatibility
settings.setValue("nFeeRadio", 1); // custom
if (!settings.contains("nFeeRadio"))
settings.setValue("nFeeRadio", 0); // recommended
if (!settings.contains("nCustomFeeRadio") && settings.contains("nTransactionFee") && settings.value("nTransactionFee").toLongLong() > 0) // compatibility
settings.setValue("nCustomFeeRadio", 1); // total at least
if (!settings.contains("nCustomFeeRadio"))
settings.setValue("nCustomFeeRadio", 0); // per kilobyte
if (!settings.contains("nSmartFeeSliderPosition"))
settings.setValue("nSmartFeeSliderPosition", 0);
if (!settings.contains("nTransactionFee"))
settings.setValue("nTransactionFee", (qint64)DEFAULT_TRANSACTION_FEE);
if (!settings.contains("fPayOnlyMinFee"))
settings.setValue("fPayOnlyMinFee", false);
if (!settings.contains("fSendFreeTransactions"))
settings.setValue("fSendFreeTransactions", false);
ui->groupFee->setId(ui->radioSmartFee, 0);
ui->groupFee->setId(ui->radioCustomFee, 1);
ui->groupFee->button((int)std::max(0, std::min(1, settings.value("nFeeRadio").toInt())))->setChecked(true);
ui->groupCustomFee->setId(ui->radioCustomPerKilobyte, 0);
ui->groupCustomFee->setId(ui->radioCustomAtLeast, 1);
ui->groupCustomFee->button((int)std::max(0, std::min(1, settings.value("nCustomFeeRadio").toInt())))->setChecked(true);
ui->sliderSmartFee->setValue(settings.value("nSmartFeeSliderPosition").toInt());
ui->customFee->setValue(settings.value("nTransactionFee").toLongLong());
ui->checkBoxMinimumFee->setChecked(settings.value("fPayOnlyMinFee").toBool());
ui->checkBoxFreeTx->setChecked(settings.value("fSendFreeTransactions").toBool());
minimizeFeeSection(settings.value("fFeeSectionMinimized").toBool());
}
void SendCoinsDialog::setClientModel(ClientModel *clientModel)
{
this->clientModel = clientModel;
if (clientModel) {
connect(clientModel, SIGNAL(numBlocksChanged(int,QDateTime,double)), this, SLOT(updateSmartFeeLabel()));
}
}
void SendCoinsDialog::setModel(WalletModel *model)
{
this->model = model;
if(model && model->getOptionsModel())
{
for(int i = 0; i < ui->entries->count(); ++i)
{
SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget());
if(entry)
{
entry->setModel(model);
}
}
setBalance(model->getBalance(), model->getUnconfirmedBalance(), model->getImmatureBalance(), model->getAnonymizedBalance(),
model->getWatchBalance(), model->getWatchUnconfirmedBalance(), model->getWatchImmatureBalance());
connect(model, SIGNAL(balanceChanged(CAmount,CAmount,CAmount,CAmount,CAmount,CAmount,CAmount)), this, SLOT(setBalance(CAmount,CAmount,CAmount,CAmount,CAmount,CAmount,CAmount)));
connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit()));
updateDisplayUnit();
// Coin Control
connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(coinControlUpdateLabels()));
connect(model->getOptionsModel(), SIGNAL(coinControlFeaturesChanged(bool)), this, SLOT(coinControlFeatureChanged(bool)));
ui->frameCoinControl->setVisible(model->getOptionsModel()->getCoinControlFeatures());
coinControlUpdateLabels();
// fee section
connect(ui->sliderSmartFee, SIGNAL(valueChanged(int)), this, SLOT(updateSmartFeeLabel()));
connect(ui->sliderSmartFee, SIGNAL(valueChanged(int)), this, SLOT(updateGlobalFeeVariables()));
connect(ui->sliderSmartFee, SIGNAL(valueChanged(int)), this, SLOT(coinControlUpdateLabels()));
connect(ui->groupFee, SIGNAL(buttonClicked(int)), this, SLOT(updateFeeSectionControls()));
connect(ui->groupFee, SIGNAL(buttonClicked(int)), this, SLOT(updateGlobalFeeVariables()));
connect(ui->groupFee, SIGNAL(buttonClicked(int)), this, SLOT(coinControlUpdateLabels()));
connect(ui->groupCustomFee, SIGNAL(buttonClicked(int)), this, SLOT(updateGlobalFeeVariables()));
connect(ui->groupCustomFee, SIGNAL(buttonClicked(int)), this, SLOT(coinControlUpdateLabels()));
connect(ui->customFee, SIGNAL(valueChanged()), this, SLOT(updateGlobalFeeVariables()));
connect(ui->customFee, SIGNAL(valueChanged()), this, SLOT(coinControlUpdateLabels()));
connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(setMinimumFee()));
connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(updateFeeSectionControls()));
connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(updateGlobalFeeVariables()));
connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(coinControlUpdateLabels()));
connect(ui->checkBoxFreeTx, SIGNAL(stateChanged(int)), this, SLOT(updateGlobalFeeVariables()));
connect(ui->checkBoxFreeTx, SIGNAL(stateChanged(int)), this, SLOT(coinControlUpdateLabels()));
ui->customFee->setSingleStep(CWallet::GetRequiredFee(1000));
updateFeeSectionControls();
updateMinFeeLabel();
updateSmartFeeLabel();
updateGlobalFeeVariables();
}
}
SendCoinsDialog::~SendCoinsDialog()
{
QSettings settings;
settings.setValue("fFeeSectionMinimized", fFeeMinimized);
settings.setValue("nFeeRadio", ui->groupFee->checkedId());
settings.setValue("nCustomFeeRadio", ui->groupCustomFee->checkedId());
settings.setValue("nSmartFeeSliderPosition", ui->sliderSmartFee->value());
settings.setValue("nTransactionFee", (qint64)ui->customFee->value());
settings.setValue("fPayOnlyMinFee", ui->checkBoxMinimumFee->isChecked());
settings.setValue("fSendFreeTransactions", ui->checkBoxFreeTx->isChecked());
delete ui;
}
void SendCoinsDialog::on_sendButton_clicked()
{
if(!model || !model->getOptionsModel())
return;
QList<SendCoinsRecipient> recipients;
bool valid = true;
for(int i = 0; i < ui->entries->count(); ++i)
{
SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget());
if(entry)
{
if(entry->validate())
{
recipients.append(entry->getValue());
}
else
{
valid = false;
}
}
}
if(!valid || recipients.isEmpty())
{
return;
}
QString strFunds = tr("using") + " <b>" + tr("anonymous funds") + "</b>";
QString strFee = "";
recipients[0].inputType = ONLY_DENOMINATED;
if(ui->checkUsePrivateSend->isChecked()) {
recipients[0].inputType = ONLY_DENOMINATED;
strFunds = tr("using") + " <b>" + tr("anonymous funds") + "</b>";
QString strNearestAmount(
BitcoinUnits::formatWithUnit(
model->getOptionsModel()->getDisplayUnit(), vecPrivateSendDenominations.back()));
strFee = QString(tr(
"(privatesend requires this amount to be rounded up to the nearest %1)."
).arg(strNearestAmount));
} else {
recipients[0].inputType = ALL_COINS;
strFunds = tr("using") + " <b>" + tr("any available funds (not anonymous)") + "</b>";
}
if(ui->checkUseInstantSend->isChecked()) {
recipients[0].fUseInstantSend = true;
strFunds += " ";
strFunds += tr("and InstantSend");
} else {
recipients[0].fUseInstantSend = false;
}
fNewRecipientAllowed = false;
// request unlock only if was locked or unlocked for mixing:
// this way we let users unlock by walletpassphrase or by menu
// and make many transactions while unlocking through this dialog
// will call relock
WalletModel::EncryptionStatus encStatus = model->getEncryptionStatus();
if(encStatus == model->Locked || encStatus == model->UnlockedForMixingOnly)
{
WalletModel::UnlockContext ctx(model->requestUnlock());
if(!ctx.isValid())
{
// Unlock wallet was cancelled
fNewRecipientAllowed = true;
return;
}
send(recipients, strFee, strFunds);
return;
}
// already unlocked or not encrypted at all
send(recipients, strFee, strFunds);
}
void SendCoinsDialog::send(QList<SendCoinsRecipient> recipients, QString strFee, QString strFunds)
{
// prepare transaction for getting txFee earlier
WalletModelTransaction currentTransaction(recipients);
WalletModel::SendCoinsReturn prepareStatus;
if (model->getOptionsModel()->getCoinControlFeatures()) // coin control enabled
prepareStatus = model->prepareTransaction(currentTransaction, CoinControlDialog::coinControl);
else
prepareStatus = model->prepareTransaction(currentTransaction);
// process prepareStatus and on error generate message shown to user
processSendCoinsReturn(prepareStatus,
BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), currentTransaction.getTransactionFee()));
if(prepareStatus.status != WalletModel::OK) {
fNewRecipientAllowed = true;
return;
}
CAmount txFee = currentTransaction.getTransactionFee();
// Format confirmation message
QStringList formatted;
Q_FOREACH(const SendCoinsRecipient &rcp, currentTransaction.getRecipients())
{
// generate bold amount string
QString amount = "<b>" + BitcoinUnits::formatHtmlWithUnit(model->getOptionsModel()->getDisplayUnit(), rcp.amount);
amount.append("</b> ").append(strFunds);
// generate monospace address string
QString address = "<span style='font-family: monospace;'>" + rcp.address;
address.append("</span>");
QString recipientElement;
if (!rcp.paymentRequest.IsInitialized()) // normal payment
{
if(rcp.label.length() > 0) // label with address
{
recipientElement = tr("%1 to %2").arg(amount, GUIUtil::HtmlEscape(rcp.label));
recipientElement.append(QString(" (%1)").arg(address));
}
else // just address
{
recipientElement = tr("%1 to %2").arg(amount, address);
}
}
else if(!rcp.authenticatedMerchant.isEmpty()) // authenticated payment request
{
recipientElement = tr("%1 to %2").arg(amount, GUIUtil::HtmlEscape(rcp.authenticatedMerchant));
}
else // unauthenticated payment request
{
recipientElement = tr("%1 to %2").arg(amount, address);
}
formatted.append(recipientElement);
}
QString questionString = tr("Are you sure you want to send?");
questionString.append("<br /><br />%1");
if(txFee > 0)
{
// append fee string if a fee is required
questionString.append("<hr /><span style='color:#aa0000;'>");
questionString.append(BitcoinUnits::formatHtmlWithUnit(model->getOptionsModel()->getDisplayUnit(), txFee));
questionString.append("</span> ");
questionString.append(tr("are added as transaction fee"));
questionString.append(" ");
questionString.append(strFee);
// append transaction size
questionString.append(" (" + QString::number((double)currentTransaction.getTransactionSize() / 1000) + " kB)");
}
// add total amount in all subdivision units
questionString.append("<hr />");
CAmount totalAmount = currentTransaction.getTotalTransactionAmount() + txFee;
QStringList alternativeUnits;
Q_FOREACH(BitcoinUnits::Unit u, BitcoinUnits::availableUnits())
{
if(u != model->getOptionsModel()->getDisplayUnit())
alternativeUnits.append(BitcoinUnits::formatHtmlWithUnit(u, totalAmount));
}
// Show total amount + all alternative units
questionString.append(tr("Total Amount = <b>%1</b><br />= %2")
.arg(BitcoinUnits::formatHtmlWithUnit(model->getOptionsModel()->getDisplayUnit(), totalAmount))
.arg(alternativeUnits.join("<br />= ")));
// Limit number of displayed entries
int messageEntries = formatted.size();
int displayedEntries = 0;
for(int i = 0; i < formatted.size(); i++){
if(i >= MAX_SEND_POPUP_ENTRIES){
formatted.removeLast();
i--;
}
else{
displayedEntries = i+1;
}
}
questionString.append("<hr />");
questionString.append(tr("<b>(%1 of %2 entries displayed)</b>").arg(displayedEntries).arg(messageEntries));
// Display message box
QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm send coins"),
questionString.arg(formatted.join("<br />")),
QMessageBox::Yes | QMessageBox::Cancel,
QMessageBox::Cancel);
if(retval != QMessageBox::Yes)
{
fNewRecipientAllowed = true;
return;
}
// now send the prepared transaction
WalletModel::SendCoinsReturn sendStatus = model->sendCoins(currentTransaction);
// process sendStatus and on error generate message shown to user
processSendCoinsReturn(sendStatus);
if (sendStatus.status == WalletModel::OK)
{
accept();
CoinControlDialog::coinControl->UnSelectAll();
coinControlUpdateLabels();
}
fNewRecipientAllowed = true;
}
void SendCoinsDialog::clear()
{
// Remove entries until only one left
while(ui->entries->count())
{
ui->entries->takeAt(0)->widget()->deleteLater();
}
addEntry();
updateTabsAndLabels();
}
void SendCoinsDialog::reject()
{
clear();
}
void SendCoinsDialog::accept()
{
clear();
}
SendCoinsEntry *SendCoinsDialog::addEntry()
{
SendCoinsEntry *entry = new SendCoinsEntry(platformStyle, this);
entry->setModel(model);
ui->entries->addWidget(entry);
connect(entry, SIGNAL(removeEntry(SendCoinsEntry*)), this, SLOT(removeEntry(SendCoinsEntry*)));
connect(entry, SIGNAL(payAmountChanged()), this, SLOT(coinControlUpdateLabels()));
connect(entry, SIGNAL(subtractFeeFromAmountChanged()), this, SLOT(coinControlUpdateLabels()));
// Focus the field, so that entry can start immediately
entry->clear();
entry->setFocus();
ui->scrollAreaWidgetContents->resize(ui->scrollAreaWidgetContents->sizeHint());
qApp->processEvents();
QScrollBar* bar = ui->scrollArea->verticalScrollBar();
if(bar)
bar->setSliderPosition(bar->maximum());
updateTabsAndLabels();
return entry;
}
void SendCoinsDialog::updateTabsAndLabels()
{
setupTabChain(0);
coinControlUpdateLabels();
}
void SendCoinsDialog::removeEntry(SendCoinsEntry* entry)
{
entry->hide();
// If the last entry is about to be removed add an empty one
if (ui->entries->count() == 1)
addEntry();
entry->deleteLater();
updateTabsAndLabels();
}
QWidget *SendCoinsDialog::setupTabChain(QWidget *prev)
{
for(int i = 0; i < ui->entries->count(); ++i)
{
SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget());
if(entry)
{
prev = entry->setupTabChain(prev);
}
}
QWidget::setTabOrder(prev, ui->sendButton);
QWidget::setTabOrder(ui->sendButton, ui->clearButton);
QWidget::setTabOrder(ui->clearButton, ui->addButton);
return ui->addButton;
}
void SendCoinsDialog::setAddress(const QString &address)
{
SendCoinsEntry *entry = 0;
// Replace the first entry if it is still unused
if(ui->entries->count() == 1)
{
SendCoinsEntry *first = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(0)->widget());
if(first->isClear())
{
entry = first;
}
}
if(!entry)
{
entry = addEntry();
}
entry->setAddress(address);
}
void SendCoinsDialog::pasteEntry(const SendCoinsRecipient &rv)
{
if(!fNewRecipientAllowed)
return;
SendCoinsEntry *entry = 0;
// Replace the first entry if it is still unused
if(ui->entries->count() == 1)
{
SendCoinsEntry *first = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(0)->widget());
if(first->isClear())
{
entry = first;
}
}
if(!entry)
{
entry = addEntry();
}
entry->setValue(rv);
updateTabsAndLabels();
}
bool SendCoinsDialog::handlePaymentRequest(const SendCoinsRecipient &rv)
{
// Just paste the entry, all pre-checks
// are done in paymentserver.cpp.
pasteEntry(rv);
return true;
}
void SendCoinsDialog::setBalance(const CAmount& balance, const CAmount& unconfirmedBalance, const CAmount& immatureBalance, const CAmount& anonymizedBalance,
const CAmount& watchBalance, const CAmount& watchUnconfirmedBalance, const CAmount& watchImmatureBalance)
{
Q_UNUSED(unconfirmedBalance);
Q_UNUSED(immatureBalance);
Q_UNUSED(anonymizedBalance);
Q_UNUSED(watchBalance);
Q_UNUSED(watchUnconfirmedBalance);
Q_UNUSED(watchImmatureBalance);
if(model && model->getOptionsModel())
{
uint64_t bal = 0;
QSettings settings;
settings.setValue("bUseDarkSend", ui->checkUsePrivateSend->isChecked());
if(ui->checkUsePrivateSend->isChecked()) {
bal = anonymizedBalance;
} else {
bal = balance;
}
ui->labelBalance->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), bal));
}
}
void SendCoinsDialog::updateDisplayUnit()
{
setBalance(model->getBalance(), model->getUnconfirmedBalance(), model->getImmatureBalance(), model->getAnonymizedBalance(),
model->getWatchBalance(), model->getWatchUnconfirmedBalance(), model->getWatchImmatureBalance());
CoinControlDialog::coinControl->fUsePrivateSend = ui->checkUsePrivateSend->isChecked();
coinControlUpdateLabels();
ui->customFee->setDisplayUnit(model->getOptionsModel()->getDisplayUnit());
updateMinFeeLabel();
updateSmartFeeLabel();
}
void SendCoinsDialog::updateInstantSend()
{
QSettings settings;
settings.setValue("bUseInstantX", ui->checkUseInstantSend->isChecked());
CoinControlDialog::coinControl->fUseInstantSend = ui->checkUseInstantSend->isChecked();
coinControlUpdateLabels();
}
void SendCoinsDialog::processSendCoinsReturn(const WalletModel::SendCoinsReturn &sendCoinsReturn, const QString &msgArg)
{
QPair<QString, CClientUIInterface::MessageBoxFlags> msgParams;
// Default to a warning message, override if error message is needed
msgParams.second = CClientUIInterface::MSG_WARNING;
// This comment is specific to SendCoinsDialog usage of WalletModel::SendCoinsReturn.
// WalletModel::TransactionCommitFailed is used only in WalletModel::sendCoins()
// all others are used only in WalletModel::prepareTransaction()
switch(sendCoinsReturn.status)
{
case WalletModel::InvalidAddress:
msgParams.first = tr("The recipient address is not valid. Please recheck.");
break;
case WalletModel::InvalidAmount:
msgParams.first = tr("The amount to pay must be larger than 0.");
break;
case WalletModel::AmountExceedsBalance:
msgParams.first = tr("The amount exceeds your balance.");
break;
case WalletModel::AmountWithFeeExceedsBalance:
msgParams.first = tr("The total exceeds your balance when the %1 transaction fee is included.").arg(msgArg);
break;
case WalletModel::DuplicateAddress:
msgParams.first = tr("Duplicate address found: addresses should only be used once each.");
break;
case WalletModel::TransactionCreationFailed:
msgParams.first = tr("Transaction creation failed!");
msgParams.second = CClientUIInterface::MSG_ERROR;
break;
case WalletModel::TransactionCommitFailed:
msgParams.first = tr("The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.");
msgParams.second = CClientUIInterface::MSG_ERROR;
break;
case WalletModel::AbsurdFee:
msgParams.first = tr("A fee higher than %1 is considered an absurdly high fee.").arg(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), maxTxFee));
break;
case WalletModel::PaymentRequestExpired:
msgParams.first = tr("Payment request expired.");
msgParams.second = CClientUIInterface::MSG_ERROR;
break;
// included to prevent a compiler warning.
case WalletModel::OK:
default:
return;
}
Q_EMIT message(tr("Send Coins"), msgParams.first, msgParams.second);
}
void SendCoinsDialog::minimizeFeeSection(bool fMinimize)
{
ui->labelFeeMinimized->setVisible(fMinimize);
ui->buttonChooseFee ->setVisible(fMinimize);
ui->buttonMinimizeFee->setVisible(!fMinimize);
ui->frameFeeSelection->setVisible(!fMinimize);
ui->horizontalLayoutSmartFee->setContentsMargins(0, (fMinimize ? 0 : 6), 0, 0);
fFeeMinimized = fMinimize;
}
void SendCoinsDialog::on_buttonChooseFee_clicked()
{
minimizeFeeSection(false);
}
void SendCoinsDialog::on_buttonMinimizeFee_clicked()
{
updateFeeMinimizedLabel();
minimizeFeeSection(true);
}
void SendCoinsDialog::setMinimumFee()
{
ui->radioCustomPerKilobyte->setChecked(true);
ui->customFee->setValue(CWallet::GetRequiredFee(1000));
}
void SendCoinsDialog::updateFeeSectionControls()
{
ui->sliderSmartFee ->setEnabled(ui->radioSmartFee->isChecked());
ui->labelSmartFee ->setEnabled(ui->radioSmartFee->isChecked());
ui->labelSmartFee2 ->setEnabled(ui->radioSmartFee->isChecked());
ui->labelSmartFee3 ->setEnabled(ui->radioSmartFee->isChecked());
ui->labelFeeEstimation ->setEnabled(ui->radioSmartFee->isChecked());
ui->labelSmartFeeNormal ->setEnabled(ui->radioSmartFee->isChecked());
ui->labelSmartFeeFast ->setEnabled(ui->radioSmartFee->isChecked());
ui->checkBoxMinimumFee ->setEnabled(ui->radioCustomFee->isChecked());
ui->labelMinFeeWarning ->setEnabled(ui->radioCustomFee->isChecked());
ui->radioCustomPerKilobyte ->setEnabled(ui->radioCustomFee->isChecked() && !ui->checkBoxMinimumFee->isChecked());
ui->radioCustomAtLeast ->setEnabled(ui->radioCustomFee->isChecked() && !ui->checkBoxMinimumFee->isChecked() && CoinControlDialog::coinControl->HasSelected());
ui->customFee ->setEnabled(ui->radioCustomFee->isChecked() && !ui->checkBoxMinimumFee->isChecked());
}
void SendCoinsDialog::updateGlobalFeeVariables()
{
if (ui->radioSmartFee->isChecked())
{
nTxConfirmTarget = defaultConfirmTarget - ui->sliderSmartFee->value();
payTxFee = CFeeRate(0);
}
else
{
nTxConfirmTarget = defaultConfirmTarget;
payTxFee = CFeeRate(ui->customFee->value());
// if user has selected to set a minimum absolute fee, pass the value to coincontrol
// set nMinimumTotalFee to 0 in case of user has selected that the fee is per KB
CoinControlDialog::coinControl->nMinimumTotalFee = ui->radioCustomAtLeast->isChecked() ? ui->customFee->value() : 0;
}
fSendFreeTransactions = ui->checkBoxFreeTx->isChecked();
}
void SendCoinsDialog::updateFeeMinimizedLabel()
{
if(!model || !model->getOptionsModel())
return;
if (ui->radioSmartFee->isChecked())
ui->labelFeeMinimized->setText(ui->labelSmartFee->text());
else {
ui->labelFeeMinimized->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), ui->customFee->value()) +
((ui->radioCustomPerKilobyte->isChecked()) ? "/kB" : ""));
}
}
void SendCoinsDialog::updateMinFeeLabel()
{
if (model && model->getOptionsModel())
ui->checkBoxMinimumFee->setText(tr("Pay only the required fee of %1").arg(
BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), CWallet::GetRequiredFee(1000)) + "/kB")
);
}
void SendCoinsDialog::updateSmartFeeLabel()
{
if(!model || !model->getOptionsModel())
return;
int nBlocksToConfirm = defaultConfirmTarget - ui->sliderSmartFee->value();
int estimateFoundAtBlocks = nBlocksToConfirm;
CFeeRate feeRate = mempool.estimateSmartFee(nBlocksToConfirm, &estimateFoundAtBlocks);
if (feeRate <= CFeeRate(0)) // not enough data => minfee
{
ui->labelSmartFee->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(),
std::max(CWallet::fallbackFee.GetFeePerK(), CWallet::GetRequiredFee(1000))) + "/kB");
ui->labelSmartFee2->show(); // (Smart fee not initialized yet. This usually takes a few blocks...)
ui->labelFeeEstimation->setText("");
}
else
{
ui->labelSmartFee->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(),
std::max(feeRate.GetFeePerK(), CWallet::GetRequiredFee(1000))) + "/kB");
ui->labelSmartFee2->hide();
ui->labelFeeEstimation->setText(tr("Estimated to begin confirmation within %n block(s).", "", estimateFoundAtBlocks));
}
updateFeeMinimizedLabel();
}
// Coin Control: copy label "Quantity" to clipboard
void SendCoinsDialog::coinControlClipboardQuantity()
{
GUIUtil::setClipboard(ui->labelCoinControlQuantity->text());
}
// Coin Control: copy label "Amount" to clipboard
void SendCoinsDialog::coinControlClipboardAmount()
{
GUIUtil::setClipboard(ui->labelCoinControlAmount->text().left(ui->labelCoinControlAmount->text().indexOf(" ")));
}
// Coin Control: copy label "Fee" to clipboard
void SendCoinsDialog::coinControlClipboardFee()
{
GUIUtil::setClipboard(ui->labelCoinControlFee->text().left(ui->labelCoinControlFee->text().indexOf(" ")).replace(ASYMP_UTF8, ""));
}
// Coin Control: copy label "After fee" to clipboard
void SendCoinsDialog::coinControlClipboardAfterFee()
{
GUIUtil::setClipboard(ui->labelCoinControlAfterFee->text().left(ui->labelCoinControlAfterFee->text().indexOf(" ")).replace(ASYMP_UTF8, ""));
}
// Coin Control: copy label "Bytes" to clipboard
void SendCoinsDialog::coinControlClipboardBytes()
{
GUIUtil::setClipboard(ui->labelCoinControlBytes->text().replace(ASYMP_UTF8, ""));
}
// Coin Control: copy label "Priority" to clipboard
void SendCoinsDialog::coinControlClipboardPriority()
{
GUIUtil::setClipboard(ui->labelCoinControlPriority->text());
}
// Coin Control: copy label "Dust" to clipboard
void SendCoinsDialog::coinControlClipboardLowOutput()
{
GUIUtil::setClipboard(ui->labelCoinControlLowOutput->text());
}
// Coin Control: copy label "Change" to clipboard
void SendCoinsDialog::coinControlClipboardChange()
{
GUIUtil::setClipboard(ui->labelCoinControlChange->text().left(ui->labelCoinControlChange->text().indexOf(" ")).replace(ASYMP_UTF8, ""));
}
// Coin Control: settings menu - coin control enabled/disabled by user
void SendCoinsDialog::coinControlFeatureChanged(bool checked)
{
ui->frameCoinControl->setVisible(checked);
if (!checked && model) // coin control features disabled
CoinControlDialog::coinControl->SetNull();
coinControlUpdateLabels();
}
// Coin Control: button inputs -> show actual coin control dialog
void SendCoinsDialog::coinControlButtonClicked()
{
CoinControlDialog dlg(platformStyle);
dlg.setModel(model);
dlg.exec();
coinControlUpdateLabels();
}
// Coin Control: checkbox custom change address
void SendCoinsDialog::coinControlChangeChecked(int state)
{
if (state == Qt::Unchecked)
{
CoinControlDialog::coinControl->destChange = CNoDestination();
ui->labelCoinControlChangeLabel->clear();
}
else
// use this to re-validate an already entered address
coinControlChangeEdited(ui->lineEditCoinControlChange->text());
ui->lineEditCoinControlChange->setEnabled((state == Qt::Checked));
}
// Coin Control: custom change address changed
void SendCoinsDialog::coinControlChangeEdited(const QString& text)
{
if (model && model->getAddressTableModel())
{
// Default to no change address until verified
CoinControlDialog::coinControl->destChange = CNoDestination();
ui->labelCoinControlChangeLabel->setStyleSheet("QLabel{color:red;}");
CBitcoinAddress addr = CBitcoinAddress(text.toStdString());
if (text.isEmpty()) // Nothing entered
{
ui->labelCoinControlChangeLabel->setText("");
}
else if (!addr.IsValid()) // Invalid address
{
ui->labelCoinControlChangeLabel->setText(tr("Warning: Invalid Onex address"));
}
else // Valid address
{
CKeyID keyid;
addr.GetKeyID(keyid);
if (!model->havePrivKey(keyid)) // Unknown change address
{
ui->labelCoinControlChangeLabel->setText(tr("Warning: Unknown change address"));
}
else // Known change address
{
ui->labelCoinControlChangeLabel->setStyleSheet("QLabel{color:black;}");
// Query label
QString associatedLabel = model->getAddressTableModel()->labelForAddress(text);
if (!associatedLabel.isEmpty())
ui->labelCoinControlChangeLabel->setText(associatedLabel);
else
ui->labelCoinControlChangeLabel->setText(tr("(no label)"));
CoinControlDialog::coinControl->destChange = addr.Get();
}
}
}
}
// Coin Control: update labels
void SendCoinsDialog::coinControlUpdateLabels()
{
if (!model || !model->getOptionsModel())
return;
if (model->getOptionsModel()->getCoinControlFeatures())
{
// enable minium absolute fee UI controls
ui->radioCustomAtLeast->setVisible(true);
// only enable the feature if inputs are selected
ui->radioCustomAtLeast->setEnabled(CoinControlDialog::coinControl->HasSelected());
}
else
{
// in case coin control is disabled (=default), hide minimum absolute fee UI controls
ui->radioCustomAtLeast->setVisible(false);
return;
}
// set pay amounts
CoinControlDialog::payAmounts.clear();
CoinControlDialog::fSubtractFeeFromAmount = false;
for(int i = 0; i < ui->entries->count(); ++i)
{
SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget());
if(entry && !entry->isHidden())
{
SendCoinsRecipient rcp = entry->getValue();
CoinControlDialog::payAmounts.append(rcp.amount);
if (rcp.fSubtractFeeFromAmount)
CoinControlDialog::fSubtractFeeFromAmount = true;
}
}
ui->checkUsePrivateSend->setChecked(CoinControlDialog::coinControl->fUsePrivateSend);
if (CoinControlDialog::coinControl->HasSelected())
{
// actual coin control calculation
CoinControlDialog::updateLabels(model, this);
// show coin control stats
ui->labelCoinControlAutomaticallySelected->hide();
ui->widgetCoinControl->show();
}
else
{
// hide coin control stats
ui->labelCoinControlAutomaticallySelected->show();
ui->widgetCoinControl->hide();
ui->labelCoinControlInsuffFunds->hide();
}
}
|
/*=============================================================================
Copyright (c) 2001-2010 Joel de Guzman
Copyright (c) 2001-2010 Hartmut Kaiser
http://spirit.sourceforge.net/
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=============================================================================*/
#ifndef BOOST_SPIRIT_INCLUDE_QI_ATTR
#define BOOST_SPIRIT_INCLUDE_QI_ATTR
#if defined(_MSC_VER)
#pragma once
#endif
#include <boost/spirit/home/qi/auxiliary/attr.hpp>
#endif
|
; A307810: Expansion of 1/AGM(1-64*x, sqrt((1-16*x)*(1-256*x))).
; Submitted by Christian Krause
; 1,100,13924,2371600,453093796,92598490000,19745403216400,4333667896360000,971177275449892900,221106619001508490000,50967394891692703241104,11866732390447357481358400,2785834789480617203561744656,658549235163074008904405646400,156596669002369206383399190144064,37426920062148746775769128545440000,8984786771988696076088814749698372900,2165311798781117620145594329843552810000,523635444526002440727169556943437406192400,127019929762653206122170388866234597921640000
mov $1,1
mov $2,1
mov $3,$0
mov $4,1
lpb $3
mul $1,$3
mul $1,3
mul $1,$3
add $5,$4
div $1,$5
mul $1,3
add $2,$1
sub $3,1
add $4,2
lpe
pow $2,2
mov $0,$2
|
; A308044: a(n) = 2*prevprime(2*n-1) - 2*n, where prevprime(n) is the largest prime < n.
; 0,0,2,4,2,8,10,8,14,16,14,20,18,16,26,28,26,24,34,32,38,40,38,44,42,40,50,48,46,56,58,56,54,64,62,68,70,68,66,76,74,80,78,76,86,84,82,80,94,92,98,100,98,104,106,104,110,108,106,104,102,100,98,124
mov $1,$0
mul $0,2
cal $0,308050 ; a(n) = n - prevprime(n - 1), where prevprime(n) is the largest prime < n.
sub $0,2
sub $1,$0
mul $1,2
|
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x11896, %r9
nop
inc %rbx
mov $0x6162636465666768, %rdx
movq %rdx, %xmm5
vmovups %ymm5, (%r9)
nop
nop
sub %rdx, %rdx
lea addresses_A_ht+0xd376, %rbx
clflush (%rbx)
nop
nop
nop
nop
sub $46470, %r9
mov (%rbx), %rax
nop
cmp %r9, %r9
lea addresses_A_ht+0x11552, %rdx
add %rdi, %rdi
movb (%rdx), %r13b
nop
nop
sub %rdx, %rdx
lea addresses_D_ht+0x16a76, %rsi
lea addresses_D_ht+0x1d1fa, %rdi
nop
nop
nop
add %r13, %r13
mov $77, %rcx
rep movsq
xor $52340, %r13
lea addresses_UC_ht+0xd636, %rdx
nop
nop
nop
and $35580, %r9
mov (%rdx), %esi
inc %rsi
lea addresses_WT_ht+0xc2de, %rsi
lea addresses_normal_ht+0x173f6, %rdi
nop
nop
dec %r13
mov $105, %rcx
rep movsw
nop
nop
nop
cmp $23711, %rsi
lea addresses_UC_ht+0xc3f6, %rcx
nop
nop
nop
nop
and $1984, %rbx
mov $0x6162636465666768, %rax
movq %rax, %xmm3
movups %xmm3, (%rcx)
xor $64747, %rsi
lea addresses_D_ht+0x1bf6, %rcx
add %rax, %rax
mov $0x6162636465666768, %rsi
movq %rsi, %xmm4
vmovups %ymm4, (%rcx)
nop
nop
sub %r9, %r9
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r14
push %r9
push %rax
push %rcx
// Store
lea addresses_WC+0x1be61, %r14
nop
nop
nop
nop
nop
and %r12, %r12
movl $0x51525354, (%r14)
nop
nop
nop
nop
nop
cmp %r12, %r12
// Store
lea addresses_PSE+0x1dfd6, %rcx
nop
nop
nop
dec %r10
movb $0x51, (%rcx)
nop
nop
nop
nop
inc %rax
// Store
lea addresses_normal+0x636, %r9
nop
nop
nop
nop
add $15742, %r11
movb $0x51, (%r9)
nop
nop
nop
nop
nop
dec %r14
// Store
lea addresses_UC+0x167f6, %r12
sub %r11, %r11
mov $0x5152535455565758, %r14
movq %r14, %xmm1
movups %xmm1, (%r12)
nop
nop
nop
nop
nop
xor $45465, %r14
// Load
lea addresses_WT+0x11fb6, %r14
clflush (%r14)
nop
nop
nop
nop
nop
add %rcx, %rcx
mov (%r14), %r12
nop
nop
sub $38377, %r14
// Load
lea addresses_RW+0x1e1da, %r11
nop
nop
nop
and %rax, %rax
movb (%r11), %cl
dec %rcx
// Faulty Load
lea addresses_WT+0x173f6, %r9
nop
nop
nop
nop
sub %r12, %r12
movb (%r9), %r14b
lea oracles, %rcx
and $0xff, %r14
shlq $12, %r14
mov (%rcx,%r14,1), %r14
pop %rcx
pop %rax
pop %r9
pop %r14
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': True, 'congruent': 5, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 9, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 5, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 3, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 6, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 6, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 11, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': True, 'NT': False}}
{'00': 21829}
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 00 00 00 00 00 00 00 00
*/
|
SECTION "Common Functions", ROM0
;==============================================================
; Sets all values in OAM to zero.
;==============================================================
ClearOAM::
ld hl, wShadowOAM
ld b, OAM_COUNT * 4
xor a
.clearOAM
ld [hli], a
dec b
jr nz, .clearOAM
ld a, HIGH(wShadowOAM)
call hOAMDMA
ret
;==============================================================
; Sets all values in VRAM tilemap data to the value in the
; A register.
;==============================================================
ClearTilemaps::
ld hl, $9800
ld bc, $9fff - $9800
ld d, a
.clearTilemaps
ld a, d
ld [hli], a
dec bc
ld a, b
or c
jr nz, .clearTilemaps
ret
;==============================================================
; Plays a sound defined by the data bytes DE points to.
;==============================================================
PlaySound::
; Load sound data into registers
ld hl, rNR10
ld b, 5
.soundLoadLoop
ld a, [de]
ld [hli], a
inc de
dec b
jr nz, .soundLoadLoop
ret |
; A116952: a(n) = 3*a(n-1) + 5 with a(0) = 1.
; 1,8,29,92,281,848,2549,7652,22961,68888,206669,620012,1860041,5580128,16740389,50221172,150663521,451990568,1355971709,4067915132,12203745401,36611236208,109833708629,329501125892,988503377681,2965510133048,8896530399149
mov $1,3
pow $1,$0
div $1,2
mul $1,7
add $1,1
|
; A066927: Least k such that between p and 2p, for all primes > 3, there is always a number that is twice a square, i.e.; a k such that p < 2k^2 < 2p.
; 2,2,2,2,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,6,7,7,7,7,7,8,8,8,8,8,8,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,15,15,15,15,15
seq $0,40 ; The prime numbers.
div $0,2
seq $0,196 ; Integer part of square root of n. Or, number of positive squares <= n. Or, n appears 2n+1 times.
add $0,1
|
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The Castle developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "obfuscation.h"
#include "coincontrol.h"
#include "init.h"
#include "main.h"
#include "masternodeman.h"
#include "script/sign.h"
#include "swifttx.h"
#include "ui_interface.h"
#include "util.h"
#include <boost/algorithm/string/replace.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/lexical_cast.hpp>
#include <algorithm>
#include <boost/assign/list_of.hpp>
#include <openssl/rand.h>
using namespace std;
using namespace boost;
// The main object for accessing Obfuscation
CObfuscationPool obfuScationPool;
// A helper object for signing messages from Masternodes
CObfuScationSigner obfuScationSigner;
// The current Obfuscations in progress on the network
std::vector<CObfuscationQueue> vecObfuscationQueue;
// Keep track of the used Masternodes
std::vector<CTxIn> vecMasternodesUsed;
// Keep track of the scanning errors I've seen
map<uint256, CObfuscationBroadcastTx> mapObfuscationBroadcastTxes;
// Keep track of the active Masternode
CActiveMasternode activeMasternode;
/* *** BEGIN OBFUSCATION MAGIC - CSTL **********
Copyright (c) 2014-2015, Dash Developers
eduffield - evan@dashpay.io
udjinm6 - udjinm6@dashpay.io
*/
void CObfuscationPool::ProcessMessageObfuscation(CNode* pfrom, std::string& strCommand, CDataStream& vRecv)
{
if (fLiteMode) return; //disable all Obfuscation/Masternode related functionality
if (!masternodeSync.IsBlockchainSynced()) return;
if (strCommand == "dsa") { //Obfuscation Accept Into Pool
int errorID;
if (pfrom->nVersion < ActiveProtocol()) {
errorID = ERR_VERSION;
LogPrintf("dsa -- incompatible version! \n");
pfrom->PushMessage("dssu", sessionID, GetState(), GetEntriesCount(), MASTERNODE_REJECTED, errorID);
return;
}
if (!fMasterNode) {
errorID = ERR_NOT_A_MN;
LogPrintf("dsa -- not a Masternode! \n");
pfrom->PushMessage("dssu", sessionID, GetState(), GetEntriesCount(), MASTERNODE_REJECTED, errorID);
return;
}
int nDenom;
CTransaction txCollateral;
vRecv >> nDenom >> txCollateral;
CMasternode* pmn = mnodeman.Find(activeMasternode.vin);
if (pmn == NULL) {
errorID = ERR_MN_LIST;
pfrom->PushMessage("dssu", sessionID, GetState(), GetEntriesCount(), MASTERNODE_REJECTED, errorID);
return;
}
if (sessionUsers == 0) {
if (pmn->nLastDsq != 0 &&
pmn->nLastDsq + mnodeman.CountEnabled(ActiveProtocol()) / 5 > mnodeman.nDsqCount) {
LogPrintf("dsa -- last dsq too recent, must wait. %s \n", pfrom->addr.ToString());
errorID = ERR_RECENT;
pfrom->PushMessage("dssu", sessionID, GetState(), GetEntriesCount(), MASTERNODE_REJECTED, errorID);
return;
}
}
if (!IsCompatibleWithSession(nDenom, txCollateral, errorID)) {
LogPrintf("dsa -- not compatible with existing transactions! \n");
pfrom->PushMessage("dssu", sessionID, GetState(), GetEntriesCount(), MASTERNODE_REJECTED, errorID);
return;
} else {
LogPrintf("dsa -- is compatible, please submit! \n");
pfrom->PushMessage("dssu", sessionID, GetState(), GetEntriesCount(), MASTERNODE_ACCEPTED, errorID);
return;
}
} else if (strCommand == "dsq") { //Obfuscation Queue
TRY_LOCK(cs_obfuscation, lockRecv);
if (!lockRecv) return;
if (pfrom->nVersion < ActiveProtocol()) {
return;
}
CObfuscationQueue dsq;
vRecv >> dsq;
CService addr;
if (!dsq.GetAddress(addr)) return;
if (!dsq.CheckSignature()) return;
if (dsq.IsExpired()) return;
CMasternode* pmn = mnodeman.Find(dsq.vin);
if (pmn == NULL) return;
// if the queue is ready, submit if we can
if (dsq.ready) {
if (!pSubmittedToMasternode) return;
if ((CNetAddr)pSubmittedToMasternode->addr != (CNetAddr)addr) {
LogPrintf("dsq - message doesn't match current Masternode - %s != %s\n", pSubmittedToMasternode->addr.ToString(), addr.ToString());
return;
}
if (state == POOL_STATUS_QUEUE) {
LogPrint("obfuscation", "Obfuscation queue is ready - %s\n", addr.ToString());
PrepareObfuscationDenominate();
}
} else {
BOOST_FOREACH (CObfuscationQueue q, vecObfuscationQueue) {
if (q.vin == dsq.vin) return;
}
LogPrint("obfuscation", "dsq last %d last2 %d count %d\n", pmn->nLastDsq, pmn->nLastDsq + mnodeman.size() / 5, mnodeman.nDsqCount);
//don't allow a few nodes to dominate the queuing process
if (pmn->nLastDsq != 0 &&
pmn->nLastDsq + mnodeman.CountEnabled(ActiveProtocol()) / 5 > mnodeman.nDsqCount) {
LogPrint("obfuscation", "dsq -- Masternode sending too many dsq messages. %s \n", pmn->addr.ToString());
return;
}
mnodeman.nDsqCount++;
pmn->nLastDsq = mnodeman.nDsqCount;
pmn->allowFreeTx = true;
LogPrint("obfuscation", "dsq - new Obfuscation queue object - %s\n", addr.ToString());
vecObfuscationQueue.push_back(dsq);
dsq.Relay();
dsq.time = GetTime();
}
} else if (strCommand == "dsi") { //ObfuScation vIn
int errorID;
if (pfrom->nVersion < ActiveProtocol()) {
LogPrintf("dsi -- incompatible version! \n");
errorID = ERR_VERSION;
pfrom->PushMessage("dssu", sessionID, GetState(), GetEntriesCount(), MASTERNODE_REJECTED, errorID);
return;
}
if (!fMasterNode) {
LogPrintf("dsi -- not a Masternode! \n");
errorID = ERR_NOT_A_MN;
pfrom->PushMessage("dssu", sessionID, GetState(), GetEntriesCount(), MASTERNODE_REJECTED, errorID);
return;
}
std::vector<CTxIn> in;
CAmount nAmount;
CTransaction txCollateral;
std::vector<CTxOut> out;
vRecv >> in >> nAmount >> txCollateral >> out;
//do we have enough users in the current session?
if (!IsSessionReady()) {
LogPrintf("dsi -- session not complete! \n");
errorID = ERR_SESSION;
pfrom->PushMessage("dssu", sessionID, GetState(), GetEntriesCount(), MASTERNODE_REJECTED, errorID);
return;
}
//do we have the same denominations as the current session?
if (!IsCompatibleWithEntries(out)) {
LogPrintf("dsi -- not compatible with existing transactions! \n");
errorID = ERR_EXISTING_TX;
pfrom->PushMessage("dssu", sessionID, GetState(), GetEntriesCount(), MASTERNODE_REJECTED, errorID);
return;
}
//check it like a transaction
{
CAmount nValueIn = 0;
CAmount nValueOut = 0;
bool missingTx = false;
CValidationState state;
CMutableTransaction tx;
BOOST_FOREACH (const CTxOut o, out) {
nValueOut += o.nValue;
tx.vout.push_back(o);
if (o.scriptPubKey.size() != 25) {
LogPrintf("dsi - non-standard pubkey detected! %s\n", o.scriptPubKey.ToString());
errorID = ERR_NON_STANDARD_PUBKEY;
pfrom->PushMessage("dssu", sessionID, GetState(), GetEntriesCount(), MASTERNODE_REJECTED, errorID);
return;
}
if (!o.scriptPubKey.IsNormalPaymentScript()) {
LogPrintf("dsi - invalid script! %s\n", o.scriptPubKey.ToString());
errorID = ERR_INVALID_SCRIPT;
pfrom->PushMessage("dssu", sessionID, GetState(), GetEntriesCount(), MASTERNODE_REJECTED, errorID);
return;
}
}
BOOST_FOREACH (const CTxIn i, in) {
tx.vin.push_back(i);
LogPrint("obfuscation", "dsi -- tx in %s\n", i.ToString());
CTransaction tx2;
uint256 hash;
if (GetTransaction(i.prevout.hash, tx2, hash, true)) {
if (tx2.vout.size() > i.prevout.n) {
nValueIn += tx2.vout[i.prevout.n].nValue;
}
} else {
missingTx = true;
}
}
if (nValueIn > OBFUSCATION_POOL_MAX) {
LogPrintf("dsi -- more than Obfuscation pool max! %s\n", tx.ToString());
errorID = ERR_MAXIMUM;
pfrom->PushMessage("dssu", sessionID, GetState(), GetEntriesCount(), MASTERNODE_REJECTED, errorID);
return;
}
if (!missingTx) {
if (nValueIn - nValueOut > nValueIn * .01) {
LogPrintf("dsi -- fees are too high! %s\n", tx.ToString());
errorID = ERR_FEES;
pfrom->PushMessage("dssu", sessionID, GetState(), GetEntriesCount(), MASTERNODE_REJECTED, errorID);
return;
}
} else {
LogPrintf("dsi -- missing input tx! %s\n", tx.ToString());
errorID = ERR_MISSING_TX;
pfrom->PushMessage("dssu", sessionID, GetState(), GetEntriesCount(), MASTERNODE_REJECTED, errorID);
return;
}
{
LOCK(cs_main);
if (!AcceptableInputs(mempool, state, CTransaction(tx), false, NULL, false, true)) {
LogPrintf("dsi -- transaction not valid! \n");
errorID = ERR_INVALID_TX;
pfrom->PushMessage("dssu", sessionID, GetState(), GetEntriesCount(), MASTERNODE_REJECTED, errorID);
return;
}
}
}
if (AddEntry(in, nAmount, txCollateral, out, errorID)) {
pfrom->PushMessage("dssu", sessionID, GetState(), GetEntriesCount(), MASTERNODE_ACCEPTED, errorID);
Check();
RelayStatus(sessionID, GetState(), GetEntriesCount(), MASTERNODE_RESET);
} else {
pfrom->PushMessage("dssu", sessionID, GetState(), GetEntriesCount(), MASTERNODE_REJECTED, errorID);
}
} else if (strCommand == "dssu") { //Obfuscation status update
if (pfrom->nVersion < ActiveProtocol()) {
return;
}
if (!pSubmittedToMasternode) return;
if ((CNetAddr)pSubmittedToMasternode->addr != (CNetAddr)pfrom->addr) {
//LogPrintf("dssu - message doesn't match current Masternode - %s != %s\n", pSubmittedToMasternode->addr.ToString(), pfrom->addr.ToString());
return;
}
int sessionIDMessage;
int state;
int entriesCount;
int accepted;
int errorID;
vRecv >> sessionIDMessage >> state >> entriesCount >> accepted >> errorID;
LogPrint("obfuscation", "dssu - state: %i entriesCount: %i accepted: %i error: %s \n", state, entriesCount, accepted, GetMessageByID(errorID));
if ((accepted != 1 && accepted != 0) && sessionID != sessionIDMessage) {
LogPrintf("dssu - message doesn't match current Obfuscation session %d %d\n", sessionID, sessionIDMessage);
return;
}
StatusUpdate(state, entriesCount, accepted, errorID, sessionIDMessage);
} else if (strCommand == "dss") { //Obfuscation Sign Final Tx
if (pfrom->nVersion < ActiveProtocol()) {
return;
}
vector<CTxIn> sigs;
vRecv >> sigs;
bool success = false;
int count = 0;
BOOST_FOREACH (const CTxIn item, sigs) {
if (AddScriptSig(item)) success = true;
LogPrint("obfuscation", " -- sigs count %d %d\n", (int)sigs.size(), count);
count++;
}
if (success) {
obfuScationPool.Check();
RelayStatus(obfuScationPool.sessionID, obfuScationPool.GetState(), obfuScationPool.GetEntriesCount(), MASTERNODE_RESET);
}
} else if (strCommand == "dsf") { //Obfuscation Final tx
if (pfrom->nVersion < ActiveProtocol()) {
return;
}
if (!pSubmittedToMasternode) return;
if ((CNetAddr)pSubmittedToMasternode->addr != (CNetAddr)pfrom->addr) {
//LogPrintf("dsc - message doesn't match current Masternode - %s != %s\n", pSubmittedToMasternode->addr.ToString(), pfrom->addr.ToString());
return;
}
int sessionIDMessage;
CTransaction txNew;
vRecv >> sessionIDMessage >> txNew;
if (sessionID != sessionIDMessage) {
LogPrint("obfuscation", "dsf - message doesn't match current Obfuscation session %d %d\n", sessionID, sessionIDMessage);
return;
}
//check to see if input is spent already? (and probably not confirmed)
SignFinalTransaction(txNew, pfrom);
} else if (strCommand == "dsc") { //Obfuscation Complete
if (pfrom->nVersion < ActiveProtocol()) {
return;
}
if (!pSubmittedToMasternode) return;
if ((CNetAddr)pSubmittedToMasternode->addr != (CNetAddr)pfrom->addr) {
//LogPrintf("dsc - message doesn't match current Masternode - %s != %s\n", pSubmittedToMasternode->addr.ToString(), pfrom->addr.ToString());
return;
}
int sessionIDMessage;
bool error;
int errorID;
vRecv >> sessionIDMessage >> error >> errorID;
if (sessionID != sessionIDMessage) {
LogPrint("obfuscation", "dsc - message doesn't match current Obfuscation session %d %d\n", obfuScationPool.sessionID, sessionIDMessage);
return;
}
obfuScationPool.CompletedTransaction(error, errorID);
}
}
int randomizeList(int i) { return std::rand() % i; }
void CObfuscationPool::Reset()
{
cachedLastSuccess = 0;
lastNewBlock = 0;
txCollateral = CMutableTransaction();
vecMasternodesUsed.clear();
UnlockCoins();
SetNull();
}
void CObfuscationPool::SetNull()
{
// MN side
sessionUsers = 0;
vecSessionCollateral.clear();
// Client side
entriesCount = 0;
lastEntryAccepted = 0;
countEntriesAccepted = 0;
sessionFoundMasternode = false;
// Both sides
state = POOL_STATUS_IDLE;
sessionID = 0;
sessionDenom = 0;
entries.clear();
finalTransaction.vin.clear();
finalTransaction.vout.clear();
lastTimeChanged = GetTimeMillis();
// -- seed random number generator (used for ordering output lists)
unsigned int seed = 0;
RAND_bytes((unsigned char*)&seed, sizeof(seed));
std::srand(seed);
}
bool CObfuscationPool::SetCollateralAddress(std::string strAddress)
{
CBitcoinAddress address;
if (!address.SetString(strAddress)) {
LogPrintf("CObfuscationPool::SetCollateralAddress - Invalid Obfuscation collateral address\n");
return false;
}
collateralPubKey = GetScriptForDestination(address.Get());
return true;
}
//
// Unlock coins after Obfuscation fails or succeeds
//
void CObfuscationPool::UnlockCoins()
{
while (true) {
TRY_LOCK(pwalletMain->cs_wallet, lockWallet);
if (!lockWallet) {
MilliSleep(50);
continue;
}
BOOST_FOREACH (CTxIn v, lockedCoins)
pwalletMain->UnlockCoin(v.prevout);
break;
}
lockedCoins.clear();
}
std::string CObfuscationPool::GetStatus()
{
static int showingObfuScationMessage = 0;
showingObfuScationMessage += 10;
std::string suffix = "";
if (chainActive.Tip()->nHeight - cachedLastSuccess < minBlockSpacing || !masternodeSync.IsBlockchainSynced()) {
return strAutoDenomResult;
}
switch (state) {
case POOL_STATUS_IDLE:
return _("Obfuscation is idle.");
case POOL_STATUS_ACCEPTING_ENTRIES:
if (entriesCount == 0) {
showingObfuScationMessage = 0;
return strAutoDenomResult;
} else if (lastEntryAccepted == 1) {
if (showingObfuScationMessage % 10 > 8) {
lastEntryAccepted = 0;
showingObfuScationMessage = 0;
}
return _("Obfuscation request complete:") + " " + _("Your transaction was accepted into the pool!");
} else {
std::string suffix = "";
if (showingObfuScationMessage % 70 <= 40)
return strprintf(_("Submitted following entries to masternode: %u / %d"), entriesCount, GetMaxPoolTransactions());
else if (showingObfuScationMessage % 70 <= 50)
suffix = ".";
else if (showingObfuScationMessage % 70 <= 60)
suffix = "..";
else if (showingObfuScationMessage % 70 <= 70)
suffix = "...";
return strprintf(_("Submitted to masternode, waiting for more entries ( %u / %d ) %s"), entriesCount, GetMaxPoolTransactions(), suffix);
}
case POOL_STATUS_SIGNING:
if (showingObfuScationMessage % 70 <= 40)
return _("Found enough users, signing ...");
else if (showingObfuScationMessage % 70 <= 50)
suffix = ".";
else if (showingObfuScationMessage % 70 <= 60)
suffix = "..";
else if (showingObfuScationMessage % 70 <= 70)
suffix = "...";
return strprintf(_("Found enough users, signing ( waiting %s )"), suffix);
case POOL_STATUS_TRANSMISSION:
return _("Transmitting final transaction.");
case POOL_STATUS_FINALIZE_TRANSACTION:
return _("Finalizing transaction.");
case POOL_STATUS_ERROR:
return _("Obfuscation request incomplete:") + " " + lastMessage + " " + _("Will retry...");
case POOL_STATUS_SUCCESS:
return _("Obfuscation request complete:") + " " + lastMessage;
case POOL_STATUS_QUEUE:
if (showingObfuScationMessage % 70 <= 30)
suffix = ".";
else if (showingObfuScationMessage % 70 <= 50)
suffix = "..";
else if (showingObfuScationMessage % 70 <= 70)
suffix = "...";
return strprintf(_("Submitted to masternode, waiting in queue %s"), suffix);
;
default:
return strprintf(_("Unknown state: id = %u"), state);
}
}
//
// Check the Obfuscation progress and send client updates if a Masternode
//
void CObfuscationPool::Check()
{
if (fMasterNode) LogPrint("obfuscation", "CObfuscationPool::Check() - entries count %lu\n", entries.size());
//printf("CObfuscationPool::Check() %d - %d - %d\n", state, anonTx.CountEntries(), GetTimeMillis()-lastTimeChanged);
if (fMasterNode) {
LogPrint("obfuscation", "CObfuscationPool::Check() - entries count %lu\n", entries.size());
// If entries is full, then move on to the next phase
if (state == POOL_STATUS_ACCEPTING_ENTRIES && (int)entries.size() >= GetMaxPoolTransactions()) {
LogPrint("obfuscation", "CObfuscationPool::Check() -- TRYING TRANSACTION \n");
UpdateState(POOL_STATUS_FINALIZE_TRANSACTION);
}
}
// create the finalized transaction for distribution to the clients
if (state == POOL_STATUS_FINALIZE_TRANSACTION) {
LogPrint("obfuscation", "CObfuscationPool::Check() -- FINALIZE TRANSACTIONS\n");
UpdateState(POOL_STATUS_SIGNING);
if (fMasterNode) {
CMutableTransaction txNew;
// make our new transaction
for (unsigned int i = 0; i < entries.size(); i++) {
BOOST_FOREACH (const CTxOut& v, entries[i].vout)
txNew.vout.push_back(v);
BOOST_FOREACH (const CTxDSIn& s, entries[i].sev)
txNew.vin.push_back(s);
}
// shuffle the outputs for improved anonymity
std::random_shuffle(txNew.vin.begin(), txNew.vin.end(), randomizeList);
std::random_shuffle(txNew.vout.begin(), txNew.vout.end(), randomizeList);
LogPrint("obfuscation", "Transaction 1: %s\n", txNew.ToString());
finalTransaction = txNew;
// request signatures from clients
RelayFinalTransaction(sessionID, finalTransaction);
}
}
// If we have all of the signatures, try to compile the transaction
if (fMasterNode && state == POOL_STATUS_SIGNING && SignaturesComplete()) {
LogPrint("obfuscation", "CObfuscationPool::Check() -- SIGNING\n");
UpdateState(POOL_STATUS_TRANSMISSION);
CheckFinalTransaction();
}
// reset if we're here for 10 seconds
if ((state == POOL_STATUS_ERROR || state == POOL_STATUS_SUCCESS) && GetTimeMillis() - lastTimeChanged >= 10000) {
LogPrint("obfuscation", "CObfuscationPool::Check() -- timeout, RESETTING\n");
UnlockCoins();
SetNull();
if (fMasterNode) RelayStatus(sessionID, GetState(), GetEntriesCount(), MASTERNODE_RESET);
}
}
void CObfuscationPool::CheckFinalTransaction()
{
if (!fMasterNode) return; // check and relay final tx only on masternode
CWalletTx txNew = CWalletTx(pwalletMain, finalTransaction);
LOCK2(cs_main, pwalletMain->cs_wallet);
{
LogPrint("obfuscation", "Transaction 2: %s\n", txNew.ToString());
// See if the transaction is valid
if (!txNew.AcceptToMemoryPool(false, true, true)) {
LogPrintf("CObfuscationPool::Check() - CommitTransaction : Error: Transaction not valid\n");
SetNull();
// not much we can do in this case
UpdateState(POOL_STATUS_ACCEPTING_ENTRIES);
RelayCompletedTransaction(sessionID, true, ERR_INVALID_TX);
return;
}
LogPrintf("CObfuscationPool::Check() -- IS MASTER -- TRANSMITTING OBFUSCATION\n");
// sign a message
int64_t sigTime = GetAdjustedTime();
std::string strMessage = txNew.GetHash().ToString() + boost::lexical_cast<std::string>(sigTime);
std::string strError = "";
std::vector<unsigned char> vchSig;
CKey key2;
CPubKey pubkey2;
if (!obfuScationSigner.SetKey(strMasterNodePrivKey, strError, key2, pubkey2)) {
LogPrintf("CObfuscationPool::Check() - ERROR: Invalid Masternodeprivkey: '%s'\n", strError);
return;
}
if (!obfuScationSigner.SignMessage(strMessage, strError, vchSig, key2)) {
LogPrintf("CObfuscationPool::Check() - Sign message failed\n");
return;
}
if (!obfuScationSigner.VerifyMessage(pubkey2, vchSig, strMessage, strError)) {
LogPrintf("CObfuscationPool::Check() - Verify message failed\n");
return;
}
if (!mapObfuscationBroadcastTxes.count(txNew.GetHash())) {
CObfuscationBroadcastTx dstx;
dstx.tx = txNew;
dstx.vin = activeMasternode.vin;
dstx.vchSig = vchSig;
dstx.sigTime = sigTime;
mapObfuscationBroadcastTxes.insert(make_pair(txNew.GetHash(), dstx));
}
CInv inv(MSG_DSTX, txNew.GetHash());
RelayInv(inv);
// Tell the clients it was successful
RelayCompletedTransaction(sessionID, false, MSG_SUCCESS);
// Randomly charge clients
ChargeRandomFees();
// Reset
LogPrint("obfuscation", "CObfuscationPool::Check() -- COMPLETED -- RESETTING\n");
SetNull();
RelayStatus(sessionID, GetState(), GetEntriesCount(), MASTERNODE_RESET);
}
}
//
// Charge clients a fee if they're abusive
//
// Why bother? Obfuscation uses collateral to ensure abuse to the process is kept to a minimum.
// The submission and signing stages in Obfuscation are completely separate. In the cases where
// a client submits a transaction then refused to sign, there must be a cost. Otherwise they
// would be able to do this over and over again and bring the mixing to a hault.
//
// How does this work? Messages to Masternodes come in via "dsi", these require a valid collateral
// transaction for the client to be able to enter the pool. This transaction is kept by the Masternode
// until the transaction is either complete or fails.
//
void CObfuscationPool::ChargeFees()
{
if (!fMasterNode) return;
//we don't need to charge collateral for every offence.
int offences = 0;
int r = rand() % 100;
if (r > 33) return;
if (state == POOL_STATUS_ACCEPTING_ENTRIES) {
BOOST_FOREACH (const CTransaction& txCollateral, vecSessionCollateral) {
bool found = false;
BOOST_FOREACH (const CObfuScationEntry& v, entries) {
if (v.collateral == txCollateral) {
found = true;
}
}
// This queue entry didn't send us the promised transaction
if (!found) {
LogPrintf("CObfuscationPool::ChargeFees -- found uncooperative node (didn't send transaction). Found offence.\n");
offences++;
}
}
}
if (state == POOL_STATUS_SIGNING) {
// who didn't sign?
BOOST_FOREACH (const CObfuScationEntry v, entries) {
BOOST_FOREACH (const CTxDSIn s, v.sev) {
if (!s.fHasSig) {
LogPrintf("CObfuscationPool::ChargeFees -- found uncooperative node (didn't sign). Found offence\n");
offences++;
}
}
}
}
r = rand() % 100;
int target = 0;
//mostly offending?
if (offences >= Params().PoolMaxTransactions() - 1 && r > 33) return;
//everyone is an offender? That's not right
if (offences >= Params().PoolMaxTransactions()) return;
//charge one of the offenders randomly
if (offences > 1) target = 50;
//pick random client to charge
r = rand() % 100;
if (state == POOL_STATUS_ACCEPTING_ENTRIES) {
BOOST_FOREACH (const CTransaction& txCollateral, vecSessionCollateral) {
bool found = false;
BOOST_FOREACH (const CObfuScationEntry& v, entries) {
if (v.collateral == txCollateral) {
found = true;
}
}
// This queue entry didn't send us the promised transaction
if (!found && r > target) {
LogPrintf("CObfuscationPool::ChargeFees -- found uncooperative node (didn't send transaction). charging fees.\n");
CWalletTx wtxCollateral = CWalletTx(pwalletMain, txCollateral);
// Broadcast
if (!wtxCollateral.AcceptToMemoryPool(true)) {
// This must not fail. The transaction has already been signed and recorded.
LogPrintf("CObfuscationPool::ChargeFees() : Error: Transaction not valid");
}
wtxCollateral.RelayWalletTransaction();
return;
}
}
}
if (state == POOL_STATUS_SIGNING) {
// who didn't sign?
BOOST_FOREACH (const CObfuScationEntry v, entries) {
BOOST_FOREACH (const CTxDSIn s, v.sev) {
if (!s.fHasSig && r > target) {
LogPrintf("CObfuscationPool::ChargeFees -- found uncooperative node (didn't sign). charging fees.\n");
CWalletTx wtxCollateral = CWalletTx(pwalletMain, v.collateral);
// Broadcast
if (!wtxCollateral.AcceptToMemoryPool(false)) {
// This must not fail. The transaction has already been signed and recorded.
LogPrintf("CObfuscationPool::ChargeFees() : Error: Transaction not valid");
}
wtxCollateral.RelayWalletTransaction();
return;
}
}
}
}
}
// charge the collateral randomly
// - Obfuscation is completely free, to pay miners we randomly pay the collateral of users.
void CObfuscationPool::ChargeRandomFees()
{
if (fMasterNode) {
int i = 0;
BOOST_FOREACH (const CTransaction& txCollateral, vecSessionCollateral) {
int r = rand() % 100;
/*
Collateral Fee Charges:
Being that Obfuscation has "no fees" we need to have some kind of cost associated
with using it to stop abuse. Otherwise it could serve as an attack vector and
allow endless transaction that would bloat Castle and make it unusable. To
stop these kinds of attacks 1 in 10 successful transactions are charged. This
adds up to a cost of 0.001 CSTL per transaction on average.
*/
if (r <= 10) {
LogPrintf("CObfuscationPool::ChargeRandomFees -- charging random fees. %u\n", i);
CWalletTx wtxCollateral = CWalletTx(pwalletMain, txCollateral);
// Broadcast
if (!wtxCollateral.AcceptToMemoryPool(true)) {
// This must not fail. The transaction has already been signed and recorded.
LogPrintf("CObfuscationPool::ChargeRandomFees() : Error: Transaction not valid");
}
wtxCollateral.RelayWalletTransaction();
}
}
}
}
//
// Check for various timeouts (queue objects, Obfuscation, etc)
//
void CObfuscationPool::CheckTimeout()
{
if (!fEnableZeromint && !fMasterNode) return;
// catching hanging sessions
if (!fMasterNode) {
switch (state) {
case POOL_STATUS_TRANSMISSION:
LogPrint("obfuscation", "CObfuscationPool::CheckTimeout() -- Session complete -- Running Check()\n");
Check();
break;
case POOL_STATUS_ERROR:
LogPrint("obfuscation", "CObfuscationPool::CheckTimeout() -- Pool error -- Running Check()\n");
Check();
break;
case POOL_STATUS_SUCCESS:
LogPrint("obfuscation", "CObfuscationPool::CheckTimeout() -- Pool success -- Running Check()\n");
Check();
break;
}
}
// check Obfuscation queue objects for timeouts
int c = 0;
vector<CObfuscationQueue>::iterator it = vecObfuscationQueue.begin();
while (it != vecObfuscationQueue.end()) {
if ((*it).IsExpired()) {
LogPrint("obfuscation", "CObfuscationPool::CheckTimeout() : Removing expired queue entry - %d\n", c);
it = vecObfuscationQueue.erase(it);
} else
++it;
c++;
}
int addLagTime = 0;
if (!fMasterNode) addLagTime = 10000; //if we're the client, give the server a few extra seconds before resetting.
if (state == POOL_STATUS_ACCEPTING_ENTRIES || state == POOL_STATUS_QUEUE) {
c = 0;
// check for a timeout and reset if needed
vector<CObfuScationEntry>::iterator it2 = entries.begin();
while (it2 != entries.end()) {
if ((*it2).IsExpired()) {
LogPrint("obfuscation", "CObfuscationPool::CheckTimeout() : Removing expired entry - %d\n", c);
it2 = entries.erase(it2);
if (entries.size() == 0) {
UnlockCoins();
SetNull();
}
if (fMasterNode) {
RelayStatus(sessionID, GetState(), GetEntriesCount(), MASTERNODE_RESET);
}
} else
++it2;
c++;
}
if (GetTimeMillis() - lastTimeChanged >= (OBFUSCATION_QUEUE_TIMEOUT * 1000) + addLagTime) {
UnlockCoins();
SetNull();
}
} else if (GetTimeMillis() - lastTimeChanged >= (OBFUSCATION_QUEUE_TIMEOUT * 1000) + addLagTime) {
LogPrint("obfuscation", "CObfuscationPool::CheckTimeout() -- Session timed out (%ds) -- resetting\n", OBFUSCATION_QUEUE_TIMEOUT);
UnlockCoins();
SetNull();
UpdateState(POOL_STATUS_ERROR);
lastMessage = _("Session timed out.");
}
if (state == POOL_STATUS_SIGNING && GetTimeMillis() - lastTimeChanged >= (OBFUSCATION_SIGNING_TIMEOUT * 1000) + addLagTime) {
LogPrint("obfuscation", "CObfuscationPool::CheckTimeout() -- Session timed out (%ds) -- restting\n", OBFUSCATION_SIGNING_TIMEOUT);
ChargeFees();
UnlockCoins();
SetNull();
UpdateState(POOL_STATUS_ERROR);
lastMessage = _("Signing timed out.");
}
}
//
// Check for complete queue
//
void CObfuscationPool::CheckForCompleteQueue()
{
if (!fEnableZeromint && !fMasterNode) return;
/* Check to see if we're ready for submissions from clients */
//
// After receiving multiple dsa messages, the queue will switch to "accepting entries"
// which is the active state right before merging the transaction
//
if (state == POOL_STATUS_QUEUE && sessionUsers == GetMaxPoolTransactions()) {
UpdateState(POOL_STATUS_ACCEPTING_ENTRIES);
CObfuscationQueue dsq;
dsq.nDenom = sessionDenom;
dsq.vin = activeMasternode.vin;
dsq.time = GetTime();
dsq.ready = true;
dsq.Sign();
dsq.Relay();
}
}
// check to see if the signature is valid
bool CObfuscationPool::SignatureValid(const CScript& newSig, const CTxIn& newVin)
{
CMutableTransaction txNew;
txNew.vin.clear();
txNew.vout.clear();
int found = -1;
CScript sigPubKey = CScript();
unsigned int i = 0;
BOOST_FOREACH (CObfuScationEntry& e, entries) {
BOOST_FOREACH (const CTxOut& out, e.vout)
txNew.vout.push_back(out);
BOOST_FOREACH (const CTxDSIn& s, e.sev) {
txNew.vin.push_back(s);
if (s == newVin) {
found = i;
sigPubKey = s.prevPubKey;
}
i++;
}
}
if (found >= 0) { //might have to do this one input at a time?
int n = found;
txNew.vin[n].scriptSig = newSig;
LogPrint("obfuscation", "CObfuscationPool::SignatureValid() - Sign with sig %s\n", newSig.ToString().substr(0, 24));
if (!VerifyScript(txNew.vin[n].scriptSig, sigPubKey, SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC, MutableTransactionSignatureChecker(&txNew, n))) {
LogPrint("obfuscation", "CObfuscationPool::SignatureValid() - Signing - Error signing input %u\n", n);
return false;
}
}
LogPrint("obfuscation", "CObfuscationPool::SignatureValid() - Signing - Successfully validated input\n");
return true;
}
// check to make sure the collateral provided by the client is valid
bool CObfuscationPool::IsCollateralValid(const CTransaction& txCollateral)
{
if (txCollateral.vout.size() < 1) return false;
if (txCollateral.nLockTime != 0) return false;
int64_t nValueIn = 0;
int64_t nValueOut = 0;
bool missingTx = false;
BOOST_FOREACH (const CTxOut o, txCollateral.vout) {
nValueOut += o.nValue;
if (!o.scriptPubKey.IsNormalPaymentScript()) {
LogPrintf("CObfuscationPool::IsCollateralValid - Invalid Script %s\n", txCollateral.ToString());
return false;
}
}
BOOST_FOREACH (const CTxIn i, txCollateral.vin) {
CTransaction tx2;
uint256 hash;
if (GetTransaction(i.prevout.hash, tx2, hash, true)) {
if (tx2.vout.size() > i.prevout.n) {
nValueIn += tx2.vout[i.prevout.n].nValue;
}
} else {
missingTx = true;
}
}
if (missingTx) {
LogPrint("obfuscation", "CObfuscationPool::IsCollateralValid - Unknown inputs in collateral transaction - %s\n", txCollateral.ToString());
return false;
}
//collateral transactions are required to pay out OBFUSCATION_COLLATERAL as a fee to the miners
if (nValueIn - nValueOut < OBFUSCATION_COLLATERAL) {
LogPrint("obfuscation", "CObfuscationPool::IsCollateralValid - did not include enough fees in transaction %d\n%s\n", nValueOut - nValueIn, txCollateral.ToString());
return false;
}
LogPrint("obfuscation", "CObfuscationPool::IsCollateralValid %s\n", txCollateral.ToString());
{
LOCK(cs_main);
CValidationState state;
if (!AcceptableInputs(mempool, state, txCollateral, true, NULL)) {
if (fDebug) LogPrintf("CObfuscationPool::IsCollateralValid - didn't pass IsAcceptable\n");
return false;
}
}
return true;
}
//
// Add a clients transaction to the pool
//
bool CObfuscationPool::AddEntry(const std::vector<CTxIn>& newInput, const CAmount& nAmount, const CTransaction& txCollateral, const std::vector<CTxOut>& newOutput, int& errorID)
{
if (!fMasterNode) return false;
BOOST_FOREACH (CTxIn in, newInput) {
if (in.prevout.IsNull() || nAmount < 0) {
LogPrint("obfuscation", "CObfuscationPool::AddEntry - input not valid!\n");
errorID = ERR_INVALID_INPUT;
sessionUsers--;
return false;
}
}
if (!IsCollateralValid(txCollateral)) {
LogPrint("obfuscation", "CObfuscationPool::AddEntry - collateral not valid!\n");
errorID = ERR_INVALID_COLLATERAL;
sessionUsers--;
return false;
}
if ((int)entries.size() >= GetMaxPoolTransactions()) {
LogPrint("obfuscation", "CObfuscationPool::AddEntry - entries is full!\n");
errorID = ERR_ENTRIES_FULL;
sessionUsers--;
return false;
}
BOOST_FOREACH (CTxIn in, newInput) {
LogPrint("obfuscation", "looking for vin -- %s\n", in.ToString());
BOOST_FOREACH (const CObfuScationEntry& v, entries) {
BOOST_FOREACH (const CTxDSIn& s, v.sev) {
if ((CTxIn)s == in) {
LogPrint("obfuscation", "CObfuscationPool::AddEntry - found in vin\n");
errorID = ERR_ALREADY_HAVE;
sessionUsers--;
return false;
}
}
}
}
CObfuScationEntry v;
v.Add(newInput, nAmount, txCollateral, newOutput);
entries.push_back(v);
LogPrint("obfuscation", "CObfuscationPool::AddEntry -- adding %s\n", newInput[0].ToString());
errorID = MSG_ENTRIES_ADDED;
return true;
}
bool CObfuscationPool::AddScriptSig(const CTxIn& newVin)
{
LogPrint("obfuscation", "CObfuscationPool::AddScriptSig -- new sig %s\n", newVin.scriptSig.ToString().substr(0, 24));
BOOST_FOREACH (const CObfuScationEntry& v, entries) {
BOOST_FOREACH (const CTxDSIn& s, v.sev) {
if (s.scriptSig == newVin.scriptSig) {
LogPrint("obfuscation", "CObfuscationPool::AddScriptSig - already exists\n");
return false;
}
}
}
if (!SignatureValid(newVin.scriptSig, newVin)) {
LogPrint("obfuscation", "CObfuscationPool::AddScriptSig - Invalid Sig\n");
return false;
}
LogPrint("obfuscation", "CObfuscationPool::AddScriptSig -- sig %s\n", newVin.ToString());
BOOST_FOREACH (CTxIn& vin, finalTransaction.vin) {
if (newVin.prevout == vin.prevout && vin.nSequence == newVin.nSequence) {
vin.scriptSig = newVin.scriptSig;
vin.prevPubKey = newVin.prevPubKey;
LogPrint("obfuscation", "CObfuScationPool::AddScriptSig -- adding to finalTransaction %s\n", newVin.scriptSig.ToString().substr(0, 24));
}
}
for (unsigned int i = 0; i < entries.size(); i++) {
if (entries[i].AddSig(newVin)) {
LogPrint("obfuscation", "CObfuScationPool::AddScriptSig -- adding %s\n", newVin.scriptSig.ToString().substr(0, 24));
return true;
}
}
LogPrintf("CObfuscationPool::AddScriptSig -- Couldn't set sig!\n");
return false;
}
// Check to make sure everything is signed
bool CObfuscationPool::SignaturesComplete()
{
BOOST_FOREACH (const CObfuScationEntry& v, entries) {
BOOST_FOREACH (const CTxDSIn& s, v.sev) {
if (!s.fHasSig) return false;
}
}
return true;
}
//
// Execute a Obfuscation denomination via a Masternode.
// This is only ran from clients
//
void CObfuscationPool::SendObfuscationDenominate(std::vector<CTxIn>& vin, std::vector<CTxOut>& vout, CAmount amount)
{
if (fMasterNode) {
LogPrintf("CObfuscationPool::SendObfuscationDenominate() - Obfuscation from a Masternode is not supported currently.\n");
return;
}
if (txCollateral == CMutableTransaction()) {
LogPrintf("CObfuscationPool:SendObfuscationDenominate() - Obfuscation collateral not set");
return;
}
// lock the funds we're going to use
BOOST_FOREACH (CTxIn in, txCollateral.vin)
lockedCoins.push_back(in);
BOOST_FOREACH (CTxIn in, vin)
lockedCoins.push_back(in);
//BOOST_FOREACH(CTxOut o, vout)
// LogPrintf(" vout - %s\n", o.ToString());
// we should already be connected to a Masternode
if (!sessionFoundMasternode) {
LogPrintf("CObfuscationPool::SendObfuscationDenominate() - No Masternode has been selected yet.\n");
UnlockCoins();
SetNull();
return;
}
if (!CheckDiskSpace()) {
UnlockCoins();
SetNull();
fEnableZeromint = false;
LogPrintf("CObfuscationPool::SendObfuscationDenominate() - Not enough disk space, disabling Obfuscation.\n");
return;
}
UpdateState(POOL_STATUS_ACCEPTING_ENTRIES);
LogPrintf("CObfuscationPool::SendObfuscationDenominate() - Added transaction to pool.\n");
ClearLastMessage();
//check it against the memory pool to make sure it's valid
{
CAmount nValueOut = 0;
CValidationState state;
CMutableTransaction tx;
BOOST_FOREACH (const CTxOut& o, vout) {
nValueOut += o.nValue;
tx.vout.push_back(o);
}
BOOST_FOREACH (const CTxIn& i, vin) {
tx.vin.push_back(i);
LogPrint("obfuscation", "dsi -- tx in %s\n", i.ToString());
}
LogPrintf("Submitting tx %s\n", tx.ToString());
while (true) {
TRY_LOCK(cs_main, lockMain);
if (!lockMain) {
MilliSleep(50);
continue;
}
if (!AcceptableInputs(mempool, state, CTransaction(tx), false, NULL, false, true)) {
LogPrintf("dsi -- transaction not valid! %s \n", tx.ToString());
UnlockCoins();
SetNull();
return;
}
break;
}
}
// store our entry for later use
CObfuScationEntry e;
e.Add(vin, amount, txCollateral, vout);
entries.push_back(e);
RelayIn(entries[0].sev, entries[0].amount, txCollateral, entries[0].vout);
Check();
}
// Incoming message from Masternode updating the progress of Obfuscation
// newAccepted: -1 mean's it'n not a "transaction accepted/not accepted" message, just a standard update
// 0 means transaction was not accepted
// 1 means transaction was accepted
bool CObfuscationPool::StatusUpdate(int newState, int newEntriesCount, int newAccepted, int& errorID, int newSessionID)
{
if (fMasterNode) return false;
if (state == POOL_STATUS_ERROR || state == POOL_STATUS_SUCCESS) return false;
UpdateState(newState);
entriesCount = newEntriesCount;
if (errorID != MSG_NOERR) strAutoDenomResult = _("Masternode:") + " " + GetMessageByID(errorID);
if (newAccepted != -1) {
lastEntryAccepted = newAccepted;
countEntriesAccepted += newAccepted;
if (newAccepted == 0) {
UpdateState(POOL_STATUS_ERROR);
lastMessage = GetMessageByID(errorID);
}
if (newAccepted == 1 && newSessionID != 0) {
sessionID = newSessionID;
LogPrintf("CObfuscationPool::StatusUpdate - set sessionID to %d\n", sessionID);
sessionFoundMasternode = true;
}
}
if (newState == POOL_STATUS_ACCEPTING_ENTRIES) {
if (newAccepted == 1) {
LogPrintf("CObfuscationPool::StatusUpdate - entry accepted! \n");
sessionFoundMasternode = true;
//wait for other users. Masternode will report when ready
UpdateState(POOL_STATUS_QUEUE);
} else if (newAccepted == 0 && sessionID == 0 && !sessionFoundMasternode) {
LogPrintf("CObfuscationPool::StatusUpdate - entry not accepted by Masternode \n");
UnlockCoins();
UpdateState(POOL_STATUS_ACCEPTING_ENTRIES);
DoAutomaticDenominating(); //try another Masternode
}
if (sessionFoundMasternode) return true;
}
return true;
}
//
// After we receive the finalized transaction from the Masternode, we must
// check it to make sure it's what we want, then sign it if we agree.
// If we refuse to sign, it's possible we'll be charged collateral
//
bool CObfuscationPool::SignFinalTransaction(CTransaction& finalTransactionNew, CNode* node)
{
if (fMasterNode) return false;
finalTransaction = finalTransactionNew;
LogPrintf("CObfuscationPool::SignFinalTransaction %s", finalTransaction.ToString());
vector<CTxIn> sigs;
//make sure my inputs/outputs are present, otherwise refuse to sign
BOOST_FOREACH (const CObfuScationEntry e, entries) {
BOOST_FOREACH (const CTxDSIn s, e.sev) {
/* Sign my transaction and all outputs */
int mine = -1;
CScript prevPubKey = CScript();
CTxIn vin = CTxIn();
for (unsigned int i = 0; i < finalTransaction.vin.size(); i++) {
if (finalTransaction.vin[i] == s) {
mine = i;
prevPubKey = s.prevPubKey;
vin = s;
}
}
if (mine >= 0) { //might have to do this one input at a time?
int foundOutputs = 0;
CAmount nValue1 = 0;
CAmount nValue2 = 0;
for (unsigned int i = 0; i < finalTransaction.vout.size(); i++) {
BOOST_FOREACH (const CTxOut& o, e.vout) {
if (finalTransaction.vout[i] == o) {
foundOutputs++;
nValue1 += finalTransaction.vout[i].nValue;
}
}
}
BOOST_FOREACH (const CTxOut o, e.vout)
nValue2 += o.nValue;
int targetOuputs = e.vout.size();
if (foundOutputs < targetOuputs || nValue1 != nValue2) {
// in this case, something went wrong and we'll refuse to sign. It's possible we'll be charged collateral. But that's
// better then signing if the transaction doesn't look like what we wanted.
LogPrintf("CObfuscationPool::Sign - My entries are not correct! Refusing to sign. %d entries %d target. \n", foundOutputs, targetOuputs);
UnlockCoins();
SetNull();
return false;
}
const CKeyStore& keystore = *pwalletMain;
LogPrint("obfuscation", "CObfuscationPool::Sign - Signing my input %i\n", mine);
if (!SignSignature(keystore, prevPubKey, finalTransaction, mine, int(SIGHASH_ALL | SIGHASH_ANYONECANPAY))) { // changes scriptSig
LogPrint("obfuscation", "CObfuscationPool::Sign - Unable to sign my own transaction! \n");
// not sure what to do here, it will timeout...?
}
sigs.push_back(finalTransaction.vin[mine]);
LogPrint("obfuscation", " -- dss %d %d %s\n", mine, (int)sigs.size(), finalTransaction.vin[mine].scriptSig.ToString());
}
}
LogPrint("obfuscation", "CObfuscationPool::Sign - txNew:\n%s", finalTransaction.ToString());
}
// push all of our signatures to the Masternode
if (sigs.size() > 0 && node != NULL)
node->PushMessage("dss", sigs);
return true;
}
void CObfuscationPool::NewBlock()
{
LogPrint("obfuscation", "CObfuscationPool::NewBlock \n");
//we we're processing lots of blocks, we'll just leave
if (GetTime() - lastNewBlock < 10) return;
lastNewBlock = GetTime();
obfuScationPool.CheckTimeout();
}
// Obfuscation transaction was completed (failed or successful)
void CObfuscationPool::CompletedTransaction(bool error, int errorID)
{
if (fMasterNode) return;
if (error) {
LogPrintf("CompletedTransaction -- error \n");
UpdateState(POOL_STATUS_ERROR);
Check();
UnlockCoins();
SetNull();
} else {
LogPrintf("CompletedTransaction -- success \n");
UpdateState(POOL_STATUS_SUCCESS);
UnlockCoins();
SetNull();
// To avoid race conditions, we'll only let DS run once per block
cachedLastSuccess = chainActive.Tip()->nHeight;
}
lastMessage = GetMessageByID(errorID);
}
void CObfuscationPool::ClearLastMessage()
{
lastMessage = "";
}
//
// Passively run Obfuscation in the background to anonymize funds based on the given configuration.
//
// This does NOT run by default for daemons, only for QT.
//
bool CObfuscationPool::DoAutomaticDenominating(bool fDryRun)
{
return false; // Disabled until Obfuscation is completely removed
if (!fEnableZeromint) return false;
if (fMasterNode) return false;
if (state == POOL_STATUS_ERROR || state == POOL_STATUS_SUCCESS) return false;
if (GetEntriesCount() > 0) {
strAutoDenomResult = _("Mixing in progress...");
return false;
}
TRY_LOCK(cs_obfuscation, lockDS);
if (!lockDS) {
strAutoDenomResult = _("Lock is already in place.");
return false;
}
if (!masternodeSync.IsBlockchainSynced()) {
strAutoDenomResult = _("Can't mix while sync in progress.");
return false;
}
if (!fDryRun && pwalletMain->IsLocked()) {
strAutoDenomResult = _("Wallet is locked.");
return false;
}
if (chainActive.Tip()->nHeight - cachedLastSuccess < minBlockSpacing) {
LogPrintf("CObfuscationPool::DoAutomaticDenominating - Last successful Obfuscation action was too recent\n");
strAutoDenomResult = _("Last successful Obfuscation action was too recent.");
return false;
}
if (mnodeman.size() == 0) {
LogPrint("obfuscation", "CObfuscationPool::DoAutomaticDenominating - No Masternodes detected\n");
strAutoDenomResult = _("No Masternodes detected.");
return false;
}
// ** find the coins we'll use
std::vector<CTxIn> vCoins;
CAmount nValueMin = CENT;
CAmount nValueIn = 0;
CAmount nOnlyDenominatedBalance;
CAmount nBalanceNeedsDenominated;
// should not be less than fees in OBFUSCATION_COLLATERAL + few (lets say 5) smallest denoms
CAmount nLowestDenom = OBFUSCATION_COLLATERAL + obfuScationDenominations[obfuScationDenominations.size() - 1] * 5;
// if there are no OBF collateral inputs yet
if (!pwalletMain->HasCollateralInputs())
// should have some additional amount for them
nLowestDenom += OBFUSCATION_COLLATERAL * 4;
CAmount nBalanceNeedsAnonymized = nAnonymizeCastleAmount * COIN - pwalletMain->GetAnonymizedBalance();
// if balanceNeedsAnonymized is more than pool max, take the pool max
if (nBalanceNeedsAnonymized > OBFUSCATION_POOL_MAX) nBalanceNeedsAnonymized = OBFUSCATION_POOL_MAX;
// if balanceNeedsAnonymized is more than non-anonymized, take non-anonymized
CAmount nAnonymizableBalance = pwalletMain->GetAnonymizableBalance();
if (nBalanceNeedsAnonymized > nAnonymizableBalance) nBalanceNeedsAnonymized = nAnonymizableBalance;
if (nBalanceNeedsAnonymized < nLowestDenom) {
LogPrintf("DoAutomaticDenominating : No funds detected in need of denominating \n");
strAutoDenomResult = _("No funds detected in need of denominating.");
return false;
}
LogPrint("obfuscation", "DoAutomaticDenominating : nLowestDenom=%d, nBalanceNeedsAnonymized=%d\n", nLowestDenom, nBalanceNeedsAnonymized);
// select coins that should be given to the pool
if (!pwalletMain->SelectCoinsDark(nValueMin, nBalanceNeedsAnonymized, vCoins, nValueIn, 0, nZeromintPercentage)) {
nValueIn = 0;
vCoins.clear();
if (pwalletMain->SelectCoinsDark(nValueMin, 9999999 * COIN, vCoins, nValueIn, -2, 0)) {
nOnlyDenominatedBalance = pwalletMain->GetDenominatedBalance(true) + pwalletMain->GetDenominatedBalance() - pwalletMain->GetAnonymizedBalance();
nBalanceNeedsDenominated = nBalanceNeedsAnonymized - nOnlyDenominatedBalance;
if (nBalanceNeedsDenominated > nValueIn) nBalanceNeedsDenominated = nValueIn;
if (nBalanceNeedsDenominated < nLowestDenom) return false; // most likely we just waiting for denoms to confirm
if (!fDryRun) return CreateDenominated(nBalanceNeedsDenominated);
return true;
} else {
LogPrintf("DoAutomaticDenominating : Can't denominate - no compatible inputs left\n");
strAutoDenomResult = _("Can't denominate: no compatible inputs left.");
return false;
}
}
if (fDryRun) return true;
nOnlyDenominatedBalance = pwalletMain->GetDenominatedBalance(true) + pwalletMain->GetDenominatedBalance() - pwalletMain->GetAnonymizedBalance();
nBalanceNeedsDenominated = nBalanceNeedsAnonymized - nOnlyDenominatedBalance;
//check if we have should create more denominated inputs
if (nBalanceNeedsDenominated > nOnlyDenominatedBalance) return CreateDenominated(nBalanceNeedsDenominated);
//check if we have the collateral sized inputs
if (!pwalletMain->HasCollateralInputs()) return !pwalletMain->HasCollateralInputs(false) && MakeCollateralAmounts();
std::vector<CTxOut> vOut;
// initial phase, find a Masternode
if (!sessionFoundMasternode) {
// Clean if there is anything left from previous session
UnlockCoins();
SetNull();
int nUseQueue = rand() % 100;
UpdateState(POOL_STATUS_ACCEPTING_ENTRIES);
if (pwalletMain->GetDenominatedBalance(true) > 0) { //get denominated unconfirmed inputs
LogPrintf("DoAutomaticDenominating -- Found unconfirmed denominated outputs, will wait till they confirm to continue.\n");
strAutoDenomResult = _("Found unconfirmed denominated outputs, will wait till they confirm to continue.");
return false;
}
//check our collateral nad create new if needed
std::string strReason;
CValidationState state;
if (txCollateral == CMutableTransaction()) {
if (!pwalletMain->CreateCollateralTransaction(txCollateral, strReason)) {
LogPrintf("% -- create collateral error:%s\n", __func__, strReason);
return false;
}
} else {
if (!IsCollateralValid(txCollateral)) {
LogPrintf("%s -- invalid collateral, recreating...\n", __func__);
if (!pwalletMain->CreateCollateralTransaction(txCollateral, strReason)) {
LogPrintf("%s -- create collateral error: %s\n", __func__, strReason);
return false;
}
}
}
//if we've used 90% of the Masternode list then drop all the oldest first
int nThreshold = (int)(mnodeman.CountEnabled(ActiveProtocol()) * 0.9);
LogPrint("obfuscation", "Checking vecMasternodesUsed size %d threshold %d\n", (int)vecMasternodesUsed.size(), nThreshold);
while ((int)vecMasternodesUsed.size() > nThreshold) {
vecMasternodesUsed.erase(vecMasternodesUsed.begin());
LogPrint("obfuscation", " vecMasternodesUsed size %d threshold %d\n", (int)vecMasternodesUsed.size(), nThreshold);
}
//don't use the queues all of the time for mixing
if (nUseQueue > 33) {
// Look through the queues and see if anything matches
BOOST_FOREACH (CObfuscationQueue& dsq, vecObfuscationQueue) {
CService addr;
if (dsq.time == 0) continue;
if (!dsq.GetAddress(addr)) continue;
if (dsq.IsExpired()) continue;
int protocolVersion;
if (!dsq.GetProtocolVersion(protocolVersion)) continue;
if (protocolVersion < ActiveProtocol()) continue;
//non-denom's are incompatible
if ((dsq.nDenom & (1 << 4))) continue;
bool fUsed = false;
//don't reuse Masternodes
BOOST_FOREACH (CTxIn usedVin, vecMasternodesUsed) {
if (dsq.vin == usedVin) {
fUsed = true;
break;
}
}
if (fUsed) continue;
std::vector<CTxIn> vTempCoins;
std::vector<COutput> vTempCoins2;
// Try to match their denominations if possible
if (!pwalletMain->SelectCoinsByDenominations(dsq.nDenom, nValueMin, nBalanceNeedsAnonymized, vTempCoins, vTempCoins2, nValueIn, 0, nZeromintPercentage)) {
LogPrintf("DoAutomaticDenominating --- Couldn't match denominations %d\n", dsq.nDenom);
continue;
}
CMasternode* pmn = mnodeman.Find(dsq.vin);
if (pmn == NULL) {
LogPrintf("DoAutomaticDenominating --- dsq vin %s is not in masternode list!", dsq.vin.ToString());
continue;
}
LogPrintf("DoAutomaticDenominating --- attempt to connect to masternode from queue %s\n", pmn->addr.ToString());
lastTimeChanged = GetTimeMillis();
// connect to Masternode and submit the queue request
CNode* pnode = ConnectNode((CAddress)addr, NULL, true);
if (pnode != NULL) {
pSubmittedToMasternode = pmn;
vecMasternodesUsed.push_back(dsq.vin);
sessionDenom = dsq.nDenom;
pnode->PushMessage("dsa", sessionDenom, txCollateral);
LogPrintf("DoAutomaticDenominating --- connected (from queue), sending dsa for %d - %s\n", sessionDenom, pnode->addr.ToString());
strAutoDenomResult = _("Mixing in progress...");
dsq.time = 0; //remove node
return true;
} else {
LogPrintf("DoAutomaticDenominating --- error connecting \n");
strAutoDenomResult = _("Error connecting to Masternode.");
dsq.time = 0; //remove node
continue;
}
}
}
// do not initiate queue if we are a liquidity proveder to avoid useless inter-mixing
if (nLiquidityProvider) return false;
int i = 0;
// otherwise, try one randomly
while (i < 10) {
CMasternode* pmn = mnodeman.FindRandomNotInVec(vecMasternodesUsed, ActiveProtocol());
if (pmn == NULL) {
LogPrintf("DoAutomaticDenominating --- Can't find random masternode!\n");
strAutoDenomResult = _("Can't find random Masternode.");
return false;
}
if (pmn->nLastDsq != 0 &&
pmn->nLastDsq + mnodeman.CountEnabled(ActiveProtocol()) / 5 > mnodeman.nDsqCount) {
i++;
continue;
}
lastTimeChanged = GetTimeMillis();
LogPrintf("DoAutomaticDenominating --- attempt %d connection to Masternode %s\n", i, pmn->addr.ToString());
CNode* pnode = ConnectNode((CAddress)pmn->addr, NULL, true);
if (pnode != NULL) {
pSubmittedToMasternode = pmn;
vecMasternodesUsed.push_back(pmn->vin);
std::vector<CAmount> vecAmounts;
pwalletMain->ConvertList(vCoins, vecAmounts);
// try to get a single random denom out of vecAmounts
while (sessionDenom == 0)
sessionDenom = GetDenominationsByAmounts(vecAmounts);
pnode->PushMessage("dsa", sessionDenom, txCollateral);
LogPrintf("DoAutomaticDenominating --- connected, sending dsa for %d\n", sessionDenom);
strAutoDenomResult = _("Mixing in progress...");
return true;
} else {
vecMasternodesUsed.push_back(pmn->vin); // postpone MN we wasn't able to connect to
i++;
continue;
}
}
strAutoDenomResult = _("No compatible Masternode found.");
return false;
}
strAutoDenomResult = _("Mixing in progress...");
return false;
}
bool CObfuscationPool::PrepareObfuscationDenominate()
{
std::string strError = "";
// Submit transaction to the pool if we get here
// Try to use only inputs with the same number of rounds starting from lowest number of rounds possible
for (int i = 0; i < nZeromintPercentage; i++) {
strError = pwalletMain->PrepareObfuscationDenominate(i, i + 1);
LogPrintf("DoAutomaticDenominating : Running Obfuscation denominate for %d rounds. Return '%s'\n", i, strError);
if (strError == "") return true;
}
// We failed? That's strange but let's just make final attempt and try to mix everything
strError = pwalletMain->PrepareObfuscationDenominate(0, nZeromintPercentage);
LogPrintf("DoAutomaticDenominating : Running Obfuscation denominate for all rounds. Return '%s'\n", strError);
if (strError == "") return true;
// Should never actually get here but just in case
strAutoDenomResult = strError;
LogPrintf("DoAutomaticDenominating : Error running denominate, %s\n", strError);
return false;
}
bool CObfuscationPool::SendRandomPaymentToSelf()
{
int64_t nBalance = pwalletMain->GetBalance();
int64_t nPayment = (nBalance * 0.35) + (rand() % nBalance);
if (nPayment > nBalance) nPayment = nBalance - (0.1 * COIN);
// make our change address
CReserveKey reservekey(pwalletMain);
CScript scriptChange;
CPubKey vchPubKey;
assert(reservekey.GetReservedKey(vchPubKey)); // should never fail, as we just unlocked
scriptChange = GetScriptForDestination(vchPubKey.GetID());
CWalletTx wtx;
CAmount nFeeRet = 0;
std::string strFail = "";
vector<pair<CScript, CAmount> > vecSend;
// ****** Add fees ************ /
vecSend.push_back(make_pair(scriptChange, nPayment));
CCoinControl* coinControl = NULL;
bool success = pwalletMain->CreateTransaction(vecSend, wtx, reservekey, nFeeRet, strFail, coinControl, ONLY_DENOMINATED);
if (!success) {
LogPrintf("SendRandomPaymentToSelf: Error - %s\n", strFail);
return false;
}
pwalletMain->CommitTransaction(wtx, reservekey);
LogPrintf("SendRandomPaymentToSelf Success: tx %s\n", wtx.GetHash().GetHex());
return true;
}
// Split up large inputs or create fee sized inputs
bool CObfuscationPool::MakeCollateralAmounts()
{
CWalletTx wtx;
CAmount nFeeRet = 0;
std::string strFail = "";
vector<pair<CScript, CAmount> > vecSend;
CCoinControl coinControl;
coinControl.fAllowOtherInputs = false;
coinControl.fAllowWatchOnly = false;
// make our collateral address
CReserveKey reservekeyCollateral(pwalletMain);
// make our change address
CReserveKey reservekeyChange(pwalletMain);
CScript scriptCollateral;
CPubKey vchPubKey;
assert(reservekeyCollateral.GetReservedKey(vchPubKey)); // should never fail, as we just unlocked
scriptCollateral = GetScriptForDestination(vchPubKey.GetID());
vecSend.push_back(make_pair(scriptCollateral, OBFUSCATION_COLLATERAL * 4));
// try to use non-denominated and not mn-like funds
bool success = pwalletMain->CreateTransaction(vecSend, wtx, reservekeyChange,
nFeeRet, strFail, &coinControl, ONLY_NONDENOMINATED_NOT10000IFMN);
if (!success) {
// if we failed (most likeky not enough funds), try to use all coins instead -
// MN-like funds should not be touched in any case and we can't mix denominated without collaterals anyway
CCoinControl* coinControlNull = NULL;
LogPrintf("MakeCollateralAmounts: ONLY_NONDENOMINATED_NOT10000IFMN Error - %s\n", strFail);
success = pwalletMain->CreateTransaction(vecSend, wtx, reservekeyChange,
nFeeRet, strFail, coinControlNull, ONLY_NOT10000IFMN);
if (!success) {
LogPrintf("MakeCollateralAmounts: ONLY_NOT10000IFMN Error - %s\n", strFail);
reservekeyCollateral.ReturnKey();
return false;
}
}
reservekeyCollateral.KeepKey();
LogPrintf("MakeCollateralAmounts: tx %s\n", wtx.GetHash().GetHex());
// use the same cachedLastSuccess as for DS mixinx to prevent race
if (!pwalletMain->CommitTransaction(wtx, reservekeyChange)) {
LogPrintf("MakeCollateralAmounts: CommitTransaction failed!\n");
return false;
}
cachedLastSuccess = chainActive.Tip()->nHeight;
return true;
}
// Create denominations
bool CObfuscationPool::CreateDenominated(CAmount nTotalValue)
{
CWalletTx wtx;
CAmount nFeeRet = 0;
std::string strFail = "";
vector<pair<CScript, CAmount> > vecSend;
CAmount nValueLeft = nTotalValue;
// make our collateral address
CReserveKey reservekeyCollateral(pwalletMain);
// make our change address
CReserveKey reservekeyChange(pwalletMain);
// make our denom addresses
CReserveKey reservekeyDenom(pwalletMain);
CScript scriptCollateral;
CPubKey vchPubKey;
assert(reservekeyCollateral.GetReservedKey(vchPubKey)); // should never fail, as we just unlocked
scriptCollateral = GetScriptForDestination(vchPubKey.GetID());
// ****** Add collateral outputs ************ /
if (!pwalletMain->HasCollateralInputs()) {
vecSend.push_back(make_pair(scriptCollateral, OBFUSCATION_COLLATERAL * 4));
nValueLeft -= OBFUSCATION_COLLATERAL * 4;
}
// ****** Add denoms ************ /
BOOST_REVERSE_FOREACH (CAmount v, obfuScationDenominations) {
int nOutputs = 0;
// add each output up to 10 times until it can't be added again
while (nValueLeft - v >= OBFUSCATION_COLLATERAL && nOutputs <= 10) {
CScript scriptDenom;
CPubKey vchPubKey;
//use a unique change address
assert(reservekeyDenom.GetReservedKey(vchPubKey)); // should never fail, as we just unlocked
scriptDenom = GetScriptForDestination(vchPubKey.GetID());
// TODO: do not keep reservekeyDenom here
reservekeyDenom.KeepKey();
vecSend.push_back(make_pair(scriptDenom, v));
//increment outputs and subtract denomination amount
nOutputs++;
nValueLeft -= v;
LogPrintf("CreateDenominated1 %d\n", nValueLeft);
}
if (nValueLeft == 0) break;
}
LogPrintf("CreateDenominated2 %d\n", nValueLeft);
// if we have anything left over, it will be automatically send back as change - there is no need to send it manually
CCoinControl* coinControl = NULL;
bool success = pwalletMain->CreateTransaction(vecSend, wtx, reservekeyChange,
nFeeRet, strFail, coinControl, ONLY_NONDENOMINATED_NOT10000IFMN);
if (!success) {
LogPrintf("CreateDenominated: Error - %s\n", strFail);
// TODO: return reservekeyDenom here
reservekeyCollateral.ReturnKey();
return false;
}
// TODO: keep reservekeyDenom here
reservekeyCollateral.KeepKey();
// use the same cachedLastSuccess as for DS mixinx to prevent race
if (pwalletMain->CommitTransaction(wtx, reservekeyChange))
cachedLastSuccess = chainActive.Tip()->nHeight;
else
LogPrintf("CreateDenominated: CommitTransaction failed!\n");
LogPrintf("CreateDenominated: tx %s\n", wtx.GetHash().GetHex());
return true;
}
bool CObfuscationPool::IsCompatibleWithEntries(std::vector<CTxOut>& vout)
{
if (GetDenominations(vout) == 0) return false;
BOOST_FOREACH (const CObfuScationEntry v, entries) {
LogPrintf(" IsCompatibleWithEntries %d %d\n", GetDenominations(vout), GetDenominations(v.vout));
/*
BOOST_FOREACH(CTxOut o1, vout)
LogPrintf(" vout 1 - %s\n", o1.ToString());
BOOST_FOREACH(CTxOut o2, v.vout)
LogPrintf(" vout 2 - %s\n", o2.ToString());
*/
if (GetDenominations(vout) != GetDenominations(v.vout)) return false;
}
return true;
}
bool CObfuscationPool::IsCompatibleWithSession(int64_t nDenom, CTransaction txCollateral, int& errorID)
{
if (nDenom == 0) return false;
LogPrintf("CObfuscationPool::IsCompatibleWithSession - sessionDenom %d sessionUsers %d\n", sessionDenom, sessionUsers);
if (!unitTest && !IsCollateralValid(txCollateral)) {
LogPrint("obfuscation", "CObfuscationPool::IsCompatibleWithSession - collateral not valid!\n");
errorID = ERR_INVALID_COLLATERAL;
return false;
}
if (sessionUsers < 0) sessionUsers = 0;
if (sessionUsers == 0) {
sessionID = 1 + (rand() % 999999);
sessionDenom = nDenom;
sessionUsers++;
lastTimeChanged = GetTimeMillis();
if (!unitTest) {
//broadcast that I'm accepting entries, only if it's the first entry through
CObfuscationQueue dsq;
dsq.nDenom = nDenom;
dsq.vin = activeMasternode.vin;
dsq.time = GetTime();
dsq.Sign();
dsq.Relay();
}
UpdateState(POOL_STATUS_QUEUE);
vecSessionCollateral.push_back(txCollateral);
return true;
}
if ((state != POOL_STATUS_ACCEPTING_ENTRIES && state != POOL_STATUS_QUEUE) || sessionUsers >= GetMaxPoolTransactions()) {
if ((state != POOL_STATUS_ACCEPTING_ENTRIES && state != POOL_STATUS_QUEUE)) errorID = ERR_MODE;
if (sessionUsers >= GetMaxPoolTransactions()) errorID = ERR_QUEUE_FULL;
LogPrintf("CObfuscationPool::IsCompatibleWithSession - incompatible mode, return false %d %d\n", state != POOL_STATUS_ACCEPTING_ENTRIES, sessionUsers >= GetMaxPoolTransactions());
return false;
}
if (nDenom != sessionDenom) {
errorID = ERR_DENOM;
return false;
}
LogPrintf("CObfuScationPool::IsCompatibleWithSession - compatible\n");
sessionUsers++;
lastTimeChanged = GetTimeMillis();
vecSessionCollateral.push_back(txCollateral);
return true;
}
//create a nice string to show the denominations
void CObfuscationPool::GetDenominationsToString(int nDenom, std::string& strDenom)
{
// Function returns as follows:
//
// bit 0 - 100CSTL+1 ( bit on if present )
// bit 1 - 10CSTL+1
// bit 2 - 1CSTL+1
// bit 3 - .1CSTL+1
// bit 3 - non-denom
strDenom = "";
if (nDenom & (1 << 0)) {
if (strDenom.size() > 0) strDenom += "+";
strDenom += "100";
}
if (nDenom & (1 << 1)) {
if (strDenom.size() > 0) strDenom += "+";
strDenom += "10";
}
if (nDenom & (1 << 2)) {
if (strDenom.size() > 0) strDenom += "+";
strDenom += "1";
}
if (nDenom & (1 << 3)) {
if (strDenom.size() > 0) strDenom += "+";
strDenom += "0.1";
}
}
int CObfuscationPool::GetDenominations(const std::vector<CTxDSOut>& vout)
{
std::vector<CTxOut> vout2;
BOOST_FOREACH (CTxDSOut out, vout)
vout2.push_back(out);
return GetDenominations(vout2);
}
// return a bitshifted integer representing the denominations in this list
int CObfuscationPool::GetDenominations(const std::vector<CTxOut>& vout, bool fSingleRandomDenom)
{
std::vector<pair<int64_t, int> > denomUsed;
// make a list of denominations, with zero uses
BOOST_FOREACH (int64_t d, obfuScationDenominations)
denomUsed.push_back(make_pair(d, 0));
// look for denominations and update uses to 1
BOOST_FOREACH (CTxOut out, vout) {
bool found = false;
BOOST_FOREACH (PAIRTYPE(int64_t, int) & s, denomUsed) {
if (out.nValue == s.first) {
s.second = 1;
found = true;
}
}
if (!found) return 0;
}
int denom = 0;
int c = 0;
// if the denomination is used, shift the bit on.
// then move to the next
BOOST_FOREACH (PAIRTYPE(int64_t, int) & s, denomUsed) {
int bit = (fSingleRandomDenom ? rand() % 2 : 1) * s.second;
denom |= bit << c++;
if (fSingleRandomDenom && bit) break; // use just one random denomination
}
// Function returns as follows:
//
// bit 0 - 100CSTL+1 ( bit on if present )
// bit 1 - 10CSTL+1
// bit 2 - 1CSTL+1
// bit 3 - .1CSTL+1
return denom;
}
int CObfuscationPool::GetDenominationsByAmounts(std::vector<CAmount>& vecAmount)
{
CScript e = CScript();
std::vector<CTxOut> vout1;
// Make outputs by looping through denominations, from small to large
BOOST_REVERSE_FOREACH (CAmount v, vecAmount) {
CTxOut o(v, e);
vout1.push_back(o);
}
return GetDenominations(vout1, true);
}
int CObfuscationPool::GetDenominationsByAmount(CAmount nAmount, int nDenomTarget)
{
CScript e = CScript();
CAmount nValueLeft = nAmount;
std::vector<CTxOut> vout1;
// Make outputs by looping through denominations, from small to large
BOOST_REVERSE_FOREACH (CAmount v, obfuScationDenominations) {
if (nDenomTarget != 0) {
bool fAccepted = false;
if ((nDenomTarget & (1 << 0)) && v == ((100 * COIN) + 100000)) {
fAccepted = true;
} else if ((nDenomTarget & (1 << 1)) && v == ((10 * COIN) + 10000)) {
fAccepted = true;
} else if ((nDenomTarget & (1 << 2)) && v == ((1 * COIN) + 1000)) {
fAccepted = true;
} else if ((nDenomTarget & (1 << 3)) && v == ((.1 * COIN) + 100)) {
fAccepted = true;
}
if (!fAccepted) continue;
}
int nOutputs = 0;
// add each output up to 10 times until it can't be added again
while (nValueLeft - v >= 0 && nOutputs <= 10) {
CTxOut o(v, e);
vout1.push_back(o);
nValueLeft -= v;
nOutputs++;
}
LogPrintf("GetDenominationsByAmount --- %d nOutputs %d\n", v, nOutputs);
}
return GetDenominations(vout1);
}
std::string CObfuscationPool::GetMessageByID(int messageID)
{
switch (messageID) {
case ERR_ALREADY_HAVE:
return _("Already have that input.");
case ERR_DENOM:
return _("No matching denominations found for mixing.");
case ERR_ENTRIES_FULL:
return _("Entries are full.");
case ERR_EXISTING_TX:
return _("Not compatible with existing transactions.");
case ERR_FEES:
return _("Transaction fees are too high.");
case ERR_INVALID_COLLATERAL:
return _("Collateral not valid.");
case ERR_INVALID_INPUT:
return _("Input is not valid.");
case ERR_INVALID_SCRIPT:
return _("Invalid script detected.");
case ERR_INVALID_TX:
return _("Transaction not valid.");
case ERR_MAXIMUM:
return _("Value more than Obfuscation pool maximum allows.");
case ERR_MN_LIST:
return _("Not in the Masternode list.");
case ERR_MODE:
return _("Incompatible mode.");
case ERR_NON_STANDARD_PUBKEY:
return _("Non-standard public key detected.");
case ERR_NOT_A_MN:
return _("This is not a Masternode.");
case ERR_QUEUE_FULL:
return _("Masternode queue is full.");
case ERR_RECENT:
return _("Last Obfuscation was too recent.");
case ERR_SESSION:
return _("Session not complete!");
case ERR_MISSING_TX:
return _("Missing input transaction information.");
case ERR_VERSION:
return _("Incompatible version.");
case MSG_SUCCESS:
return _("Transaction created successfully.");
case MSG_ENTRIES_ADDED:
return _("Your entries added successfully.");
case MSG_NOERR:
default:
return "";
}
}
bool CObfuScationSigner::IsVinAssociatedWithPubkey(CTxIn& vin, CPubKey& pubkey)
{
CScript payee2;
payee2 = GetScriptForDestination(pubkey.GetID());
CTransaction txVin;
uint256 hash;
if (GetTransaction(vin.prevout.hash, txVin, hash, true)) {
BOOST_FOREACH (CTxOut out, txVin.vout) {
if (out.nValue == 10000 * COIN) {
if (out.scriptPubKey == payee2) return true;
}
}
}
return false;
}
bool CObfuScationSigner::SetKey(std::string strSecret, std::string& errorMessage, CKey& key, CPubKey& pubkey)
{
CBitcoinSecret vchSecret;
bool fGood = vchSecret.SetString(strSecret);
if (!fGood) {
errorMessage = _("Invalid private key.");
return false;
}
key = vchSecret.GetKey();
pubkey = key.GetPubKey();
return true;
}
bool CObfuScationSigner::GetKeysFromSecret(std::string strSecret, CKey& keyRet, CPubKey& pubkeyRet)
{
CBitcoinSecret vchSecret;
if (!vchSecret.SetString(strSecret)) return false;
keyRet = vchSecret.GetKey();
pubkeyRet = keyRet.GetPubKey();
return true;
}
bool CObfuScationSigner::SignMessage(std::string strMessage, std::string& errorMessage, vector<unsigned char>& vchSig, CKey key)
{
CHashWriter ss(SER_GETHASH, 0);
ss << strMessageMagic;
ss << strMessage;
if (!key.SignCompact(ss.GetHash(), vchSig)) {
errorMessage = _("Signing failed.");
return false;
}
return true;
}
bool CObfuScationSigner::VerifyMessage(CPubKey pubkey, vector<unsigned char>& vchSig, std::string strMessage, std::string& errorMessage)
{
CHashWriter ss(SER_GETHASH, 0);
ss << strMessageMagic;
ss << strMessage;
CPubKey pubkey2;
if (!pubkey2.RecoverCompact(ss.GetHash(), vchSig)) {
errorMessage = _("Error recovering public key.");
return false;
}
if (fDebug && pubkey2.GetID() != pubkey.GetID())
LogPrintf("CObfuScationSigner::VerifyMessage -- keys don't match: %s %s\n", pubkey2.GetID().ToString(), pubkey.GetID().ToString());
return (pubkey2.GetID() == pubkey.GetID());
}
bool CObfuscationQueue::Sign()
{
if (!fMasterNode) return false;
std::string strMessage = vin.ToString() + boost::lexical_cast<std::string>(nDenom) + boost::lexical_cast<std::string>(time) + boost::lexical_cast<std::string>(ready);
CKey key2;
CPubKey pubkey2;
std::string errorMessage = "";
if (!obfuScationSigner.SetKey(strMasterNodePrivKey, errorMessage, key2, pubkey2)) {
LogPrintf("CObfuscationQueue():Relay - ERROR: Invalid Masternodeprivkey: '%s'\n", errorMessage);
return false;
}
if (!obfuScationSigner.SignMessage(strMessage, errorMessage, vchSig, key2)) {
LogPrintf("CObfuscationQueue():Relay - Sign message failed");
return false;
}
if (!obfuScationSigner.VerifyMessage(pubkey2, vchSig, strMessage, errorMessage)) {
LogPrintf("CObfuscationQueue():Relay - Verify message failed");
return false;
}
return true;
}
bool CObfuscationQueue::Relay()
{
LOCK(cs_vNodes);
BOOST_FOREACH (CNode* pnode, vNodes) {
// always relay to everyone
pnode->PushMessage("dsq", (*this));
}
return true;
}
bool CObfuscationQueue::CheckSignature()
{
CMasternode* pmn = mnodeman.Find(vin);
if (pmn != NULL) {
std::string strMessage = vin.ToString() + boost::lexical_cast<std::string>(nDenom) + boost::lexical_cast<std::string>(time) + boost::lexical_cast<std::string>(ready);
std::string errorMessage = "";
if (!obfuScationSigner.VerifyMessage(pmn->pubKeyMasternode, vchSig, strMessage, errorMessage)) {
return error("CObfuscationQueue::CheckSignature() - Got bad Masternode address signature %s \n", vin.ToString().c_str());
}
return true;
}
return false;
}
void CObfuscationPool::RelayFinalTransaction(const int sessionID, const CTransaction& txNew)
{
LOCK(cs_vNodes);
BOOST_FOREACH (CNode* pnode, vNodes) {
pnode->PushMessage("dsf", sessionID, txNew);
}
}
void CObfuscationPool::RelayIn(const std::vector<CTxDSIn>& vin, const int64_t& nAmount, const CTransaction& txCollateral, const std::vector<CTxDSOut>& vout)
{
if (!pSubmittedToMasternode) return;
std::vector<CTxIn> vin2;
std::vector<CTxOut> vout2;
BOOST_FOREACH (CTxDSIn in, vin)
vin2.push_back(in);
BOOST_FOREACH (CTxDSOut out, vout)
vout2.push_back(out);
CNode* pnode = FindNode(pSubmittedToMasternode->addr);
if (pnode != NULL) {
LogPrintf("RelayIn - found master, relaying message - %s \n", pnode->addr.ToString());
pnode->PushMessage("dsi", vin2, nAmount, txCollateral, vout2);
}
}
void CObfuscationPool::RelayStatus(const int sessionID, const int newState, const int newEntriesCount, const int newAccepted, const int errorID)
{
LOCK(cs_vNodes);
BOOST_FOREACH (CNode* pnode, vNodes)
pnode->PushMessage("dssu", sessionID, newState, newEntriesCount, newAccepted, errorID);
}
void CObfuscationPool::RelayCompletedTransaction(const int sessionID, const bool error, const int errorID)
{
LOCK(cs_vNodes);
BOOST_FOREACH (CNode* pnode, vNodes)
pnode->PushMessage("dsc", sessionID, error, errorID);
}
//TODO: Rename/move to core
void ThreadCheckObfuScationPool()
{
if (fLiteMode) return; //disable all Obfuscation/Masternode related functionality
// Make this thread recognisable as the wallet flushing thread
RenameThread("castle-obfuscation");
unsigned int c = 0;
while (true) {
MilliSleep(1000);
//LogPrintf("ThreadCheckObfuScationPool::check timeout\n");
// try to sync from all available nodes, one step at a time
masternodeSync.Process();
if (masternodeSync.IsBlockchainSynced()) {
c++;
// check if we should activate or ping every few minutes,
// start right after sync is considered to be done
if (c % MASTERNODE_PING_SECONDS == 1) activeMasternode.ManageStatus();
if (c % 60 == 0) {
mnodeman.CheckAndRemove();
mnodeman.ProcessMasternodeConnections();
masternodePayments.CleanPaymentList();
CleanTransactionLocksList();
}
//if(c % MASTERNODES_DUMP_SECONDS == 0) DumpMasternodes();
obfuScationPool.CheckTimeout();
obfuScationPool.CheckForCompleteQueue();
if (obfuScationPool.GetState() == POOL_STATUS_IDLE && c % 15 == 0) {
obfuScationPool.DoAutomaticDenominating();
}
}
}
}
|
; A125729: Numbers whose base 7 representation is 555....5.
; 0,5,40,285,2000,14005,98040,686285,4804000,33628005,235396040,1647772285,11534406000,80740842005,565185894040,3956301258285,27694108808000,193858761656005,1357011331592040,9499079321144285
mov $1,7
pow $1,$0
div $1,6
mul $1,5
|
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1fc0, %rcx
nop
nop
add $7440, %rax
movb $0x61, (%rcx)
nop
nop
nop
nop
and %rdi, %rdi
lea addresses_WC_ht+0x16ea8, %rsi
lea addresses_WC_ht+0xe8b2, %rdi
nop
nop
sub $54922, %r13
mov $58, %rcx
rep movsq
nop
cmp $52048, %rcx
lea addresses_WT_ht+0x1aab2, %rcx
nop
sub $42436, %r13
vmovups (%rcx), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $0, %xmm1, %rsi
sub %rcx, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r14
push %rcx
push %rdx
push %rsi
// Faulty Load
lea addresses_A+0x142b2, %r12
clflush (%r12)
nop
nop
nop
nop
dec %rsi
mov (%r12), %rcx
lea oracles, %r12
and $0xff, %rcx
shlq $12, %rcx
mov (%r12,%rcx,1), %rcx
pop %rsi
pop %rdx
pop %rcx
pop %r14
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A', 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC_ht', 'congruent': 1}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 8, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_WC_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 10}}
{'35': 21829}
35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35
*/
|
; A158490: 100n^2 - 10.
; 90,390,890,1590,2490,3590,4890,6390,8090,9990,12090,14390,16890,19590,22490,25590,28890,32390,36090,39990,44090,48390,52890,57590,62490,67590,72890,78390,84090,89990,96090,102390,108890,115590,122490,129590,136890,144390,152090,159990,168090,176390,184890,193590,202490,211590,220890,230390,240090,249990,260090,270390,280890,291590,302490,313590,324890,336390,348090,359990,372090,384390,396890,409590,422490,435590,448890,462390,476090,489990,504090,518390,532890,547590,562490,577590,592890
mov $1,2
add $1,$0
mul $1,$0
mul $1,100
add $1,90
mov $0,$1
|
/****************************************************************************/
/* tdapi.c */
/* */
/* Transport driver - portable specific API */
/* */
/* Copyright (C) 1997-1999 Microsoft Corporation */
/****************************************************************************/
#include <adcg.h>
extern "C" {
#define TRC_FILE "tdapi"
#define TRC_GROUP TRC_GROUP_NETWORK
#include <atrcapi.h>
}
#include "autil.h"
#include "td.h"
#include "xt.h"
#include "nl.h"
CTD::CTD(CObjs* objs)
{
_pClientObjects = objs;
}
CTD::~CTD()
{
}
/****************************************************************************/
/* Name: TD_Init */
/* */
/* Purpose: Initializes the transport driver. This is called on the */
/* receiver thread. */
/****************************************************************************/
DCVOID DCAPI CTD::TD_Init(DCVOID)
{
DC_BEGIN_FN("TD_Init");
_pNl = _pClientObjects->_pNlObject;
_pUt = _pClientObjects->_pUtObject;
_pXt = _pClientObjects->_pXTObject;
_pUi = _pClientObjects->_pUiObject;
_pCd = _pClientObjects->_pCdObject;
/************************************************************************/
/* Initialize the global data and set the initial FSM state. */
/************************************************************************/
DC_MEMSET(&_TD, 0, sizeof(_TD));
_TD.fsmState = TD_ST_NOTINIT;
/************************************************************************/
/* Call the FSM. */
/************************************************************************/
TDConnectFSMProc(TD_EVT_TDINIT, 0);
DC_END_FN();
} /* TD_Init */
/****************************************************************************/
/* Name: TD_Term */
/* */
/* Purpose: Terminates the transport driver. This is called on the */
/* receiver thread. */
/****************************************************************************/
DCVOID DCAPI CTD::TD_Term(DCVOID)
{
DC_BEGIN_FN("TD_Term");
/************************************************************************/
/* Call the FSM. */
/************************************************************************/
TDConnectFSMProc(TD_EVT_TDTERM, 0);
DC_END_FN();
} /* TD_Term */
/****************************************************************************/
/* Name: TD_Connect */
/* */
/* Purpose: Connects to a remote server. Called on the receiver thread. */
/* */
/* Params: */
/* IN bInitateConnect : TRUE if we are making connection, */
/* FALSE if connect with already connected socket */
/* */
/****************************************************************************/
DCVOID DCAPI CTD::TD_Connect(BOOL bInitateConnect, PDCTCHAR pServerAddress)
{
DCUINT i;
DCUINT errorCode;
u_long addr;
DCUINT nextEvent;
ULONG_PTR eventData;
DCACHAR ansiBuffer[256];
DC_BEGIN_FN("TD_Connect");
/************************************************************************/
/* Check that the string is not null. */
/************************************************************************/
if( bInitateConnect )
{
TRC_ASSERT((0 != *pServerAddress),
(TB, _T("Server address is NULL")));
}
/************************************************************************/
/* Check that all the buffers are not in-use. */
/************************************************************************/
for (i = 0; i < TD_SNDBUF_PUBNUM; i++)
{
if (_TD.pubSndBufs[i].inUse)
{
TD_TRACE_SENDINFO(TRC_LEVEL_ERR);
TRC_ABORT((TB, _T("Public buffer %u still in-use"), i));
}
}
for (i = 0; i < TD_SNDBUF_PRINUM; i++)
{
if (_TD.priSndBufs[i].inUse)
{
TD_TRACE_SENDINFO(TRC_LEVEL_ERR);
TRC_ABORT((TB, _T("Private buffer %u still in-use"), i));
}
}
/************************************************************************/
/* Trace out the send buffer information. */
/************************************************************************/
TD_TRACE_SENDINFO(TRC_LEVEL_NRM);
if( FALSE == bInitateConnect )
{
TDConnectFSMProc(TD_EVT_CONNECTWITHENDPOINT, NULL);
DC_QUIT; // all we need is the buffer.
}
#ifdef UNICODE
/************************************************************************/
/* WinSock 1.1 only supports ANSI, so we need to convert any Unicode */
/* strings at this point. */
/************************************************************************/
if (!WideCharToMultiByte(CP_ACP,
0,
pServerAddress,
-1,
ansiBuffer,
256,
NULL,
NULL))
{
/********************************************************************/
/* Conversion failed */
/********************************************************************/
TRC_ERR((TB, _T("Failed to convert address to ANSI")));
/********************************************************************/
/* Generate the error code. */
/********************************************************************/
errorCode = NL_MAKE_DISCONNECT_ERR(NL_ERR_TDANSICONVERT);
TRC_ASSERT((HIWORD(errorCode) == 0),
(TB, _T("disconnect reason code unexpectedly using 32 bits")));
_pXt->XT_OnTDDisconnected(errorCode);
}
#else
DC_ASTRCPY(ansiBuffer, pServerAddress);
#endif /* UNICODE */
/************************************************************************/
/* Check that the address is not the limited broadcast address */
/* (255.255.255.255). */
/************************************************************************/
if (0 == DC_ASTRCMP(ansiBuffer, TD_LIMITED_BROADCAST_ADDRESS))
{
TRC_ALT((TB, _T("Cannot connect to the limited broadcast address")));
/********************************************************************/
/* Generate the error code. */
/********************************************************************/
errorCode = NL_MAKE_DISCONNECT_ERR(NL_ERR_TDBADIPADDRESS);
TRC_ASSERT((HIWORD(errorCode) == 0),
(TB, _T("disconnect reason code unexpectedly using 32 bits")));
_pXt->XT_OnTDDisconnected(errorCode);
DC_QUIT;
}
/************************************************************************/
/* Now determine whether a DNS lookup is required. */
/************************************************************************/
TRC_NRM((TB, _T("ServerAddress:%s"), ansiBuffer));
/************************************************************************/
/* Check that we have a string and that the address is not the limited */
/* broadcast address. */
/************************************************************************/
TRC_ASSERT((NULL != ansiBuffer), (TB, _T("ansiBuffer is NULL")));
TRC_ASSERT(('\0' != ansiBuffer[0]),
(TB, _T("Empty server address string")));
TRC_ASSERT((0 != DC_ASTRCMP(ansiBuffer, TD_LIMITED_BROADCAST_ADDRESS)),
(TB, _T("Cannot connect to the limited broadcast address")));
/************************************************************************/
/* Check for a dotted-IP address string. */
/************************************************************************/
addr = inet_addr(ansiBuffer);
TRC_NRM((TB, _T("Address returned is %#lx"), addr));
/************************************************************************/
/* Now determine whether this is an address string or a host name. */
/* Note that inet_addr doesn't distinguish between an invalid IP */
/* address and the limited broadcast address (255.255.255.255). */
/* However since we don't allow the limited broadcast address and have */
/* already checked explicitly for it we don't need to worry about this */
/* case. */
/************************************************************************/
if (INADDR_NONE == addr)
{
/********************************************************************/
/* This looks like a host name so call the FSM with the current */
/* address. */
/********************************************************************/
TRC_NRM((TB, _T("%s looks like a hostname - need DNS lookup"),
ansiBuffer));
nextEvent = TD_EVT_TDCONNECT_DNS;
eventData = (ULONG_PTR) ansiBuffer;
}
else
{
/********************************************************************/
/* If we get here then it appears to be a dotted-IP address. Call */
/* the FSM with the updated address. */
/********************************************************************/
TRC_NRM((TB, _T("%s looks like a dotted-IP address:%lu"),
ansiBuffer,
addr));
nextEvent = TD_EVT_TDCONNECT_IP;
eventData = addr;
}
/************************************************************************/
/* Now call the FSM with the appropriate parameters. */
/************************************************************************/
TDConnectFSMProc(nextEvent, eventData);
DC_EXIT_POINT:
DC_END_FN();
} /* TD_Connect */
/****************************************************************************/
/* Name: TD_Disconnect */
/* */
/* Purpose: Disconnects from the server. This is called on the receiver */
/* thread. */
/****************************************************************************/
DCVOID DCAPI CTD::TD_Disconnect(DCVOID)
{
DC_BEGIN_FN("TD_Disconnect");
/************************************************************************/
/* Call the FSM. We pass NL_DISCONNECT_LOCAL which will be used as the */
/* return code to XT in the cases where we are waiting for the DNS */
/* lookup to return or the socket to connect. */
/************************************************************************/
TDConnectFSMProc(TD_EVT_TDDISCONNECT, NL_DISCONNECT_LOCAL);
DC_END_FN();
} /* TD_Disconnect */
//
// TD_DropLink - drops the link immediately (ungracefully)
//
VOID
CTD::TD_DropLink(DCVOID)
{
DC_BEGIN_FN("TD_DropLink");
TDConnectFSMProc(TD_EVT_DROPLINK, NL_DISCONNECT_LOCAL);
DC_END_FN();
}
/****************************************************************************/
/* Name: TD_GetPublicBuffer */
/* */
/* Purpose: Attempts to allocate a buffer from the public TD buffer pool. */
/* */
/* Returns: If the allocation succeeds then this function returns TRUE */
/* otherwise it returns FALSE. */
/* */
/* Params: IN dataLength - length of the buffer requested. */
/* OUT ppBuffer - a pointer to a pointer to the buffer. */
/* OUT pBufHandle - a pointer to a buffer handle. */
/****************************************************************************/
DCBOOL DCAPI CTD::TD_GetPublicBuffer(DCUINT dataLength,
PPDCUINT8 ppBuffer,
PTD_BUFHND pBufHandle)
{
DCUINT i;
DCBOOL rc = FALSE;
DCUINT lastfree = TD_SNDBUF_PUBNUM;
PDCUINT8 pbOldBuffer;
DCUINT cbOldBuffer;
DC_BEGIN_FN("TD_GetPublicBuffer");
// Check that we're in the correct state. If we're disconnected
// then fail the call. Note that the FSM state is maintained by the
// receiver thread - but we're on the sender thread.
if (_TD.fsmState == TD_ST_CONNECTED) {
TRC_DBG((TB, _T("Searching for a buffer big enough for %u bytes"),
dataLength));
// Trace out the send buffer information.
TD_TRACE_SENDINFO(TRC_LEVEL_DBG);
// Search the array of buffers looking for the first free one that is
// large enough.
for (i = 0; i < TD_SNDBUF_PUBNUM; i++) {
TRC_DBG((TB, _T("Trying buf:%u inUse:%s size:%u"),
i,
_TD.pubSndBufs[i].inUse ? "TRUE" : "FALSE",
_TD.pubSndBufs[i].size));
if(!_TD.pubSndBufs[i].inUse)
{
lastfree = i;
}
if ((!(_TD.pubSndBufs[i].inUse)) &&
(_TD.pubSndBufs[i].size >= dataLength)) {
TRC_DBG((TB, _T("bufHandle:%p (idx:%u) free - size:%u (req:%u)"),
&_TD.pubSndBufs[i], i, _TD.pubSndBufs[i].size,
dataLength));
// Now mark this buffer as being in use and set up the return
// values. The handle is just a pointer to the buffer
// information structure.
_TD.pubSndBufs[i].inUse = TRUE;
*ppBuffer = _TD.pubSndBufs[i].pBuffer;
*pBufHandle = (TD_BUFHND) (PDCVOID)&_TD.pubSndBufs[i];
// Set a good return code.
rc = TRUE;
// Check that the other fields are set correctly.
TRC_ASSERT((_TD.pubSndBufs[i].pNext == NULL),
(TB, _T("Buf:%u next non-zero"), i));
TRC_ASSERT((_TD.pubSndBufs[i].bytesLeftToSend == 0),
(TB, _T("Buf:%u bytesLeftToSend non-zero"), i));
TRC_ASSERT((_TD.pubSndBufs[i].pDataLeftToSend == NULL),
(TB, _T("Buf:%u pDataLeftToSend non-null"), i));
// Update the performance counter.
PRF_INC_COUNTER(PERF_PKTS_ALLOCATED);
// That's all we need to do so just quit.
DC_QUIT;
}
}
// check if we need to re-allocate
if(lastfree < TD_SNDBUF_PUBNUM)
{
pbOldBuffer = _TD.pubSndBufs[lastfree].pBuffer;
cbOldBuffer = _TD.pubSndBufs[lastfree].size;
// reallocate space
TDAllocBuf(
&_TD.pubSndBufs[lastfree],
dataLength
);
// TDAllocBuf() return DCVOID with UI_FatalError()
if( NULL != _TD.pubSndBufs[lastfree].pBuffer )
{
UT_Free( _pUt, pbOldBuffer );
// Now mark this buffer as being in use and set up the return
// values. The handle is just a pointer to the buffer
// information structure.
_TD.pubSndBufs[lastfree].inUse = TRUE;
*ppBuffer = _TD.pubSndBufs[lastfree].pBuffer;
*pBufHandle = (TD_BUFHND) (PDCVOID)&_TD.pubSndBufs[lastfree];
// Set a good return code.
rc = TRUE;
// Update the performance counter.
PRF_INC_COUNTER(PERF_PKTS_ALLOCATED);
// That's all we need to do so just quit.
DC_QUIT;
}
else
{
// restore pointer and size.
_TD.pubSndBufs[lastfree].pBuffer = pbOldBuffer;
_TD.pubSndBufs[lastfree].size = cbOldBuffer;
}
}
// We failed to find a free buffer. Trace the send buffer info.
_TD.getBufferFailed = TRUE;
TRC_ALT((TB, _T("Failed to find a free buffer (req dataLength:%u) Bufs:"),
dataLength));
TD_TRACE_SENDINFO(TRC_LEVEL_ALT);
}
else {
TRC_NRM((TB, _T("Not connected therefore fail get buffer call")));
}
DC_EXIT_POINT:
DC_END_FN();
return rc;
} /* TD_GetPublicBuffer */
/****************************************************************************/
/* Name: TD_GetPrivateBuffer */
/* */
/* Purpose: Attempts to allocate a buffer from the private TD buffer */
/* pool. */
/* */
/* Returns: If the allocation succeeds then this function returns TRUE */
/* otherwise it returns FALSE. */
/* */
/* Params: IN dataLength - length of the buffer requested. */
/* OUT ppBuffer - a pointer to a pointer to the buffer. */
/* OUT pBufHandle - a pointer to a buffer handle. */
/* */
/* Operation: This function should always return a buffer - it it up to */
/* the network layer to ensure that it does not allocate more */
/* buffers than are available in the private list. */
/****************************************************************************/
DCBOOL DCAPI CTD::TD_GetPrivateBuffer(DCUINT dataLength,
PPDCUINT8 ppBuffer,
PTD_BUFHND pBufHandle)
{
DCUINT i;
DCBOOL rc = FALSE;
DC_BEGIN_FN("TD_GetPrivateBuffer");
// Check that we're in the correct state. If we're disconnected
// then fail the call. Note that the FSM state is maintained by the
// receiver thread - but we're on the sender thread.
if (_TD.fsmState == TD_ST_CONNECTED) {
TRC_DBG((TB, _T("Searching for a buffer big enough for %u bytes"),
dataLength));
// Trace out the send buffer information.
TD_TRACE_SENDINFO(TRC_LEVEL_DBG);
// Search the array of buffers looking for the first free one that is
// large enough.
for (i = 0; i < TD_SNDBUF_PRINUM; i++) {
TRC_DBG((TB, _T("Trying buf:%u inUse:%s size:%u"),
i,
_TD.priSndBufs[i].inUse ? "TRUE" : "FALSE",
_TD.priSndBufs[i].size));
if ((!(_TD.priSndBufs[i].inUse)) &&
(_TD.priSndBufs[i].size >= dataLength)) {
TRC_DBG((TB, _T("bufHandle:%p (idx:%u) free - size:%u (req:%u)"),
&_TD.priSndBufs[i], i, _TD.priSndBufs[i].size,
dataLength));
// Now mark this buffer as being in use and set up the return
// values. The handle is just a pointer to the buffer
// information structure.
_TD.priSndBufs[i].inUse = TRUE;
*ppBuffer = _TD.priSndBufs[i].pBuffer;
*pBufHandle = (TD_BUFHND) (PDCVOID)&_TD.priSndBufs[i];
// Set a good return code.
rc = TRUE;
// Check that the other fields are set correctly.
TRC_ASSERT((_TD.priSndBufs[i].pNext == NULL),
(TB, _T("Buf:%u next non-zero"), i));
TRC_ASSERT((_TD.priSndBufs[i].bytesLeftToSend == 0),
(TB, _T("Buf:%u bytesLeftToSend non-zero"), i));
TRC_ASSERT((_TD.priSndBufs[i].pDataLeftToSend == NULL),
(TB, _T("Buf:%u pDataLeftToSend non-null"), i));
// That's all we need to do so just quit.
DC_QUIT;
}
}
// We failed to find a free buffer - flag this internal error by
// tracing out the entire buffer structure and then aborting.
TD_TRACE_SENDINFO(TRC_LEVEL_ERR);
TRC_ABORT((TB, _T("Failed to find a free buffer (req dataLength:%u)"),
dataLength));
}
else {
TRC_NRM((TB, _T("Not connected therefore fail get buffer call")));
}
DC_EXIT_POINT:
DC_END_FN();
return(rc);
} /* TD_GetPrivateBuffer */
/****************************************************************************/
/* Name: TD_SendBuffer */
/* */
/* Purpose: Sends a buffer. The buffer is added to the end of the */
/* pending queue and all data on the pending queue is then */
/* sent. */
/* */
/* Params: IN pData - pointer to the start of the data. */
/* IN dataLength - amount of the buffer used. */
/* IN bufHandle - handle to a buffer. */
/****************************************************************************/
DCVOID DCAPI CTD::TD_SendBuffer(PDCUINT8 pData,
DCUINT dataLength,
TD_BUFHND bufHandle)
{
PTD_SNDBUF_INFO pNext;
PTD_SNDBUF_INFO pHandle = (PTD_SNDBUF_INFO) bufHandle;
DC_BEGIN_FN("TD_SendBuffer");
// Trace out the function parameters.
TRC_DBG((TB, _T("bufHandle:%p dataLength:%u pData:%p"), bufHandle,
dataLength, pData));
// Check that the handle is valid.
TRC_ASSERT((((pHandle >= &_TD.pubSndBufs[0]) &&
(pHandle <= &_TD.pubSndBufs[TD_SNDBUF_PUBNUM - 1])) ||
((pHandle >= &_TD.priSndBufs[0]) &&
(pHandle <= &_TD.priSndBufs[TD_SNDBUF_PRINUM - 1]))),
(TB, _T("Invalid buffer handle:%p"), bufHandle));
// Verify buffer contents.
TRC_ASSERT((0 == pHandle->bytesLeftToSend),
(TB, _T("pHandle->bytesLeftToSend non-zero (pHandle:%p)"), pHandle));
TRC_ASSERT((NULL == pHandle->pDataLeftToSend),
(TB, _T("pHandle->pDataLeftToSend non NULL (pHandle:%p)"), pHandle));
TRC_ASSERT((NULL != pHandle->pBuffer),
(TB, _T("pHandle->pBuffer is NULL (pHandle:%p)"), pHandle));
TRC_ASSERT((NULL == pHandle->pNext),
(TB, _T("pHandle->pNext (pHandle:%p) non NULL"), pHandle));
TRC_ASSERT((pHandle->inUse), (TB, _T("pHandle %p is not in-use"), pHandle));
// Check that pData lies within the buffer and pData+dataLength does not
// overrun the end.
TRC_ASSERT(((pData >= pHandle->pBuffer) &&
(pData < (pHandle->pBuffer + pHandle->size))),
(TB, _T("pData lies outwith range")));
TRC_ASSERT(((pData + dataLength) <= (pHandle->pBuffer + pHandle->size)),
(TB, _T("pData + dataLength over the end of the buffer")));
//
// Update the fields in the buffer information structure and add to the
// pending buffer queue.
//
pHandle->pDataLeftToSend = pData;
pHandle->bytesLeftToSend = dataLength;
if (NULL == _TD.pFQBuf) {
TRC_DBG((TB, _T("Inserted buffer:%p at queue head"), pHandle));
_TD.pFQBuf = pHandle;
}
else {
// OK - the queue is not empty. We need to scan through the queue
// looking for the first empty slot to insert this buffer in at.
pNext = _TD.pFQBuf;
while (NULL != pNext->pNext)
pNext = pNext->pNext;
// Update the next field of the this buffer information structure.
pNext->pNext = pHandle;
TRC_DBG((TB, _T("Inserted buffer:%p"), pHandle));
}
// Finally attempt to flush the send queue.
TDFlushSendQueue(0);
DC_END_FN();
} /* TD_SendBuffer */
/****************************************************************************/
/* Name: TD_FreeBuffer */
/* */
/* Purpose: Frees the passed buffer. */
/****************************************************************************/
DCVOID DCAPI CTD::TD_FreeBuffer(TD_BUFHND bufHandle)
{
PTD_SNDBUF_INFO pHandle = (PTD_SNDBUF_INFO) bufHandle;
DC_BEGIN_FN("TD_FreeBuffer");
// Trace out the function parameters.
TRC_DBG((TB, _T("bufHandle:%p"), bufHandle));
// Check that the handle is valid.
TRC_ASSERT((((pHandle >= &_TD.pubSndBufs[0]) &&
(pHandle <= &_TD.pubSndBufs[TD_SNDBUF_PUBNUM - 1])) ||
((pHandle >= &_TD.priSndBufs[0]) &&
(pHandle <= &_TD.priSndBufs[TD_SNDBUF_PRINUM - 1]))),
(TB, _T("Invalid buffer handle:%p"), bufHandle));
// Verify the buffer contents. InUse does not matter, we can legitimately
// free a non-in-use buffer.
TRC_ASSERT((0 == pHandle->bytesLeftToSend),
(TB, _T("pHandle->bytesLeftToSend non-zero (pHandle:%p)"), pHandle));
TRC_ASSERT((NULL == pHandle->pDataLeftToSend),
(TB, _T("pHandle->pDataLeftToSend non NULL (pHandle:%p)"), pHandle));
TRC_ASSERT((NULL != pHandle->pBuffer),
(TB, _T("pHandle->pBuffer is NULL (pHandle:%p)"), pHandle));
TRC_ASSERT((NULL == pHandle->pNext),
(TB, _T("pHandle->pNext (pHandle:%p) non NULL"), pHandle));
// Free the buffer.
pHandle->inUse = FALSE;
// Update the performance counter.
PRF_INC_COUNTER(PERF_PKTS_FREED);
DC_END_FN();
} /* TD_FreeBuffer */
#ifdef DC_DEBUG
/****************************************************************************/
/* Name: TD_SetBufferOwner */
/* */
/* Purpose: Note the owner of a TD buffer */
/* */
/* Params: bufHandle - handle to the buffer */
/* pOwner - name of the 'owner' */
/****************************************************************************/
DCVOID DCAPI CTD::TD_SetBufferOwner(TD_BUFHND bufHandle, PDCTCHAR pOwner)
{
PTD_SNDBUF_INFO pHandle = (PTD_SNDBUF_INFO) bufHandle;
DC_BEGIN_FN("TD_SetBufferOwner");
/************************************************************************/
/* Trace out the function parameters. */
/************************************************************************/
TRC_DBG((TB, _T("bufHandle:%p owner %s"), bufHandle, pOwner));
/************************************************************************/
/* Check that the handle is valid. */
/************************************************************************/
TRC_ASSERT((((pHandle >= &_TD.pubSndBufs[0]) &&
(pHandle <= &_TD.pubSndBufs[TD_SNDBUF_PUBNUM - 1])) ||
((pHandle >= &_TD.priSndBufs[0]) &&
(pHandle <= &_TD.priSndBufs[TD_SNDBUF_PRINUM - 1]))),
(TB, _T("Invalid buffer handle:%p"), bufHandle));
/************************************************************************/
/* Save the owner */
/************************************************************************/
pHandle->pOwner = pOwner;
DC_END_FN();
} /* TD_SetBufferOwner */
#endif/* DC_DEBUG */
|
; A107891: a(n) = (n+1)*(n+2)^2*(n+3)^2*(n+4)*(3n^2 + 15n + 20)/2880.
; 1,19,155,805,3136,9996,27468,67320,150645,313027,611611,1134497,2012920,3436720,5673648,9093096,14194881,21643755,32310355,47319349,68105576,96479020,134699500,185562000,252493605,339663051,452103939,595852705,778102480,1007374016,1293704896,1648858288,2086552545,2622712995,3275747307,4066845861,5020308592,6163899820,7529232620,9152184328,11073344821,13338499251,15999146955,19113058305,22744871304,26966729776,31858965040,37510823000,44021238625,51499659835,60066922851,69856181109,81013889880,93700848780,108093304396,124384115296,142783981733,163522742395,186850740595,213040262337,242387048736,275211885312,311862270720,352714167520,398173837633,448679765171,504704669371,566757610405,635386190880,711178855884,794767294476,886828945560,988089611125,1099326179875,1221369464315,1355107154401,1501486890904,1661519461680,1836282124080,2026922056776,2234659944321,2460793697803,2706702314995,2973849883445,3263789729992,3578168720236,3918731711532,4287326163120,4685906907045,5116541083563,5581413244771,6082830630241,6623228618480,7205176358080,7831382582464,8504701612176,9228139548705,10004860663875,10838193988875,11731640107045,12688878154576,13713773033324,14810382839980,15982966515880,17235991721781,18574142941971,20002329822123,21525695745345,23149626650920,24879760100272,26721994594736,28682499149752,30767723130145,32984406351195,35339589450243,37840624533621,40495186103736,43311282271180,46297266256780,49461848188544,52814107198501,56363503824475,60119892721875,64093535690625,68295115022400,72735747173376,77426996767744,82380890937280,87609934002305,93127122499411,98945960561371,105080475654693,111545234680320,118355360443020,125526548495052,133075084359736,141017861140597,149372397521795,158156856165595,167390062512673,177091523991096,187281449639856,197980770152880,209211158349480,220995050077249,233355665553451,246317031150995,259904001635125,274142282857000,289058454910380,304679995757676,321035305331664,338153730119205,356065588233355,374802194980291,394395888927521,414880058479888,436289168969920,458658790269120,482025624926832,506427536843361,531903580484067,558494030641195,586240412750245,615185533767728,645373513617196,676849817210476,709661287051080,743856176426805,779484183198579,816596484192651,855245770203265,895486281613000,937373844638000,980965908205360,1026321581469976,1073501671978209,1122568724485755,1173587060437155,1226622818114421,1281743993462296,1339020481597708,1398524119011020,1460328726466720,1524510152611237,1591146318295611,1660317261620787,1732105183713345,1806594495239520,1883871863665408,1964026261271296,2047149013928096,2133333850643905,2222676953888755,2315277010705659,2411235264616101,2510655568328160,2613644437255500,2720311103855500,2830767572794840,2945128676950901,3063512134257379,3186038605402555,3312831752388705,3444018297961176,3579728085915696,3720094142292528,3865252737466120,4015343449138945,4170509226248267,4330896453794611,4496655018600757,4667938376010120,4844903617533420,5027711539452588,5216526712390896,5411517551858341,5612856389781355,5820719547025955,6035287406923489,6256744489808176,6485279528575680,6721085545272000,6964359928722000,7215304513206945,7474125658200451,7741034329172299,8016246179469605,8299981633284880,8592465969720556,8893929407959596,9204607193551848
add $0,1
lpb $0
mov $2,$0
sub $2,1
cal $2,114239 ; a(n) = (n+1)(n+2)^3*(n+3)(n^2 + 4n + 5)/120.
sub $0,1
add $1,$2
lpe
|
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2020, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
// THE POSSIBILITY OF SUCH DAMAGE.
//
//----------------------------------------------------------------------------
#include "tsAbstractAudioVideoAttributes.h"
TSDUCK_SOURCE;
ts::AbstractAudioVideoAttributes::AbstractAudioVideoAttributes() :
_is_valid(false)
{
}
ts::AbstractAudioVideoAttributes::~AbstractAudioVideoAttributes()
{
}
|
.text
.global _start
_start:
mov $5, %ah
mov $5, %al
mov $5, %ax
mov $5, %eax
mov $5, %rax
int $0x80
|
; unsigned char esx_f_close(unsigned char handle)
SECTION code_esxdos
PUBLIC esx_f_close
EXTERN asm_esx_f_close
defc esx_f_close = asm_esx_f_close
|
Route18Script:
call EnableAutoTextBoxDrawing
ld hl, Route18TrainerHeaders
ld de, Route18ScriptPointers
ld a, [wRoute18CurScript]
call ExecuteCurMapScriptInTable
ld [wRoute18CurScript], a
ret
Route18ScriptPointers:
dw CheckFightingMapTrainers
dw DisplayEnemyTrainerTextAndStartBattle
dw EndTrainerBattle
Route18TextPointers:
dw Route18Text1
dw Route18Text2
dw Route18Text3
dw Route18Text4
dw Route18Text5
Route18TrainerHeaders:
Route18TrainerHeader0:
dbEventFlagBit EVENT_BEAT_ROUTE_18_TRAINER_0
db ($3 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_ROUTE_18_TRAINER_0
dw Route18BattleText1 ; TextBeforeBattle
dw Route18AfterBattleText1 ; TextAfterBattle
dw Route18EndBattleText1 ; TextEndBattle
dw Route18EndBattleText1 ; TextEndBattle
Route18TrainerHeader1:
dbEventFlagBit EVENT_BEAT_ROUTE_18_TRAINER_1
db ($3 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_ROUTE_18_TRAINER_1
dw Route18BattleText2 ; TextBeforeBattle
dw Route18AfterBattleText2 ; TextAfterBattle
dw Route18EndBattleText2 ; TextEndBattle
dw Route18EndBattleText2 ; TextEndBattle
Route18TrainerHeader2:
dbEventFlagBit EVENT_BEAT_ROUTE_18_TRAINER_2
db ($4 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_ROUTE_18_TRAINER_2
dw Route18BattleText3 ; TextBeforeBattle
dw Route18AfterBattleText3 ; TextAfterBattle
dw Route18EndBattleText3 ; TextEndBattle
dw Route18EndBattleText3 ; TextEndBattle
db $ff
Route18Text1:
TX_ASM
ld hl, Route18TrainerHeader0
call TalkToTrainer
jp TextScriptEnd
Route18BattleText1:
TX_FAR _Route18BattleText1
db "@"
Route18EndBattleText1:
TX_FAR _Route18EndBattleText1
db "@"
Route18AfterBattleText1:
TX_FAR _Route18AfterBattleText1
db "@"
Route18Text2:
TX_ASM
ld hl, Route18TrainerHeader1
call TalkToTrainer
jp TextScriptEnd
Route18BattleText2:
TX_FAR _Route18BattleText2
db "@"
Route18EndBattleText2:
TX_FAR _Route18EndBattleText2
db "@"
Route18AfterBattleText2:
TX_FAR _Route18AfterBattleText2
db "@"
Route18Text3:
TX_ASM
ld hl, Route18TrainerHeader2
call TalkToTrainer
jp TextScriptEnd
Route18BattleText3:
TX_FAR _Route18BattleText3
db "@"
Route18EndBattleText3:
TX_FAR _Route18EndBattleText3
db "@"
Route18AfterBattleText3:
TX_FAR _Route18AfterBattleText3
db "@"
Route18Text4:
TX_FAR _Route18Text4
db "@"
Route18Text5:
TX_FAR _Route18Text5
db "@"
; 59b64
|
; A008611: a(n) = a(n-3) + 1, with a(0)=a(2)=1, a(1)=0.
; 1,0,1,2,1,2,3,2,3,4,3,4,5,4,5,6,5,6,7,6,7,8,7,8,9,8,9,10,9,10,11,10,11,12,11,12,13,12,13,14,13,14,15,14,15,16,15,16,17,16,17,18,17,18,19,18,19,20,19,20,21,20,21,22,21,22,23,22,23,24,23,24,25,24,25,26,25,26,27,26,27,28,27,28,29,28,29,30,29,30,31,30,31,32,31,32,33,32,33,34,33,34,35,34,35,36,35,36,37,36,37,38,37,38,39,38,39,40,39,40,41,40,41,42,41,42,43,42,43,44,43,44,45,44,45,46,45,46,47,46,47,48,47,48,49,48,49,50,49,50,51,50,51,52,51,52,53,52,53,54,53,54,55,54,55,56,55,56,57,56,57,58,57,58,59,58,59,60,59,60,61,60,61,62,61,62,63,62,63,64,63,64,65,64,65,66,65,66,67,66,67,68,67,68,69,68,69,70,69,70,71,70,71,72,71,72,73,72,73,74,73,74,75,74,75,76,75,76,77,76,77,78,77,78,79,78,79,80,79,80,81,80,81,82,81,82,83,82,83,84
mov $2,-3
gcd $2,$0
add $0,$2
mov $1,$0
div $1,3
|
.nds
.relativeinclude on
.erroronwarning on
.open "ftc/overlay9_27", 022E01A0h
.org 0x022E01A0
push r4, r5, r14
; Set the game state to 00 (loading a save file).
mov r0, 0h
ldr r4, =020F6284h
str r0, [r4]
; Load the save file.
mov r0, 0h ; Save file 0.
bl 02042FA4h
ldr r4, =021119A0h
; Set the area, sector, and room indexes.
mov r0, 01h
strb r0, [r4, 0Ah] ; Area index, 021119AA
mov r0, 02h
strb r0, [r4, 0Bh] ; Sector index, 021119AB
mov r0, 07h
strb r0, [r4, 0Ch] ; Room index, 021119AC
; Next set the x,y position in the room (default is 80,60).
; The reason for the extra 1 subpixel is so the assembler doesn't optimize these ldr statements into mov statements. If it did that then DSVEdit couldn't change the position at runtime.
ldr r0, =80001h
str r0, [r4, 1Ch] ; X pos, 021119BC
ldr r0, =60001h
str r0, [r4, 20h] ; Y pos, 021119C0
mov r0, 0h
pop r4, r5, r15
.pool
.close
|
;
; ANSI Video handling for the Robotron Z1013
;
; BEL - chr(7) Beep it out
;
;
; Stefano Bodrato - Aug 2016
;
;
; $Id: f_ansi_bel.asm,v 1.1 2016-08-05 07:04:10 stefano Exp $
;
SECTION code_clib
PUBLIC ansi_BEL
; No sound, for now!
.ansi_BEL
ret
|
; uint in_KeyPressed(uint scancode)
SECTION code_clib
PUBLIC in_KeyPressed
PUBLIC _in_KeyPressed
EXTERN in_keytranstbl
; Determines if a key is pressed using the scan code
; returned by in_LookupKey.
; enter : l = scan row, bit 7 = control, bit 6 = shift
; h = key mask
; exit : carry = key is pressed & HL = 1
; no carry = key not pressed & HL = 0
; used : AF,BC,HL
; write to ppi1 porta with key row (port 0xd0)
; Read from ppi0 portb with value (including shift/ctrl keys) (port 0xd1)
; write to port c (d2) read from port c (d2) Rows 8-11
.in_KeyPressed
._in_KeyPressed
ld a,l
and 15
out ($82),a
in a,($81)
cpl
and h
jp nz,check_modifiers
nokey:
ld hl,0
and a
ret
check_modifiers:
; Now we need to check for control + shift
; Grab shift keys
ld a,6
out ($82),a
ld a,($81)
cpl
and @11000000
ld e,a ;Save value
ld a,l
rlca
rlca
and @00000011
cp e
jp nz,nokey
ld hl,1
scf
ret
|
; A273405: Number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 673", based on the 5-celled von Neumann neighborhood.
; 1,4,21,44,77,116,165,220,285,356,437,524,621,724,837,956,1085,1220,1365,1516,1677,1844,2021,2204,2397,2596,2805,3020,3245,3476,3717,3964,4221,4484,4757,5036,5325,5620,5925,6236,6557,6884,7221,7564,7917,8276,8645,9020,9405,9796,10197,10604,11021,11444,11877,12316,12765,13220,13685,14156,14637,15124,15621,16124,16637,17156,17685,18220,18765,19316,19877,20444,21021,21604,22197,22796,23405,24020,24645,25276,25917,26564,27221,27884,28557,29236,29925,30620,31325,32036,32757,33484,34221,34964,35717
lpb $0
sub $0,1
mov $2,$0
max $2,0
seq $2,273407 ; First differences of number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 673", based on the 5-celled von Neumann neighborhood.
add $1,$2
lpe
add $1,1
mov $0,$1
|
; A130692: a(n) is the smallest number m such that the sum of the digits of n+m is n.
; 0,0,0,0,0,0,0,0,0,9,18,27,36,45,54,63,72,81,180,279,378,477,576,675,774,873,972,1971,2970,3969,4968,5967,6966,7965,8964,9963,19962,29961,39960,49959,59958,69957,79956,89955,99954,199953,299952,399951
mov $2,$0
mov $3,$0
lpb $2,1
mov $0,$3
sub $2,1
sub $0,$2
div $0,9
mov $4,10
pow $4,$0
fac $5
sub $4,$5
add $1,$4
lpe
|
//Program: Add R1 and R2, store in R3
@R1
D = M
@R2
D = D + M
@R3
M = D
(:End)
@:End
0;JMP |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2015 Intel Corporation All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
; are met:
; * Redistributions of source code must retain the above copyright
; notice, this list of conditions and the following disclaimer.
; * Redistributions in binary form must reproduce the above copyright
; notice, this list of conditions and the following disclaimer in
; the documentation and/or other materials provided with the
; distribution.
; * Neither the name of Intel Corporation nor the names of its
; contributors may be used to endorse or promote products derived
; from this software without specific prior written permission.
;
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
; "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
; A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
; OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
; LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
; DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
; THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; gf_6vect_mad_avx2(len, vec, vec_i, mul_array, src, dest);
;;;
%include "reg_sizes.asm"
%define PS 8
%ifidn __OUTPUT_FORMAT__, win64
%define arg0 rcx
%define arg0.w ecx
%define arg1 rdx
%define arg2 r8
%define arg3 r9
%define arg4 r12
%define arg5 r15
%define tmp r11
%define tmp.w r11d
%define tmp.b r11b
%define tmp2 r10
%define tmp3 r13
%define return rax
%define return.w eax
%define stack_size 16*10 + 3*8
%define arg(x) [rsp + stack_size + PS + PS*x]
%define func(x) proc_frame x
%macro FUNC_SAVE 0
sub rsp, stack_size
movdqa [rsp+16*0],xmm6
movdqa [rsp+16*1],xmm7
movdqa [rsp+16*2],xmm8
movdqa [rsp+16*3],xmm9
movdqa [rsp+16*4],xmm10
movdqa [rsp+16*5],xmm11
movdqa [rsp+16*6],xmm12
movdqa [rsp+16*7],xmm13
movdqa [rsp+16*8],xmm14
movdqa [rsp+16*9],xmm15
save_reg r12, 10*16 + 0*8
save_reg r13, 10*16 + 1*8
save_reg r15, 10*16 + 2*8
end_prolog
mov arg4, arg(4)
mov arg5, arg(5)
%endmacro
%macro FUNC_RESTORE 0
movdqa xmm6, [rsp+16*0]
movdqa xmm7, [rsp+16*1]
movdqa xmm8, [rsp+16*2]
movdqa xmm9, [rsp+16*3]
movdqa xmm10, [rsp+16*4]
movdqa xmm11, [rsp+16*5]
movdqa xmm12, [rsp+16*6]
movdqa xmm13, [rsp+16*7]
movdqa xmm14, [rsp+16*8]
movdqa xmm15, [rsp+16*9]
mov r12, [rsp + 10*16 + 0*8]
mov r13, [rsp + 10*16 + 1*8]
mov r15, [rsp + 10*16 + 2*8]
add rsp, stack_size
%endmacro
%elifidn __OUTPUT_FORMAT__, elf64
%define arg0 rdi
%define arg0.w edi
%define arg1 rsi
%define arg2 rdx
%define arg3 rcx
%define arg4 r8
%define arg5 r9
%define tmp r11
%define tmp.w r11d
%define tmp.b r11b
%define tmp2 r10
%define tmp3 r12
%define return rax
%define return.w eax
%define func(x) x:
%macro FUNC_SAVE 0
push r12
%endmacro
%macro FUNC_RESTORE 0
pop r12
%endmacro
%endif
;;; gf_6vect_mad_avx2(len, vec, vec_i, mul_array, src, dest)
%define len arg0
%define len.w arg0.w
%define vec arg1
%define vec_i arg2
%define mul_array arg3
%define src arg4
%define dest1 arg5
%define pos return
%define pos.w return.w
%define dest2 tmp3
%define dest3 tmp2
%define dest4 mul_array
%define dest5 vec
%define dest6 vec_i
%ifndef EC_ALIGNED_ADDR
;;; Use Un-aligned load/store
%define XLDR vmovdqu
%define XSTR vmovdqu
%else
;;; Use Non-temporal load/stor
%ifdef NO_NT_LDST
%define XLDR vmovdqa
%define XSTR vmovdqa
%else
%define XLDR vmovntdqa
%define XSTR vmovntdq
%endif
%endif
default rel
[bits 64]
section .text
%define xmask0f ymm15
%define xmask0fx xmm15
%define xgft1_lo ymm14
%define xgft2_lo ymm13
%define xgft3_lo ymm12
%define xgft4_lo ymm11
%define xgft5_lo ymm10
%define xgft6_lo ymm9
%define x0 ymm0
%define xtmpa ymm1
%define xtmpl ymm2
%define xtmplx xmm2
%define xtmph ymm3
%define xtmphx xmm3
%define xd1 ymm4
%define xd2 ymm5
%define xd3 ymm6
%define xd4 ymm7
%define xd5 ymm8
%define xd6 xd1
align 16
global gf_6vect_mad_avx2:function
func(gf_6vect_mad_avx2)
FUNC_SAVE
sub len, 32
jl .return_fail
xor pos, pos
mov tmp.b, 0x0f
vpinsrb xmask0fx, xmask0fx, tmp.w, 0
vpbroadcastb xmask0f, xmask0fx ;Construct mask 0x0f0f0f...
sal vec_i, 5 ;Multiply by 32
sal vec, 5 ;Multiply by 32
lea tmp, [mul_array + vec_i]
mov vec_i, vec
mov mul_array, vec
sal vec_i, 1
sal mul_array, 1
add vec_i, vec ;vec_i=vec*96
add mul_array, vec_i ;vec_i=vec*160
vmovdqu xgft1_lo, [tmp] ;Load array Ax{00}, Ax{01}, ..., Ax{0f}
; " Ax{00}, Ax{10}, ..., Ax{f0}
vmovdqu xgft2_lo, [tmp+vec] ;Load array Bx{00}, Bx{01}, ..., Bx{0f}
; " Bx{00}, Bx{10}, ..., Bx{f0}
vmovdqu xgft3_lo, [tmp+2*vec] ;Load array Cx{00}, Cx{01}, ..., Cx{0f}
; " Cx{00}, Cx{10}, ..., Cx{f0}
vmovdqu xgft4_lo, [tmp+vec_i] ;Load array Fx{00}, Fx{01}, ..., Fx{0f}
; " Fx{00}, Fx{10}, ..., Fx{f0}
vmovdqu xgft5_lo, [tmp+4*vec] ;Load array Ex{00}, Ex{01}, ..., Ex{0f}
; " Ex{00}, Ex{10}, ..., Ex{f0}
vmovdqu xgft6_lo, [tmp+mul_array] ;Load array Dx{00}, Dx{01}, ..., Dx{0f}
; " Dx{00}, Dx{10}, ..., Dx{f0}
mov dest2, [dest1+PS] ; reuse tmp3
mov dest3, [dest1+2*PS] ; reuse tmp2
mov dest4, [dest1+3*PS] ; reuse mul_array
mov dest5, [dest1+4*PS] ; reuse vec
mov dest6, [dest1+5*PS] ; reuse vec_i
mov dest1, [dest1]
.loop32:
XLDR x0, [src+pos] ;Get next source vector
XLDR xd1, [dest1+pos] ;Get next dest vector
XLDR xd2, [dest2+pos] ;Get next dest vector
XLDR xd3, [dest3+pos] ;Get next dest vector
XLDR xd4, [dest4+pos] ;Get next dest vector
XLDR xd5, [dest5+pos] ;Get next dest vector
vpand xtmpl, x0, xmask0f ;Mask low src nibble in bits 4-0
vpsraw x0, x0, 4 ;Shift to put high nibble into bits 4-0
vpand x0, x0, xmask0f ;Mask high src nibble in bits 4-0
vperm2i128 xtmpa, xtmpl, x0, 0x30 ;swap xtmpa from 1lo|2lo to 1lo|2hi
vperm2i128 x0, xtmpl, x0, 0x12 ;swap x0 from 1hi|2hi to 1hi|2lo
;dest1
vperm2i128 xtmph, xgft1_lo, xgft1_lo, 0x01 ; swapped to hi | lo
vpshufb xtmph, xtmph, x0 ;Lookup mul table of high nibble
vpshufb xtmpl, xgft1_lo, xtmpa ;Lookup mul table of low nibble
vpxor xtmph, xtmph, xtmpl ;GF add high and low partials
vpxor xd1, xd1, xtmph ;xd1 += partial
XSTR [dest1+pos], xd1 ;Store result into dest1
;dest2
vperm2i128 xtmph, xgft2_lo, xgft2_lo, 0x01 ; swapped to hi | lo
vpshufb xtmph, xtmph, x0 ;Lookup mul table of high nibble
vpshufb xtmpl, xgft2_lo, xtmpa ;Lookup mul table of low nibble
vpxor xtmph, xtmph, xtmpl ;GF add high and low partials
vpxor xd2, xd2, xtmph ;xd2 += partial
;dest3
vperm2i128 xtmph, xgft3_lo, xgft3_lo, 0x01 ; swapped to hi | lo
vpshufb xtmph, xtmph, x0 ;Lookup mul table of high nibble
vpshufb xtmpl, xgft3_lo, xtmpa ;Lookup mul table of low nibble
vpxor xtmph, xtmph, xtmpl ;GF add high and low partials
vpxor xd3, xd3, xtmph ;xd3 += partial
XLDR xd6, [dest6+pos] ;reuse xd1. Get next dest vector
;dest4
vperm2i128 xtmph, xgft4_lo, xgft4_lo, 0x01 ; swapped to hi | lo
vpshufb xtmph, xtmph, x0 ;Lookup mul table of high nibble
vpshufb xtmpl, xgft4_lo, xtmpa ;Lookup mul table of low nibble
vpxor xtmph, xtmph, xtmpl ;GF add high and low partials
vpxor xd4, xd4, xtmph ;xd4 += partial
;dest5
vperm2i128 xtmph, xgft5_lo, xgft5_lo, 0x01 ; swapped to hi | lo
vpshufb xtmph, xtmph, x0 ;Lookup mul table of high nibble
vpshufb xtmpl, xgft5_lo, xtmpa ;Lookup mul table of low nibble
vpxor xtmph, xtmph, xtmpl ;GF add high and low partials
vpxor xd5, xd5, xtmph ;xd5 += partial
;dest6
vperm2i128 xtmph, xgft6_lo, xgft6_lo, 0x01 ; swapped to hi | lo
vpshufb xtmph, xtmph, x0 ;Lookup mul table of high nibble
vpshufb xtmpl, xgft6_lo, xtmpa ;Lookup mul table of low nibble
vpxor xtmph, xtmph, xtmpl ;GF add high and low partials
vpxor xd6, xd6, xtmph ;xd6 += partial
XSTR [dest2+pos], xd2 ;Store result into dest2
XSTR [dest3+pos], xd3 ;Store result into dest3
XSTR [dest4+pos], xd4 ;Store result into dest4
XSTR [dest5+pos], xd5 ;Store result into dest5
XSTR [dest6+pos], xd6 ;Store result into dest6
add pos, 32 ;Loop on 32 bytes at a time
cmp pos, len
jle .loop32
lea tmp, [len + 32]
cmp pos, tmp
je .return_pass
.lessthan32:
;; Tail len
;; Do one more overlap pass
mov tmp.b, 0x1f
vpinsrb xtmphx, xtmphx, tmp.w, 0
vpbroadcastb xtmph, xtmphx ;Construct mask 0x1f1f1f...
mov tmp, len ;Overlapped offset length-32
XLDR x0, [src+tmp] ;Get next source vector
XLDR xd1, [dest1+tmp] ;Get next dest vector
XLDR xd2, [dest2+tmp] ;Get next dest vector
XLDR xd3, [dest3+tmp] ;Get next dest vector
XLDR xd4, [dest4+tmp] ;Get next dest vector
XLDR xd5, [dest5+tmp] ;Get next dest vector
sub len, pos
vpinsrb xtmplx, xtmplx, len.w, 15
vinserti128 xtmpl, xtmpl, xtmplx, 1 ;swapped to xtmplx | xtmplx
vpshufb xtmpl, xtmpl, xtmph ;Broadcast len to all bytes. xtmph=0x1f1f1f...
vpcmpgtb xtmpl, xtmpl, [constip32]
vpand xtmph, x0, xmask0f ;Mask low src nibble in bits 4-0
vpsraw x0, x0, 4 ;Shift to put high nibble into bits 4-0
vpand x0, x0, xmask0f ;Mask high src nibble in bits 4-0
vperm2i128 xtmpa, xtmph, x0, 0x30 ;swap xtmpa from 1lo|2lo to 1lo|2hi
vperm2i128 x0, xtmph, x0, 0x12 ;swap x0 from 1hi|2hi to 1hi|2lo
;dest1
vperm2i128 xtmph, xgft1_lo, xgft1_lo, 0x01 ; swapped to hi | lo
vpshufb xtmph, xtmph, x0 ;Lookup mul table of high nibble
vpshufb xgft1_lo, xgft1_lo, xtmpa ;Lookup mul table of low nibble
vpxor xtmph, xtmph, xgft1_lo ;GF add high and low partials
vpand xtmph, xtmph, xtmpl
vpxor xd1, xd1, xtmph ;xd1 += partial
XSTR [dest1+tmp], xd1 ;Store result into dest1
;dest2
vperm2i128 xtmph, xgft2_lo, xgft2_lo, 0x01 ; swapped to hi | lo
vpshufb xtmph, xtmph, x0 ;Lookup mul table of high nibble
vpshufb xgft2_lo, xgft2_lo, xtmpa ;Lookup mul table of low nibble
vpxor xtmph, xtmph, xgft2_lo ;GF add high and low partials
vpand xtmph, xtmph, xtmpl
vpxor xd2, xd2, xtmph ;xd2 += partial
;dest3
vperm2i128 xtmph, xgft3_lo, xgft3_lo, 0x01 ; swapped to hi | lo
vpshufb xtmph, xtmph, x0 ;Lookup mul table of high nibble
vpshufb xgft3_lo, xgft3_lo, xtmpa ;Lookup mul table of low nibble
vpxor xtmph, xtmph, xgft3_lo ;GF add high and low partials
vpand xtmph, xtmph, xtmpl
vpxor xd3, xd3, xtmph ;xd3 += partial
XLDR xd6, [dest6+tmp] ;reuse xd1. Get next dest vector
;dest4
vperm2i128 xtmph, xgft4_lo, xgft4_lo, 0x01 ; swapped to hi | lo
vpshufb xtmph, xtmph, x0 ;Lookup mul table of high nibble
vpshufb xgft4_lo, xgft4_lo, xtmpa ;Lookup mul table of low nibble
vpxor xtmph, xtmph, xgft4_lo ;GF add high and low partials
vpand xtmph, xtmph, xtmpl
vpxor xd4, xd4, xtmph ;xd4 += partial
;dest5
vperm2i128 xtmph, xgft5_lo, xgft5_lo, 0x01 ; swapped to hi | lo
vpshufb xtmph, xtmph, x0 ;Lookup mul table of high nibble
vpshufb xgft5_lo, xgft5_lo, xtmpa ;Lookup mul table of low nibble
vpxor xtmph, xtmph, xgft5_lo ;GF add high and low partials
vpand xtmph, xtmph, xtmpl
vpxor xd5, xd5, xtmph ;xd5 += partial
;dest6
vperm2i128 xtmph, xgft6_lo, xgft6_lo, 0x01 ; swapped to hi | lo
vpshufb xtmph, xtmph, x0 ;Lookup mul table of high nibble
vpshufb xgft6_lo, xgft6_lo, xtmpa ;Lookup mul table of low nibble
vpxor xtmph, xtmph, xgft6_lo ;GF add high and low partials
vpand xtmph, xtmph, xtmpl
vpxor xd6, xd6, xtmph ;xd6 += partial
XSTR [dest2+tmp], xd2 ;Store result into dest2
XSTR [dest3+tmp], xd3 ;Store result into dest3
XSTR [dest4+tmp], xd4 ;Store result into dest4
XSTR [dest5+tmp], xd5 ;Store result into dest5
XSTR [dest6+tmp], xd6 ;Store result into dest6
.return_pass:
FUNC_RESTORE
mov return, 0
ret
.return_fail:
FUNC_RESTORE
mov return, 1
ret
endproc_frame
section .data
align 32
constip32:
dq 0xf8f9fafbfcfdfeff, 0xf0f1f2f3f4f5f6f7
dq 0xe8e9eaebecedeeef, 0xe0e1e2e3e4e5e6e7
;;; func core, ver, snum
slversion gf_6vect_mad_avx2, 04, 01, 0211
|
; ColecoVision/Sega Controller Example
; Prints status of all controller buttons
;
; Copyright 2018 J.B. Langston
;
; Permission is hereby granted, free of charge, to any person obtaining a
; copy of this software and associated documentation files (the "Software"),
; to deal in the Software without restriction, including without limitation
; the rights to use, copy, modify, merge, publish, distribute, sublicense,
; and/or sell copies of the Software, and to permit persons to whom the
; Software is furnished to do so, subject to the following conditions:
;
; The above copyright notice and this permission notice shall be included in
; all copies or substantial portions of the Software.
;
; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
; DEALINGS IN THE SOFTWARE.
ramtop: equ $FFFF
lf: equ $0C
cr: equ $0D
uarts: equ $10
uartd: equ $11
org $100
jp start
include "control.asm"
start:
ld sp, ramtop
loop:
call show_control ; show the buttons pressed on the controller
call space
call show_keypad ; show keypad buttons pressed
call crlf
ld de, $ffff ; wait a while
call delay
jp loop ; do it again
show_control:
ld c, player_1_port ; read joystick for player 1
call read_joystick
ld b, a
ld a, 'U' ; output U if up pressed
bit dir_up, b
call nz, chrout
call z, space
ld a, 'R' ; output R if right pressed
bit dir_right, b
call nz, chrout
call z, space
ld a, 'L' ; output L if left pressed
bit dir_left, b
call nz, chrout
call z, space
ld a, 'D' ; output D if down pressed
bit dir_down, b
call nz, chrout
call z, space
ld a, 'A' ; output A if A pressed
bit btn_a, b
call nz, chrout
call z, space
ld a, 'B' ; output B if B pressed
bit btn_b, b
call nz, chrout
call z, space
ld a, 'C' ; output C if C pressed
bit btn_c, b
call nz, chrout
call z, space
ld a, 'S' ; output S if start pressed
bit btn_start, b
call nz, chrout
call z, space
ret
show_keypad:
ld c, player_1_port ; read keypad for player 1
call read_keypad
cp keypad_none ; exit early if no buttons pressed
ret z
cp keypad_star ; check for star
jp z, show_star
cp keypad_pound ; check for pound
jp z, show_pound
add a, '0' ; get ascii value of number
jp chrout
show_star:
ld a, '*' ; show a *
jp chrout
show_pound:
ld a, '#' ; show a #
jp chrout
crlf:
ld a, cr ; go to new line
call chrout
ld a, lf
jp chrout
space:
ld a, ' ' ; output a space
chrout:
push af ; save char to output
rdylp:
in a, (uarts) ; wait for UART ready
bit 1,a
jr z, rdylp
pop af ; restore char
out (uartd), a ; output it
ret
delay:
dec de ; loop number of times in DE
ld a, d
or e
jp nz, delay
ret |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; SetMem64.Asm
;
; Abstract:
;
; SetMem64 function
;
; Notes:
;
;------------------------------------------------------------------------------
SECTION .text
;------------------------------------------------------------------------------
; VOID *
; InternalMemSetMem64 (
; IN VOID *Buffer,
; IN UINTN Count,
; IN UINT64 Value
; )
;------------------------------------------------------------------------------
global ASM_PFX(InternalMemSetMem64)
ASM_PFX(InternalMemSetMem64):
push edi
mov ecx, [esp + 12]
mov eax, [esp + 16]
mov edx, [esp + 20]
mov edi, [esp + 8]
.0:
mov [edi + ecx*8 - 8], eax
mov [edi + ecx*8 - 4], edx
loop .0
mov eax, edi
pop edi
ret
|
; A047425: Numbers that are congruent to {3, 4, 5, 6} mod 8.
; 3,4,5,6,11,12,13,14,19,20,21,22,27,28,29,30,35,36,37,38,43,44,45,46,51,52,53,54,59,60,61,62,67,68,69,70,75,76,77,78,83,84,85,86,91,92,93,94,99,100,101,102,107,108,109,110,115,116,117,118,123,124
mov $1,$0
div $0,4
mul $0,4
add $1,$0
add $1,3
|
/*
* Copyright (c) 2018 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
// CLASS HEADER
#include <dali/internal/event/common/projection.h>
// INTERNAL INCLUDES
#include <dali/public-api/math/rect.h>
#include <dali/public-api/math/matrix.h>
#include <dali/public-api/math/vector4.h>
#include <dali/public-api/math/vector2.h>
#include <dali/public-api/math/viewport.h>
#include <dali/integration-api/debug.h>
#include <dali/public-api/math/math-utils.h>
namespace Dali
{
namespace Internal
{
bool Unproject( const Vector4& windowPos,
const Matrix& inverseMvp,
float viewportWidth,
float viewportHeight,
Vector4& objectPos )
{
objectPos.x = windowPos.x;
objectPos.y = windowPos.y;
objectPos.z = windowPos.z;
objectPos.w = 1.0f;
objectPos.x = objectPos.x / viewportWidth;
objectPos.y = objectPos.y / viewportHeight;
objectPos.x = objectPos.x * 2.0f - 1.0f;
objectPos.y = objectPos.y * 2.0f - 1.0f;
objectPos.z = objectPos.z * 2.0f - 1.0f;
objectPos = inverseMvp * objectPos;
// In the case where objectPos.w is exactly zero, the unproject fails
if ( EqualsZero( objectPos.w ) )
{
return false;
}
objectPos.x /= objectPos.w;
objectPos.y /= objectPos.w;
objectPos.z /= objectPos.w;
return true;
}
bool UnprojectFull( const Vector4& windowPos,
const Matrix& modelView,
const Matrix& projection,
float viewportWidth,
float viewportHeight,
Vector4& objectPos )
{
Matrix invertedMvp( false ); // Don't initialize.
Matrix::Multiply( invertedMvp, modelView, projection );
if (invertedMvp.Invert())
{
return Unproject( windowPos, invertedMvp, viewportWidth, viewportHeight, objectPos );
}
return false;
}
bool XyPlaneIntersect( const Vector4& pointA, const Vector4& pointB, Vector4& intersect )
{
const Vector4* near = NULL;
const Vector4* far = NULL;
if ( pointA.z > 0.0f && pointB.z < 0.0f )
{
near = &pointA;
far = &pointB;
}
else if ( pointB.z > 0.0f && pointA.z < 0.0f )
{
near = &pointB;
far = &pointA;
}
else
{
return false; // ray does not cross xy plane
}
float dist = near->z / (near->z - far->z);
intersect.x = near->x + (far->x - near->x) * dist;
intersect.y = near->y + (far->y - near->y) * dist;
intersect.z = 0.0f;
return true;
}
bool ProjectFull( const Vector4& position,
const Matrix& modelView,
const Matrix& projection,
float viewportX,
float viewportY,
float viewportWidth,
float viewportHeight,
Vector4& windowPos )
{
bool ok = false;
Matrix Mvp( false ); // Don't initialize.
Matrix::Multiply( Mvp, modelView, projection );
Vector4 p = Mvp * position;
Vector2 depthRange(0,1);
if( !EqualsZero( p.w ) )
{
float div = 1.0f / p.w;
windowPos = Vector4( (1 + p.x * div) * viewportWidth / 2 + viewportX,
(1 - p.y * div) * viewportHeight / 2 + viewportY,
(p.z * div) * (depthRange.y - depthRange.x) + depthRange.x,
div);
ok = true;
}
return ok;
}
} // namespace Internal
} // namespace Dali
|
/**
\file GuiTheme.cpp
\author Morgan McGuire, http://graphics.cs.williams.edu
\created 2008-01-01
\edited 2010-03-04
Copyright 2000-2010, Morgan McGuire
All rights reserved
*/
#include "G3D/platform.h"
#include "GLG3D/GuiTheme.h"
#include "G3D/WeakCache.h"
#include "GLG3D/RenderDevice.h"
#include "G3D/TextInput.h"
#include "G3D/fileutils.h"
#include "G3D/Image3.h"
#include "G3D/Log.h"
#include "G3D/FileSystem.h"
#include "G3D/Any.h"
namespace G3D {
namespace _internal {
Morph::Morph() : active(false) {}
void Morph::morphTo(const Rect2D& startPos, const Rect2D& endPos) {
active = true;
start = startPos;
end = endPos;
// Make the morph approximately constant velocity
const float pixelsPerSecond = 1500;
duration = max((double)0.12, (double)(start.center() - end.center()).length() / pixelsPerSecond);
startTime = System::time();
}
}
static void toGLMatrix(const Matrix4& m, float f[]) {
for (int r = 0; r < 4; ++r) {
for (int c = 0; c < 4; ++c) {
f[r * 4 + c] = m[r][c];
}
}
}
WeakReferenceCountedPointer<GuiTheme> GuiTheme::lastThemeLoaded;
GuiTheme::GuiTheme(const std::string& filename,
const GFont::Ref& fallbackFont,
float fallbackSize,
const Color4& fallbackColor,
const Color4& fallbackOutlineColor) : m_delayedTextCount(0), m_inRendering(false){
alwaysAssertM(FileSystem::exists(filename), "Cannot find " + filename);
BinaryInput b(filename, G3D_LITTLE_ENDIAN, true);
m_textStyle.font = fallbackFont;
m_textStyle.size = fallbackSize;
m_textStyle.color = fallbackColor;
m_textStyle.outlineColor = fallbackOutlineColor;
loadTheme(b);
}
GuiThemeRef GuiTheme::fromFile(
const std::string& filename,
GFont::Ref fallbackFont,
float fallbackSize,
const Color4& fallbackColor,
const Color4& fallbackOutlineColor) {
static WeakCache<std::string, GuiThemeRef> cache;
GuiTheme::Ref instance = cache[filename];
if (instance.isNull()) {
if (fallbackFont.isNull()) {
fallbackFont = GFont::fromFile(System::findDataFile("arial.fnt"));
}
instance = new GuiTheme(filename, fallbackFont, fallbackSize, fallbackColor, fallbackOutlineColor);
cache.set(filename, instance);
}
lastThemeLoaded = instance;
return instance;
}
void GuiTheme::loadTheme(BinaryInput& b) {
std::string f = b.readString32();
(void)f;
debugAssert(f == "G3D Skin File");
float version = b.readFloat32();
(void)version;
debugAssert(fuzzyEq(version, 1.0f));
// Read specification file
std::string coords = b.readString32();
TextInput t(TextInput::FROM_STRING, coords);
// Load theme specification
Any any;
any.deserialize(t);
loadCoords(any);
// Read theme texture
GImage image;
image.decode(b, GImage::TGA);
Texture::Preprocess p;
p.computeMinMaxMean = false;
// Load theme texture
m_texture = Texture::fromGImage(b.getFilename(), image, ImageFormat::RGBA8(), Texture::DIM_2D, Texture::Settings::video(), p);
toGLMatrix(Matrix4(1.0f / m_texture->width(), 0, 0, 0,
0, 1.0f / m_texture->height(), 0, 0,
0, 0, 1, 0,
0, 0, 0, 1),
m_guiTextureMatrix);
}
void GuiTheme::loadCoords(const Any& any) {
float version = any["format"];
(void)version;
debugAssertM(fuzzyEq(version, 1.0), format("Only version 1.0 is supported (version = %f)", version));
m_textStyle.load(any["font"]);
m_disabledTextStyle = m_textStyle;
m_disabledTextStyle.load(any["disabledFont"]);
// Controls (all inherit the default text style and may override)
m_checkBox.textStyle = m_textStyle;
m_checkBox.disabledTextStyle = m_disabledTextStyle;
m_checkBox.load(any["checkBox"]);
m_radioButton.textStyle = m_textStyle;
m_radioButton.disabledTextStyle = m_disabledTextStyle;
m_radioButton.load(any["radioButton"]);
m_button[NORMAL_BUTTON_STYLE].textStyle = m_textStyle;
m_button[NORMAL_BUTTON_STYLE].disabledTextStyle = m_disabledTextStyle;
m_button[NORMAL_BUTTON_STYLE].load(any["button"]);
m_button[TOOL_BUTTON_STYLE].textStyle = m_textStyle;
m_button[TOOL_BUTTON_STYLE].disabledTextStyle = m_disabledTextStyle;
m_button[TOOL_BUTTON_STYLE].load(any["toolButton"]);
m_closeButton.load(any["closeButton"]);
m_osxWindowButtons = (any["windowButtonStyle"] == "osx");
static std::string windowStyleName[WINDOW_STYLE_COUNT] = {"window", "toolWindow", "dialogWindow", "drawer", "menu", "no"};
debugAssert(windowStyleName[WINDOW_STYLE_COUNT - 1] == "no");
// Skip the no-style window
for (int i = 0; i < WINDOW_STYLE_COUNT - 1; ++i) {
m_window[i].textStyle = m_textStyle;
m_window[i].load(any[windowStyleName[i]]);
}
m_hSlider.textStyle = m_textStyle;
m_hSlider.disabledTextStyle = m_disabledTextStyle;
m_hSlider.load(any["horizontalSlider"]);
m_pane[SIMPLE_PANE_STYLE].textStyle = m_textStyle;
m_pane[SIMPLE_PANE_STYLE].disabledTextStyle = m_disabledTextStyle;
m_pane[SIMPLE_PANE_STYLE].load(any["simplePane"]);
m_pane[ORNATE_PANE_STYLE].textStyle = m_textStyle;
m_pane[ORNATE_PANE_STYLE].disabledTextStyle = m_disabledTextStyle;
m_pane[ORNATE_PANE_STYLE].load(any["ornatePane"]);
m_textBox.textStyle = m_textStyle;
m_textBox.disabledTextStyle = m_disabledTextStyle;
m_textBox.load(any["textBox"]);
m_dropDownList.textStyle = m_textStyle;
m_dropDownList.disabledTextStyle = m_disabledTextStyle;
m_dropDownList.load(any["dropDownList"]);
m_canvas.textStyle = m_textStyle;
m_canvas.disabledTextStyle = m_disabledTextStyle;
m_canvas.load(any["canvas"]);
m_selection.load(any["selection"]);
}
void GuiTheme::beginRendering(RenderDevice* rd) {
m_rd = rd;
debugAssert(! m_inRendering);
m_inRendering = true;
rd->push2D();
rd->setBlendFunc(RenderDevice::BLEND_SRC_ALPHA, RenderDevice::BLEND_ONE_MINUS_SRC_ALPHA);
rd->setCullFace(RenderDevice::CULL_NONE);
rd->setAlphaTest(RenderDevice::ALPHA_GREATER, 0);
rd->setColor(Color3::white());
rd->setTexture(TEXTURE_UNIT, m_texture);
rd->setTextureMatrix(TEXTURE_UNIT, m_guiTextureMatrix);
rd->beginPrimitive(PrimitiveType::QUADS);
}
void GuiTheme::beginText() const {
m_rd->endPrimitive();
}
void GuiTheme::endText() const {
glBindTexture(GL_TEXTURE_2D, m_texture->openGLID());
glMatrixMode(GL_TEXTURE);
glLoadMatrix(m_guiTextureMatrix);
glColor3f(1,1,1);
m_rd->beginPrimitive(PrimitiveType::QUADS);
}
void GuiTheme::pauseRendering() {
drawDelayedText();
debugAssert(m_inRendering);
m_rd->endPrimitive();
m_rd->setTexture(TEXTURE_UNIT, NULL);
m_rd->setTextureMatrix(TEXTURE_UNIT, Matrix4::identity());
m_rd->pushState();
}
void GuiTheme::resumeRendering() {
m_rd->popState();
m_rd->setTexture(TEXTURE_UNIT, m_texture);
m_rd->setTextureMatrix(TEXTURE_UNIT, m_guiTextureMatrix);
m_rd->setColor(Color3::white());
m_rd->beginPrimitive(PrimitiveType::QUADS);
}
void GuiTheme::endRendering() {
// Draw any remaining text
drawDelayedText();
debugAssert(m_inRendering);
debugAssertM( m_coordinateFrameStack.size() == 0,
"pushClientRect without matching popClientRect");
m_rd->endPrimitive();
m_rd->pop2D();
m_inRendering = false;
m_rd = NULL;
}
void GuiTheme::drawCheckable
(const Checkable& control, const Rect2D& bounds,
bool enabled, bool focused, bool selected, const GuiText& text) const {
debugAssert(m_inRendering);
control.render(m_rd, bounds, enabled, focused, selected);
if (text.numElements() > 0) {
const TextStyle& style = enabled ? control.textStyle : control.disabledTextStyle;
for (int e = 0; e < text.numElements(); ++e) {
const GuiText::Element& element = text.element(e);
addDelayedText
(element.font(style.font),
element.text(),
Vector2(control.width() + bounds.x0(),
(bounds.y0() + bounds.y1()) / 2) + control.textOffset,
element.size(style.size),
element.color(style.color),
element.outlineColor(style.outlineColor),
GFont::XALIGN_LEFT);
}
}
}
void GuiTheme::addDelayedText
(const GuiText& text,
const GuiTheme::TextStyle& defaults,
const Vector2& position,
GFont::XAlign xalign,
GFont::YAlign yalign) const {
if (text.numElements() == 0) {
return;
}
const GuiText::Element& element = text.element(0);
float size = element.size(defaults.size);
const GFont::Ref& font = element.font(defaults.font);
const Color4& color = element.color(defaults.color);
const Color4& outlineColor = element.outlineColor(defaults.outlineColor);
addDelayedText(font, element.text(), position, size, color, outlineColor, xalign, yalign);
}
void GuiTheme::renderDropDownList
(const Rect2D& initialBounds,
bool enabled,
bool focused,
bool down,
const GuiText& contentText,
const GuiText& text,
float captionWidth) const {
// Dropdown list has a fixed height
// Offset by left_caption_width
const Rect2D& bounds = dropDownListToClickBounds(initialBounds, captionWidth);
m_dropDownList.render(m_rd, bounds, enabled, focused, down);
// Area in which text appears
Rect2D clientArea = Rect2D::xywh(bounds.x0y0() + m_dropDownList.textPad.topLeft,
bounds.wh() - (m_dropDownList.textPad.bottomRight + m_dropDownList.textPad.topLeft));
// Display cropped text
// Draw inside the client area
const_cast<GuiTheme*>(this)->pushClientRect(clientArea);
addDelayedText(contentText, m_dropDownList.textStyle, Vector2(0, clientArea.height() / 2), GFont::XALIGN_LEFT, GFont::YALIGN_CENTER);
const_cast<GuiTheme*>(this)->popClientRect();
addDelayedText(text, m_dropDownList.textStyle,
Vector2(initialBounds.x0(), (initialBounds.y0() + initialBounds.y1()) * 0.5f),
GFont::XALIGN_LEFT);
}
void GuiTheme::renderSelection(const Rect2D& bounds) const {
m_selection.render(m_rd, bounds, Vector2(0, 0));
}
void GuiTheme::renderTextBox
(const Rect2D& fullBounds,
bool enabled,
bool focused,
const GuiText& caption,
float captionWidth,
const GuiText& text,
const GuiText& cursor,
int cursorPosition) const {
const Rect2D& bounds = textBoxToClickBounds(fullBounds, captionWidth);
m_textBox.render(m_rd, bounds, enabled, focused);
alwaysAssertM(text.numElements() < 2, "Text box cannot contain GuiText with more than 1 element");
// Area in which text appears
Rect2D clientArea = Rect2D::xywh(bounds.x0y0() + m_textBox.textPad.topLeft,
bounds.wh() - (m_textBox.textPad.bottomRight + m_textBox.textPad.topLeft));
// Draw inside the client area
const_cast<GuiTheme*>(this)->pushClientRect(clientArea);
std::string beforeCursor;
Vector2 beforeBounds;
float size = m_textBox.contentStyle.size;
GFont::Ref font = m_textBox.contentStyle.font;
Color4 color = m_textBox.contentStyle.color;
Color4 outlineColor = m_textBox.contentStyle.outlineColor;
std::string all;
if (text.numElements() == 1) {
const GuiText::Element& element = text.element(0);
// Compute pixel distance from left edge to cursor position
all = element.text();
beforeCursor = all.substr(0, cursorPosition);
size = element.size(m_textBox.contentStyle.size);
font = element.font(m_textBox.contentStyle.font);
color = element.color(m_textBox.contentStyle.color);
outlineColor = element.outlineColor(m_textBox.contentStyle.outlineColor);
beforeBounds = font->bounds(beforeCursor, size);
}
// Slide the text backwards so that the cursor is visible
float textOffset = -max(0.0f, beforeBounds.x - clientArea.width());
if (! enabled) {
// Dim disabled text color
color.a *= 0.8f;
}
// Draw main text
addDelayedText(font, all, Vector2(textOffset, clientArea.height() / 2), size, color,
outlineColor, GFont::XALIGN_LEFT, GFont::YALIGN_CENTER);
// Draw cursor
if (focused) {
addDelayedText(cursor,
m_textBox.contentStyle,
Vector2(textOffset + beforeBounds.x, clientArea.height() / 2),
GFont::XALIGN_CENTER, GFont::YALIGN_CENTER);
}
const_cast<GuiTheme*>(this)->popClientRect();
addDelayedText(caption, m_textBox.textStyle,
Vector2(fullBounds.x0(), (fullBounds.y0() + fullBounds.y1()) * 0.5f),
GFont::XALIGN_LEFT);
}
Vector2 GuiTheme::bounds(const GuiText& text) const {
if (text.numElements() == 0) {
return Vector2::zero();
}
Vector2 b(0, 0);
// TODO Elements: need to look at each element
const GuiText::Element& element = text.element(0);
const std::string& str = element.text();
// Loop twice, one for normal style and once for disabled style
for (int i = 0; i < 2; ++i) {
const TextStyle& style = (i == 0) ? m_textStyle : m_disabledTextStyle;
const GFont::Ref& font = element.font(style.font);
int size = element.size(style.size);
bool outline = element.outlineColor(style.outlineColor).a > 0;
Vector2 t = font->bounds(str, size);
if (outline) {
t += Vector2(2, 2);
}
b = b.max(t);
}
return b;
}
void GuiTheme::renderCanvas
(const Rect2D& fullBounds,
bool enabled,
bool focused,
const GuiText& caption,
float captionHeight) const {
const Rect2D& bounds = canvasToClickBounds(fullBounds, captionHeight);
m_canvas.render(m_rd, bounds, enabled, focused);
addDelayedText(caption, m_canvas.textStyle, Vector2(fullBounds.x0(), bounds.y0()),
GFont::XALIGN_LEFT, GFont::YALIGN_BOTTOM);
}
void GuiTheme::renderCheckBox(const Rect2D& bounds, bool enabled, bool focused, bool selected,
const GuiText& text) const {
drawCheckable(m_checkBox, bounds, enabled, focused, selected, text);
}
void GuiTheme::renderPane(const Rect2D& fullBounds, const GuiText& caption, PaneStyle paneStyle) const {
// TODO: Caption,
Rect2D paneRenderBounds = fullBounds;
if (! caption.empty()) {
const float pad = paneTopPadding(caption, paneStyle);
paneRenderBounds = Rect2D::xyxy(fullBounds.x0(), fullBounds.y0() + pad, fullBounds.x1(), fullBounds.y1());
addDelayedText(caption, m_pane[paneStyle].textStyle, Vector2(fullBounds.x0(), paneRenderBounds.y0()),
GFont::XALIGN_LEFT, GFont::YALIGN_BOTTOM);
}
if (paneStyle != NO_PANE_STYLE) {
m_pane[paneStyle].frame.render(m_rd, paneRenderBounds, Vector2::zero());
}
}
void GuiTheme::renderWindow(const Rect2D& bounds, bool focused, bool hasClose,
bool closeIsDown, bool closeIsFocused, const GuiText& text,
WindowStyle windowStyle) const {
drawWindow(m_window[windowStyle], bounds, focused, hasClose, closeIsDown, closeIsFocused, text);
}
Rect2D GuiTheme::windowToCloseButtonBounds(const Rect2D& bounds, WindowStyle windowStyle) const {
return closeButtonBounds(m_window[windowStyle], bounds);
}
Rect2D GuiTheme::closeButtonBounds(const Window& window, const Rect2D& bounds) const {
// If the close button is larger
// than the title area, draw it half size (e.g., for tool
// windows)
float titleHeight = window.borderThickness.topLeft.y;
float scale = 1.0f;
if (titleHeight < m_closeButton.base.height()) {
scale = 0.5f;
}
// Position button
Vector2 center;
if (m_osxWindowButtons) {
center.x = bounds.x0() + max(window.borderThickness.topLeft.x, window.borderThickness.topLeft.y * 0.25f) * scale + scale * m_closeButton.base.width() / 2;
} else {
center.x = bounds.x1() - max(window.borderThickness.bottomRight.x, window.borderThickness.topLeft.y * 0.25f) * scale - scale * m_closeButton.base.width() / 2;
}
center.y = bounds.y0() + window.borderThickness.topLeft.y / 2;
// Draw button
Vector2 wh = m_closeButton.base.wh() * scale;
Rect2D vertex = Rect2D::xywh(center - wh / 2, wh);
return vertex;
}
void GuiTheme::drawWindow(const Window& window, const Rect2D& bounds,
bool focused, bool hasClose, bool closeIsDown, bool closeIsFocused,
const GuiText& text) const {
// Update any pending text since the window may overlap another window
drawDelayedText();
window.render(m_rd, bounds, focused);
if (hasClose) {
const Rect2D& vertex = closeButtonBounds(window, bounds);
Vector2 offset;
if (focused) {
if (closeIsFocused) {
if (closeIsDown) {
offset = m_closeButton.focusedDown;
} else {
offset = m_closeButton.focusedUp;
}
} else {
offset = m_closeButton.defocused;
}
} else {
offset = m_closeButton.windowDefocused;
}
drawRect(vertex, m_closeButton.base + offset, m_rd);
}
if (window.borderThickness.topLeft.y > 4) {
const TextStyle& style = focused ? window.textStyle : window.defocusedTextStyle;
addDelayedText(text, style,
Vector2(bounds.center().x, bounds.y0() + window.borderThickness.topLeft.y * 0.5),
GFont::XALIGN_CENTER,
GFont::YALIGN_CENTER);
}
}
Rect2D GuiTheme::horizontalSliderToSliderBounds(const Rect2D& bounds, float captionWidth) const {
return Rect2D::xywh(bounds.x0() + captionWidth, bounds.y0(), bounds.width() - captionWidth, bounds.height());
}
Rect2D GuiTheme::horizontalSliderToThumbBounds(const Rect2D& bounds, float pos, float captionWidth) const {
return m_hSlider.thumbBounds(horizontalSliderToSliderBounds(bounds, captionWidth), pos);
}
Rect2D GuiTheme::horizontalSliderToTrackBounds(const Rect2D& bounds, float captionWidth) const {
return m_hSlider.trackBounds(horizontalSliderToSliderBounds(bounds, captionWidth));
}
Rect2D GuiTheme::windowToTitleBounds(const Rect2D& bounds, WindowStyle windowStyle) const {
return Rect2D::xywh(bounds.x0y0(), Vector2(bounds.width(), m_window[windowStyle].borderThickness.topLeft.y));
}
Rect2D GuiTheme::windowToClientBounds(const Rect2D& bounds, WindowStyle windowStyle) const {
return Rect2D::xywh(bounds.x0y0() + m_window[windowStyle].netClientPad.topLeft,
bounds.wh() - m_window[windowStyle].netClientPad.wh());
}
Rect2D GuiTheme::clientToWindowBounds(const Rect2D& bounds, WindowStyle windowStyle) const {
return Rect2D::xywh(bounds.x0y0() - m_window[windowStyle].netClientPad.topLeft,
bounds.wh() + m_window[windowStyle].netClientPad.wh());
}
Rect2D GuiTheme::textBoxToClickBounds(const Rect2D& bounds, float captionWidth) const {
return Rect2D::xyxy(bounds.x0() + captionWidth, bounds.y0(), bounds.x1(), bounds.y1());
}
Rect2D GuiTheme::canvasToClickBounds(const Rect2D& bounds, float captionHeight) const {
// Canvas does not receive indent; its caption goes on top
return Rect2D::xyxy(bounds.x0(), bounds.y0() + captionHeight, bounds.x1(), bounds.y1());
}
Rect2D GuiTheme::canvasToClientBounds(const Rect2D& bounds, float captionHeight) const {
Rect2D r = canvasToClickBounds(bounds, captionHeight);
return Rect2D::xyxy(r.x0y0() + m_canvas.pad.topLeft, r.x1y1() - m_canvas.pad.bottomRight);
}
Rect2D GuiTheme::dropDownListToClickBounds(const Rect2D& bounds, float captionWidth) const {
// Note: if you change these bounds to not be the same as the
// rendering bounds for the control itself then update
// renderDropDownList to not call dropDownListToClickBounds.
float h = m_dropDownList.base.left.height();
return Rect2D::xywh(bounds.x0() + captionWidth,
bounds.center().y - h / 2,
bounds.width() - captionWidth,
h);
}
void GuiTheme::renderRadioButton(const Rect2D& bounds, bool enabled, bool focused, bool selected, const GuiText& text) const {
drawCheckable(m_radioButton, bounds, enabled, focused, selected, text);
}
Vector2 GuiTheme::minButtonSize(const GuiText& text, ButtonStyle buttonStyle) const {
Vector2 textBounds = bounds(text);
Vector2 borderPadding =
m_button[buttonStyle].base.centerLeft.source.wh() +
m_button[buttonStyle].base.centerRight.source.wh();
return textBounds + borderPadding;
}
void GuiTheme::renderButton(const Rect2D& bounds, bool enabled, bool focused,
bool pushed, const GuiText& text, ButtonStyle buttonStyle) const {
debugAssert(m_inRendering);
if (buttonStyle != NO_BUTTON_STYLE) {
m_button[buttonStyle].render(m_rd, bounds, enabled, focused, pushed);
}
const TextStyle& style =
enabled ?
m_button[buttonStyle].textStyle :
m_button[buttonStyle].disabledTextStyle;
addDelayedText(text, style,
bounds.center() + m_button[buttonStyle].textOffset,
GFont::XALIGN_CENTER);
}
void GuiTheme::renderHorizontalSlider
(const Rect2D& bounds,
float pos,
bool enabled,
bool focused,
const GuiText& text,
float captionWidth) const {
debugAssert(m_inRendering);
m_hSlider.render
(m_rd,
horizontalSliderToSliderBounds(bounds, captionWidth),
pos, enabled, focused);
const TextStyle& style = enabled ? m_hSlider.textStyle : m_hSlider.disabledTextStyle;
addDelayedText(text, style,
Vector2(bounds.x0(), (bounds.y0() + bounds.y1()) * 0.5f),
GFont::XALIGN_LEFT);
}
void GuiTheme::renderLabel(const Rect2D& bounds, const GuiText& text, GFont::XAlign xalign, GFont::YAlign yalign, bool enabled) const {
debugAssert(m_inRendering);
if (text.numElements() > 0) {
Vector2 pos;
switch (xalign) {
case GFont::XALIGN_LEFT:
pos.x = bounds.x0();
break;
case GFont::XALIGN_CENTER:
pos.x = bounds.center().x;
break;
case GFont::XALIGN_RIGHT:
pos.x = bounds.x1();
break;
}
switch (yalign) {
case GFont::YALIGN_TOP:
pos.y = bounds.y0();
break;
case GFont::YALIGN_CENTER:
pos.y = bounds.center().y;
break;
case GFont::YALIGN_BOTTOM:
case GFont::YALIGN_BASELINE:
pos.y = bounds.y1();
break;
}
const TextStyle& style = enabled ? m_textStyle : m_disabledTextStyle;
addDelayedText(text, style, pos, xalign, yalign);
}
}
void GuiTheme::drawDelayedText() const {
if (m_delayedTextCount == 0) {
return;
}
// Only clean out old fonts periodically to avoid frequent
// memory allocation costs.
bool cleanOldFonts = iRandom(0, 10000) == 0;
beginText();
{
static Array<GFont::Ref> delayedFont;
m_delayedText.getKeys(delayedFont);
for (int f = 0; f < delayedFont.size(); ++f) {
const GFont::Ref& thisFont = delayedFont[f];
const Array<Text>& label = m_delayedText[thisFont];
if (label.size() > 0) {
// Load this font
thisFont->begin2DQuads(m_rd);
glBindTexture(GL_TEXTURE_2D, thisFont->texture()->openGLID());
glMatrixMode(GL_TEXTURE);
glLoadMatrix(thisFont->textureMatrix());
// Render the text in this font
for (int t = 0; t < label.size(); ++t) {
const Text& text = label[t];
thisFont->send2DQuads(m_rd, text.text, text.position, text.size, text.color,
text.outlineColor, text.xAlign, text.yAlign);
}
thisFont->end2DQuads(m_rd);
// Fast clear to avoid memory allocation and deallocation
const_cast<Array<Text>&>(label).fastClear();
} else if (cleanOldFonts) {
// Old font that is no longer in use. Remove the reference in case the font itself
// needs to be garbage collected
const_cast<GuiTheme*>(this)->m_delayedText.remove(thisFont);
}
}
}
endText();
// Reset the count
const_cast<GuiTheme*>(this)->m_delayedTextCount = 0;
}
void GuiTheme::addDelayedText
(GFont::Ref font,
const std::string& label,
const Vector2& position,
float size,
const Color4& color,
const Color4& outlineColor,
GFont::XAlign xalign,
GFont::YAlign yalign) const {
if (font.isNull()) {
font = m_textStyle.font;
debugAssertM(font.notNull(), "Must set default font first.");
}
if (size < 0) {
size = m_textStyle.size;
}
GuiTheme* me = const_cast<GuiTheme*>(this);
++(me->m_delayedTextCount);
if (! m_delayedText.containsKey(font)) {
me->m_delayedText.set(font, Array<Text>());
}
Text& text = me->m_delayedText[font].next();
text.text = label;
text.position = position;
text.xAlign = xalign;
text.yAlign = yalign;
text.size = size;
if (color.a < 0) {
text.color = m_textStyle.color;
} else {
text.color = color;
}
if (outlineColor.a < 0) {
text.outlineColor = m_textStyle.outlineColor;
} else {
text.outlineColor = outlineColor;
}
}
void GuiTheme::drawRect(const Rect2D& vertex, const Rect2D& texCoord, RenderDevice* rd) {
(void)rd;
for (int i = 0; i < 4; ++i) {
glTexCoord(texCoord.corner(i));
glVertex(vertex.corner(i));
}
}
float GuiTheme::paneTopPadding(const GuiText& caption, PaneStyle paneStyle) const {
if (caption.empty()) {
return 0.0f;
} else if (caption.isIcon()) {
return caption.height();
} else {
// Space for text
if (m_pane[paneStyle].textStyle.size >= 0) {
return m_pane[paneStyle].textStyle.size;
} else {
return m_textStyle.size;
}
}
}
Rect2D GuiTheme::paneToClientBounds(const Rect2D& bounds, const GuiText& caption, PaneStyle paneStyle) const {
const Vector2 captionSpace(0, paneTopPadding(caption, paneStyle));
return Rect2D::xywh(bounds.x0y0() + m_pane[paneStyle].clientPad.topLeft + captionSpace,
bounds.wh() - m_pane[paneStyle].clientPad.wh() - captionSpace);
}
Rect2D GuiTheme::clientToPaneBounds(const Rect2D& bounds, const GuiText& caption, PaneStyle paneStyle) const {
const Vector2 captionSpace(0, paneTopPadding(caption, paneStyle));
return Rect2D::xywh(bounds.x0y0() - m_pane[paneStyle].clientPad.topLeft - captionSpace,
bounds.wh() + m_pane[paneStyle].clientPad.wh() + captionSpace);
}
void GuiTheme::makeThemeFromSourceFiles
(
const std::string& sourceDir,
const std::string& whiteName,
const std::string& blackName,
const std::string& coordsFile,
const std::string& destFile) {
Image3Ref white = Image3::fromFile(pathConcat(sourceDir, whiteName));
Image3Ref black = Image3::fromFile(pathConcat(sourceDir, blackName));
GImage out(white->width(), white->height(), 4);
for (int y = 0; y < (int)out.height(); ++y) {
for (int x = 0; x < (int)out.width(); ++x) {
const Color3& U = white->get(x, y);
const Color3& V = black->get(x, y);
// U = F * a + (1-a) * 1
// V = F * a + (1-a) * 0
//
// F * a = V
// a = 1 - (U - V)
Color3 diff = U - V;
float a = clamp(1.0f - diff.average(), 0.0f, 1.0f);
Color3 base = V;
if (a > 0) {
base = base / a;
}
out.pixel4(x, y) = Color4uint8(Color4(base, a));
}
}
std::string coords = readWholeFile(pathConcat(sourceDir, coordsFile));
BinaryOutput b(destFile, G3D_LITTLE_ENDIAN);
b.writeString32("G3D Skin File");
b.writeFloat32(1.0f);
b.writeString32(coords);
out.encode(GImage::TGA, b);
b.compress();
b.commit();
}
void GuiTheme::pushClientRect(const Rect2D& r) {
debugAssert(m_inRendering);
// Must draw old text since we don't keep track of which text
// goes with which client rect.
drawDelayedText();
m_rd->endPrimitive();
const CoordinateFrame& oldMatrix = m_rd->objectToWorldMatrix();
m_coordinateFrameStack.append(oldMatrix);
const Rect2D& oldRect = m_rd->clip2D();
m_scissorStack.append(oldRect);
Rect2D newRect = r + oldMatrix.translation.xy();
newRect = oldRect.intersect(newRect);
m_rd->setClip2D(newRect);
const CoordinateFrame& newMatrix = oldMatrix * CoordinateFrame(Vector3(r.x0y0(), 0));
m_rd->setObjectToWorldMatrix(newMatrix);
m_rd->beginPrimitive(PrimitiveType::QUADS);
}
void GuiTheme::popClientRect() {
debugAssertM( m_coordinateFrameStack.size() > 0,
"popClientRect without matching pushClientRect");
drawDelayedText();
m_rd->endPrimitive();
m_rd->setObjectToWorldMatrix(m_coordinateFrameStack.pop());
m_rd->setClip2D(m_scissorStack.pop());
m_rd->beginPrimitive(PrimitiveType::QUADS);
}
/////////////////////////////////////////////
void GuiTheme::Pane::load(const Any& any) {
any.verifyName("");
// Custom text styles are optional
if (any.containsKey("font")) {
textStyle.load(any["font"]);
}
if (any.containsKey("disabledFont")) {
disabledTextStyle.load(any["disabledFont"]);
}
frame.load(any["frame"]);
clientPad.load(any["clientPad"]);
}
///////////////////////////////////////////////
void GuiTheme::HSlider::load(const Any& any) {
any.verifyName("HSlider");
// Custom text styles are optional
if (any.containsKey("font")) {
textStyle.load(any["font"]);
}
if (any.containsKey("disabledFont")) {
disabledTextStyle.load(any["disabledFont"]);
}
bar.load(any["bar"]);
thumb.load(any["thumb"]);
}
void GuiTheme::HSlider::Bar::load(const Any& any) {
any.verifyName("HSlider::Bar");
base.load(any["base"]);
enabled = any["enabled"];
disabled = any["disabled"];
}
void GuiTheme::HSlider::Thumb::load(const Any& any) {
any.verifyName("HSlider::Thumb");
base = any["base"];
enabled.load(any["enabled"]);
disabled = any["disabled"];
}
void GuiTheme::HSlider::Thumb::Focus::load(const Any& any) {
any.verifyName("HSlider::Thumb::Focus");
focused = any["focused"];
defocused = any["defocused"];
}
void GuiTheme::HSlider::render(RenderDevice* rd, const Rect2D& bounds, float thumbPos,
bool _enabled, bool _focused) const {
Rect2D barBounds = trackBounds(bounds);
// Draw the bar:
bar.base.render(rd, barBounds, _enabled ? bar.enabled : bar.disabled);
// Draw the thumb:
Vector2 offset = _enabled ?
(_focused ? thumb.enabled.focused : thumb.enabled.defocused) :
thumb.disabled;
drawRect(thumbBounds(bounds, thumbPos), thumb.base + offset, rd);
}
Rect2D GuiTheme::HSlider::trackBounds(const Rect2D& sliderBounds) const {
return
Rect2D::xywh(sliderBounds.x0(), sliderBounds.center().y - bar.base.height() * 0.5,
sliderBounds.width(), bar.base.height());
}
Rect2D GuiTheme::HSlider::thumbBounds(const Rect2D& sliderBounds, float pos) const {
float halfWidth = thumb.base.width() * 0.5f;
Vector2 thumbCenter(sliderBounds.x0() + halfWidth + (sliderBounds.width() - thumb.base.width()) * clamp(pos, 0.0f, 1.0f),
sliderBounds.center().y);
return Rect2D::xywh(thumbCenter - Vector2(halfWidth, thumb.base.height() * 0.5f), thumb.base.wh());
}
//////////////////////////////////////////////////////////////////////////////
void GuiTheme::WindowButton::load(const Any& any) {
any.verifyName("WindowButton");
base = any["base"];
focusedDown = any["focusedDown"];
focusedUp = any["focusedUp"];
defocused = any["defocused"];
windowDefocused = any["windowDefocused"];
}
//////////////////////////////////////////////////////////////////////////////
void GuiTheme::Window::load(const Any& any) {
any.verifyName("Window");
// Custom text styles are optional
if (any.containsKey("font")) {
textStyle.load(any["font"]);
}
defocusedTextStyle = textStyle;
if (any.containsKey("defocusedFont")) {
defocusedTextStyle.load(any["defocusedFont"]);
}
base.load(any["base"]);
borderPad.load(any["borderPad"]);
borderThickness.load(any["borderThickness"]);
Pad clientPad;
clientPad.load(any["clientPad"]);
netClientPad.topLeft = borderThickness.topLeft + clientPad.topLeft;
netClientPad.bottomRight = borderThickness.bottomRight + clientPad.bottomRight;
focused = any["focused"];
defocused = any["defocused"];
}
void GuiTheme::Pad::load(const Any& any) {
any.verifyName("Pad");
topLeft = any["topLeft"];
bottomRight = any["bottomRight"];
}
void GuiTheme::Window::render(RenderDevice* rd, const Rect2D& bounds, bool _focused) const {
Vector2 offset = _focused ? focused : defocused;
// Grow bounds to accomodate the true extent of the window
base.render(rd,
Rect2D::xywh(bounds.x0y0() - borderPad.topLeft, bounds.wh() + borderPad.wh()),
offset);
}
//////////////////////////////////////////////////////////////////////////////
void GuiTheme::Checkable::load(const Any& any) {
any.verifyName("Checkable");
// Custom text styles are optional
if (any.containsKey("font")) {
textStyle.load(any["font"]);
}
if (any.containsKey("disabledFont")) {
disabledTextStyle.load(any["disabledFont"]);
}
enabled.load(any["enabled"]);
disabled.load(any["disabled"]);
textOffset = any["textOffset"];
}
void GuiTheme::Checkable::Focus::load(const Any& any) {
any.verifyName("Checkable::Focus");
focused.load(any["focused"]);
defocused.load(any["defocused"]);
}
void GuiTheme::Checkable::Pair::load(const Any& any) {
any.verifyName("Checkable::Pair");
checked = any["checked"];
unchecked = any["unchecked"];
}
void GuiTheme::Checkable::render(RenderDevice* rd, const Rect2D& bounds, bool _enabled, bool _focused, bool _checked) const {
const Rect2D* r = NULL;
if (_enabled) {
if (_focused) {
if (_checked) {
r = &enabled.focused.checked;
} else {
r = &enabled.focused.unchecked;
}
} else {
if (_checked) {
r = &enabled.defocused.checked;
} else {
r = &enabled.defocused.unchecked;
}
}
} else {
if (_checked) {
r = &disabled.checked;
} else {
r = &disabled.unchecked;
}
}
Vector2 extent(r->width(), r->height());
drawRect(Rect2D::xywh(bounds.x0y0() + Vector2(0, (bounds.height() - extent.y) / 2), extent), *r, rd);
}
//////////////////////////////////////////////////////////////////////////////
void GuiTheme::StretchRectHV::load(const Any& any) {
any.verifyName("StretchRectHV");
top.load(any["top"]);
centerLeft.load(any["centerLeft"]);
centerCenter.load(any["centerCenter"]);
centerRight.load(any["centerRight"]);
bottom.load(any["bottom"]);
}
void GuiTheme::StretchRectHV::render(class RenderDevice* rd, const Rect2D& bounds, const Vector2& texOffset) const {
float topHeight = top.left.height();
float bottomHeight = bottom.left.height();
float centerHeight = max(0.0f, bounds.height() - topHeight - bottomHeight);
top.render(rd, Rect2D::xywh(bounds.x0y0(),
Vector2(bounds.width(), topHeight)),
texOffset);
centerLeft.render(rd, Rect2D::xywh(bounds.x0y0() + Vector2(0, topHeight),
Vector2(top.left.width(), centerHeight)),
texOffset);
centerCenter.render(rd, Rect2D::xywh(bounds.x0y0() + Vector2(top.left.width(), topHeight),
Vector2(max(0.0f, bounds.width() - (top.left.width() + top.right.width())), centerHeight)),
texOffset);
centerRight.render(rd, Rect2D::xywh(bounds.x1y0() + Vector2(-top.right.width(), topHeight),
Vector2(top.right.width(), centerHeight)),
texOffset);
bottom.render(rd, Rect2D::xywh(bounds.x0y0() + Vector2(0, topHeight + centerHeight),
Vector2(bounds.width(), bottomHeight)),
texOffset);
}
//////////////////////////////////////////////////////////////////////////////
GuiTheme::StretchMode GuiTheme::stringToStretchMode(const std::string& name) {
if (name == "STRETCH") {
return GuiTheme::STRETCH;
} else if (name == "TILE") {
return GuiTheme::TILE;
} else {
debugAssertM(false, "Invalid stretch mode name loading GuiTheme.");
return GuiTheme::STRETCH;
}
}
void GuiTheme::Fill::load(const Any& any) {
any.verifyName("Fill");
source = any["source"];
horizontalMode = GuiTheme::stringToStretchMode(any["hmode"]);
verticalMode = GuiTheme::stringToStretchMode(any["vmode"]);
}
void GuiTheme::Fill::render(class RenderDevice* rd, const Rect2D& bounds, const Vector2& texOffset) const {
if (horizontalMode == STRETCH) {
if (verticalMode == STRETCH) {
// Stretch, Stretch
drawRect(bounds, source + texOffset, rd);
} else {
// Stretch, Tile
// Draw horizontal strips
float height = source.height();
float x0 = bounds.x0();
float y1 = bounds.y1();
float y = bounds.y0();
Rect2D strip = Rect2D::xywh(0, 0, bounds.width(), source.height());
while (y <= y1 - height) {
drawRect(strip + Vector2(x0, y), source + texOffset, rd);
y += height;
}
if (y < y1) {
// Draw the remaining fraction of a strip
Rect2D src = Rect2D::xywh(source.x0y0() + texOffset, Vector2(source.width(), y1 - y));
Rect2D dst = Rect2D::xywh(Vector2(x0, y), Vector2(bounds.width(), src.height()));
drawRect(dst, src, rd);
}
}
} else {
if (verticalMode == STRETCH) {
// Tile, Stretch
// Draw vertical strips
float width = source.width();
float y0 = bounds.y0();
float x1 = bounds.x1();
float x = bounds.x0();
Rect2D strip = Rect2D::xywh(0, 0, source.width(), bounds.height());
while (x <= x1 - width) {
drawRect(strip + Vector2(x, y0), source + texOffset, rd);
x += width;
}
if (x < x1) {
// Draw the remaining fraction of a strip
Rect2D src = Rect2D::xywh(source.x0y0() + texOffset, Vector2(x1 - x, source.height()));
Rect2D dst = Rect2D::xywh(Vector2(x, y0), Vector2(src.width(), bounds.height()));
drawRect(dst, src, rd);
}
} else {
// Tile, Tile
// Work in horizontal strips first
float width = source.width();
float height = source.height();
float x0 = bounds.x0();
float x1 = bounds.x1();
float y1 = bounds.y1();
float y = bounds.y0();
Rect2D tile = Rect2D::xywh(Vector2(0, 0), source.wh());
while (y <= y1 - height) {
float x = x0;
while (x <= x1 - width) {
drawRect(tile + Vector2(x, y), source + texOffset, rd);
x += width;
}
// Draw the remaining fraction of a tile
if (x < x1) {
Rect2D src = Rect2D::xywh(source.x0y0() + texOffset, Vector2(x1 - x, height));
Rect2D dst = Rect2D::xywh(Vector2(x, y), src.wh());
drawRect(dst, src, rd);
}
y += height;
}
if (y < y1) {
float x = x0;
float height = y1 - y;
tile = Rect2D::xywh(0, 0, width, height);
while (x <= x1 - width) {
drawRect(tile + Vector2(x, y), tile + (source.x0y0() + texOffset), rd);
x += width;
}
// Draw the remaining fraction of a tile
if (x < x1) {
Rect2D src = Rect2D::xywh(source.x0y0() + texOffset, Vector2(x1 - x, height));
Rect2D dst = Rect2D::xywh(Vector2(x, y), src.wh());
drawRect(dst, src, rd);
}
}
}
}
}
//////////////////////////////////////////////////////////////////////////////
void GuiTheme::StretchRectH::load(const Any& any) {
any.verifyName("StretchRectH");
left = any["left"];
center.load(any["center"]);
right = any["right"];
}
void GuiTheme::StretchRectH::render(class RenderDevice* rd, const Rect2D& bounds, const Vector2& texOffset) const {
drawRect(Rect2D::xywh(bounds.x0y0(), left.wh()), left + texOffset, rd);
center.render(rd, Rect2D::xywh(bounds.x0y0() + Vector2(left.width(), 0),
Vector2(bounds.width() - left.width() - right.width(), bounds.height())), texOffset);
drawRect(Rect2D::xywh(bounds.x1y0() - Vector2(right.width(), 0), right.wh()), right + texOffset, rd);
}
//////////////////////////////////////////////////////////////////////////////
void GuiTheme::Button::load(const Any& any) {
any.verifyName("Button");
// Custom text styles are optional
if (any.containsKey("font")) {
textStyle.load(any["font"]);
}
if (any.containsKey("disabledFont")) {
disabledTextStyle.load(any["disabledFont"]);
}
base.load(any["base"]);
textOffset = any["textOffset"];
enabled.load(any["enabled"]);
disabled.load(any["disabled"]);
}
void GuiTheme::Button::Focus::load(const Any& any) {
any.verifyName("Button::Focus");
focused.load(any["focused"]);
defocused.load(any["defocused"]);
}
void GuiTheme::Button::Pair::load(const Any& any) {
any.verifyName("Button::Pair");
down = any["down"];
up = any["up"];
}
void GuiTheme::Button::render(RenderDevice* rd, const Rect2D& bounds, bool _enabled, bool _focused, bool _checked) const {
const Vector2* r = NULL;
if (_enabled) {
if (_focused) {
if (_checked) {
r = &enabled.focused.down;
} else {
r = &enabled.focused.up;
}
} else {
if (_checked) {
r = &enabled.defocused.down;
} else {
r = &enabled.defocused.up;
}
}
} else {
if (_checked) {
r = &disabled.down;
} else {
r = &disabled.up;
}
}
base.render(rd, bounds, *r);
}
////////////////////////////////////////////////////////////////////////////////////////
void GuiTheme::TextBox::load(const Any& any) {
any.verifyName("TextBox");
// Custom text styles are optional
if (any.containsKey("font")) {
textStyle.load(any["font"]);
}
if (any.containsKey("disabledFont")) {
disabledTextStyle.load(any["disabledFont"]);
}
contentStyle = textStyle;
if (any.containsKey("contentFont")) {
contentStyle.load(any["contentFont"]);
}
base.load(any["base"]);
textPad.load(any["textPad"]);
enabled.load(any["enabled"]);
disabled = any["disabled"];
}
void GuiTheme::TextBox::Focus::load(const Any& any) {
any.verifyName("TextBox::Focus");
focused = any["focused"];
defocused = any["defocused"];
}
void GuiTheme::TextBox::render(RenderDevice* rd, const Rect2D& bounds, bool _enabled, bool focused) const {
const Vector2* r = NULL;
if (_enabled) {
if (focused) {
r = &enabled.focused;
} else {
r = &enabled.defocused;
}
} else {
r = &disabled;
}
base.render(rd, bounds, *r);
}
///////////////////////////////////////////////////////
void GuiTheme::Canvas::load(const Any& any) {
any.verifyName("Canvas");
// Custom text styles are optional
if (any.containsKey("font")) {
textStyle.load(any["font"]);
}
if (any.containsKey("disabledFont")) {
disabledTextStyle.load(any["disabledFont"]);
}
base.load(any["base"]);
pad.load(any["pad"]);
enabled.load(any["enabled"]);
disabled = any["disabled"];
}
void GuiTheme::Canvas::render(RenderDevice* rd, const Rect2D& bounds, bool _enabled, bool focused) const {
const Vector2* r = NULL;
if (_enabled) {
if (focused) {
r = &enabled.focused;
} else {
r = &enabled.defocused;
}
} else {
r = &disabled;
}
base.render(rd, bounds, *r);
}
///////////////////////////////////////////////////////
void GuiTheme::DropDownList::render(RenderDevice* rd, const Rect2D& bounds, bool _enabled, bool _focused, bool _down) const {
const Vector2* r = NULL;
if (_enabled) {
if (_focused) {
if (_down) {
r = &enabled.focused.down;
} else {
r = &enabled.focused.up;
}
} else {
r = &enabled.defocused;
}
} else {
r = &disabled;
}
base.render(rd, bounds, *r);
}
void GuiTheme::DropDownList::load(const Any& any) {
any.verifyName("DropDownList");
// Custom text styles are optional
if (any.containsKey("font")) {
textStyle.load(any["font"]);
}
if (any.containsKey("disabledFont")) {
disabledTextStyle.load(any["disabledFont"]);
}
base.load(any["base"]);
textPad.load(any["textPad"]);
enabled.load(any["enabled"]);
disabled = any["disabled"];
}
void GuiTheme::DropDownList::Focus::load(const Any& any) {
any.verifyName("DropDownList::Focus");
focused.load(any["focused"]);
defocused = any["defocused"];
}
void GuiTheme::DropDownList::Pair::load(const Any& any) {
any.verifyName("DropDownList::Pair");
down = any["down"];
up = any["up"];
}
///////////////////////////////////////////////////////
void GuiTheme::TextStyle::load(const Any& any) {
any.verifyName("TextStyle");
// All of these are optional
if (any.containsKey("face")) {
// Try to load the font
std::string filename = any["face"].resolveStringAsFilename();
if (! filename.empty()) {
font = GFont::fromFile(filename);
} else {
logPrintf("GuiTheme Warning: could not find font %s\n", any["face"].string().c_str());
}
}
if (any.containsKey("size")) {
size = any["size"];
}
if (any.containsKey("color")) {
color = any["color"];
}
if (any.containsKey("outlineColor")) {
outlineColor = any["outlineColor"];
}
}
} // namespace G3D
|
db 0 ; species ID placeholder
db 45, 55, 45, 75, 65, 45
; hp atk def spd sat sdf
db ICE, FLYING ; type
db 45 ; catch rate
db 183 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/delibird/front.dimensions"
db 0, 0, 0, 0 ; padding
db GROWTH_FAST ; growth rate
dn EGG_WATER_1, EGG_GROUND ; egg groups
; tm/hm learnset
tmhm HEADBUTT, CURSE, TOXIC, HIDDEN_POWER, SNORE, BLIZZARD, ICY_WIND, PROTECT, RAIN_DANCE, ENDURE, FRUSTRATION, RETURN, MUD_SLAP, DOUBLE_TEAM, SWAGGER, SLEEP_TALK, SWIFT, DETECT, REST, ATTRACT, THIEF, FLY, ICE_BEAM
; end
|
#include "Item.h"
#include <stdint.h>
#include <QUuid>
#include <xcb/xcb.h>
Item::Item(ItemType type, const QString& path, QObject *parent)
: QObject(parent)
{
this->setId(QUuid::createUuid().toString(QUuid::StringFormat::WithoutBraces));
// Initialize members.
this->m_pinned = false;
this->setType(type);
this->setPath(path);
QObject::connect(this, &Item::iconGeometryChanged,
this, &Item::changeNetWmIconGeometry);
// Initialize to null the objects.
this->_appimage = nullptr;
this->_exec = nullptr;
if (type == Item::ItemType::DesktopEntry) {
} else if (type == Item::ItemType::AppImage) {
} else if (type == Item::ItemType::Exec) {
}
}
Item::~Item()
{
// Free heap memory allocation.
switch (this->type()) {
case Item::ItemType::DesktopEntry:
break;
case Item::ItemType::AppImage:
if (this->_appimage != nullptr) {
}
break;
case Item::ItemType::Exec:
if (this->_exec != nullptr) {
}
break;
default:
break;
}
}
//=============================
// Property getters/setters
//=============================
QString Item::id() const
{
return this->m_id;
}
void Item::setId(const QString &id)
{
if (this->m_id != id) {
this->m_id = id;
emit this->idChanged(id);
}
}
bool Item::pinned() const
{
return this->m_pinned;
}
void Item::setPinned(bool val)
{
if (this->m_pinned != val) {
this->m_pinned = val;
emit this->pinnedChanged(val);
}
}
Item::ItemType Item::type() const
{
return this->m_type;
}
void Item::setType(ItemType type)
{
this->m_type = type;
}
std::optional<QString> Item::cls() const
{
return this->m_class;
}
void Item::setCls(const QString &cls)
{
this->m_class = cls;
}
void Item::clearCls()
{
this->m_class.reset();
}
QString Item::path() const
{
return this->m_path;
}
void Item::setPath(const QString &path)
{
if (this->m_path != path) {
this->m_path = path;
emit this->pathChanged(path);
}
}
QList<int> Item::windows() const
{
return this->m_wIds;
}
void Item::appendWindow(int wId)
{
this->m_wIds.append(wId);
emit this->windowsChanged();
}
void Item::removeWindow(int wId)
{
this->m_wIds.removeOne(wId);
emit this->windowsChanged();
}
QRect Item::iconGeometry() const
{
return this->m_iconGeometry;
}
void Item::setIconGeometry(const QRect &rect)
{
if (this->m_iconGeometry != rect) {
this->m_iconGeometry = rect;
emit this->iconGeometryChanged(rect);
}
}
//=========================
// Slots
//=========================
void Item::changeNetWmIconGeometry(const QRect& rect)
{
uint32_t x = rect.x();
uint32_t y = rect.y();
uint32_t width = rect.width();
uint32_t height = rect.height();
// Connect to the X server.
xcb_connection_t *conn;
conn = xcb_connect(NULL, NULL);
// Get atom.
xcb_atom_t net_wm_icon_geometry;
xcb_intern_atom_cookie_t intern_atom_cookie;
xcb_intern_atom_reply_t *intern_atom_reply;
intern_atom_cookie = xcb_intern_atom(
conn, 1, strlen("_NET_WM_ICON_GEOMETRY"), "_NET_WM_ICON_GEOMETRY");
intern_atom_reply = xcb_intern_atom_reply(conn, intern_atom_cookie, NULL);
net_wm_icon_geometry = intern_atom_reply->atom;
free(intern_atom_reply);
uint32_t data[4];
data[0] = x;
data[1] = y;
data[2] = width;
data[3] = height;
for (int i = 0; i < this->windows().length(); ++i) {
xcb_void_cookie_t cookie = xcb_change_property_checked(
conn,
XCB_PROP_MODE_REPLACE,
this->windows()[i],
net_wm_icon_geometry,
XCB_ATOM_CARDINAL,
32,
4,
(void*)data
);
xcb_flush(conn);
xcb_generic_error_t *err = xcb_request_check(conn, cookie);
if (err) {}
}
// Close connection from the X server.
xcb_disconnect(conn);
}
|
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2015, PickNik LLC
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
* * Neither the name of PickNik LLC nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*********************************************************************/
/* Author: Dave Coleman
Desc: Helper ros_control hardware interface that loads configurations
*/
#include <ros_control_boilerplate/generic_hw_interface.h>
#include <limits>
// ROS parameter loading
#include <rosparam_shortcuts/rosparam_shortcuts.h>
namespace ros_control_boilerplate
{
GenericHWInterface::GenericHWInterface(ros::NodeHandle &nh, urdf::Model *urdf_model)
: name_("generic_hw_interface")
, nh_(nh)
, use_rosparam_joint_limits_(false)
, use_soft_limits_if_available_(false)
{
// Check if the URDF model needs to be loaded
if (urdf_model == NULL)
loadURDF(nh, "robot_description");
else
urdf_model_ = urdf_model;
// Load rosparams
ros::NodeHandle rpnh(nh_, "hardware_interface"); // TODO(davetcoleman): change the namespace to "generic_hw_interface" aka name_
std::size_t error = 0;
error += !rosparam_shortcuts::get(name_, rpnh, "joints", joint_names_);
rosparam_shortcuts::shutdownIfError(name_, error);
}
void GenericHWInterface::init()
{
num_joints_ = joint_names_.size();
// Status
joint_position_.resize(num_joints_, 0.0);
joint_velocity_.resize(num_joints_, 0.0);
joint_effort_.resize(num_joints_, 0.0);
// Command
joint_position_command_.resize(num_joints_, 0.0);
joint_velocity_command_.resize(num_joints_, 0.0);
joint_effort_command_.resize(num_joints_, 0.0);
// Limits
joint_position_lower_limits_.resize(num_joints_, 0.0);
joint_position_upper_limits_.resize(num_joints_, 0.0);
joint_velocity_limits_.resize(num_joints_, 0.0);
joint_effort_limits_.resize(num_joints_, 0.0);
// Initialize interfaces for each joint
for (std::size_t joint_id = 0; joint_id < num_joints_; ++joint_id)
{
ROS_DEBUG_STREAM_NAMED(name_, "Loading joint name: " << joint_names_[joint_id]);
// Create joint state interface
joint_state_interface_.registerHandle(hardware_interface::JointStateHandle(
joint_names_[joint_id], &joint_position_[joint_id], &joint_velocity_[joint_id], &joint_effort_[joint_id]));
// Add command interfaces to joints
// TODO: decide based on transmissions?
hardware_interface::JointHandle joint_handle_position = hardware_interface::JointHandle(
joint_state_interface_.getHandle(joint_names_[joint_id]), &joint_position_command_[joint_id]);
position_joint_interface_.registerHandle(joint_handle_position);
hardware_interface::JointHandle joint_handle_velocity = hardware_interface::JointHandle(
joint_state_interface_.getHandle(joint_names_[joint_id]), &joint_velocity_command_[joint_id]);
velocity_joint_interface_.registerHandle(joint_handle_velocity);
hardware_interface::JointHandle joint_handle_effort = hardware_interface::JointHandle(
joint_state_interface_.getHandle(joint_names_[joint_id]), &joint_effort_command_[joint_id]);
effort_joint_interface_.registerHandle(joint_handle_effort);
// Load the joint limits
registerJointLimits(joint_handle_position, joint_handle_velocity, joint_handle_effort, joint_id);
} // end for each joint
registerInterface(&joint_state_interface_); // From RobotHW base class.
registerInterface(&position_joint_interface_); // From RobotHW base class.
registerInterface(&velocity_joint_interface_); // From RobotHW base class.
registerInterface(&effort_joint_interface_); // From RobotHW base class.
ROS_INFO_STREAM_NAMED(name_, "GenericHWInterface Ready.");
}
void GenericHWInterface::registerJointLimits(const hardware_interface::JointHandle &joint_handle_position,
const hardware_interface::JointHandle &joint_handle_velocity,
const hardware_interface::JointHandle &joint_handle_effort,
std::size_t joint_id)
{
// Default values
joint_position_lower_limits_[joint_id] = -std::numeric_limits<double>::max();
joint_position_upper_limits_[joint_id] = std::numeric_limits<double>::max();
joint_velocity_limits_[joint_id] = std::numeric_limits<double>::max();
joint_effort_limits_[joint_id] = std::numeric_limits<double>::max();
// Limits datastructures
joint_limits_interface::JointLimits joint_limits; // Position
joint_limits_interface::SoftJointLimits soft_limits; // Soft Position
bool has_joint_limits = false;
bool has_soft_limits = false;
// Get limits from URDF
if (urdf_model_ == NULL)
{
ROS_WARN_STREAM_NAMED(name_, "No URDF model loaded, unable to get joint limits");
return;
}
// Get limits from URDF
urdf::JointConstSharedPtr urdf_joint = urdf_model_->getJoint(joint_names_[joint_id]);
// Get main joint limits
if (urdf_joint == NULL)
{
ROS_ERROR_STREAM_NAMED(name_, "URDF joint not found " << joint_names_[joint_id]);
return;
}
// Get limits from URDF
if (joint_limits_interface::getJointLimits(urdf_joint, joint_limits))
{
has_joint_limits = true;
ROS_DEBUG_STREAM_NAMED(name_, "Joint " << joint_names_[joint_id] << " has URDF position limits ["
<< joint_limits.min_position << ", "
<< joint_limits.max_position << "]");
if (joint_limits.has_velocity_limits)
ROS_DEBUG_STREAM_NAMED(name_, "Joint " << joint_names_[joint_id] << " has URDF velocity limit ["
<< joint_limits.max_velocity << "]");
}
else
{
if (urdf_joint->type != urdf::Joint::CONTINUOUS)
ROS_WARN_STREAM_NAMED(name_, "Joint " << joint_names_[joint_id] << " does not have a URDF "
"position limit");
}
// Get limits from ROS param
if (use_rosparam_joint_limits_)
{
if (joint_limits_interface::getJointLimits(joint_names_[joint_id], nh_, joint_limits))
{
has_joint_limits = true;
ROS_DEBUG_STREAM_NAMED(name_,
"Joint " << joint_names_[joint_id] << " has rosparam position limits ["
<< joint_limits.min_position << ", " << joint_limits.max_position << "]");
if (joint_limits.has_velocity_limits)
ROS_DEBUG_STREAM_NAMED(name_, "Joint " << joint_names_[joint_id]
<< " has rosparam velocity limit ["
<< joint_limits.max_velocity << "]");
} // the else debug message provided internally by joint_limits_interface
}
// Get soft limits from URDF
if (use_soft_limits_if_available_)
{
if (joint_limits_interface::getSoftJointLimits(urdf_joint, soft_limits))
{
has_soft_limits = true;
ROS_DEBUG_STREAM_NAMED(name_, "Joint " << joint_names_[joint_id] << " has soft joint limits.");
}
else
{
ROS_DEBUG_STREAM_NAMED(name_, "Joint " << joint_names_[joint_id] << " does not have soft joint "
"limits");
}
}
// Quit we we haven't found any limits in URDF or rosparam server
if (!has_joint_limits)
{
return;
}
// Copy position limits if available
if (joint_limits.has_position_limits)
{
// Slighly reduce the joint limits to prevent floating point errors
joint_limits.min_position += std::numeric_limits<double>::epsilon();
joint_limits.max_position -= std::numeric_limits<double>::epsilon();
joint_position_lower_limits_[joint_id] = joint_limits.min_position;
joint_position_upper_limits_[joint_id] = joint_limits.max_position;
}
// Copy velocity limits if available
if (joint_limits.has_velocity_limits)
{
joint_velocity_limits_[joint_id] = joint_limits.max_velocity;
}
// Copy effort limits if available
if (joint_limits.has_effort_limits)
{
joint_effort_limits_[joint_id] = joint_limits.max_effort;
}
if (has_soft_limits) // Use soft limits
{
ROS_DEBUG_STREAM_NAMED(name_, "Using soft saturation limits");
const joint_limits_interface::PositionJointSoftLimitsHandle soft_handle_position(joint_handle_position,
joint_limits, soft_limits);
pos_jnt_soft_limits_.registerHandle(soft_handle_position);
const joint_limits_interface::VelocityJointSoftLimitsHandle soft_handle_velocity(joint_handle_velocity,
joint_limits, soft_limits);
vel_jnt_soft_limits_.registerHandle(soft_handle_velocity);
const joint_limits_interface::EffortJointSoftLimitsHandle soft_handle_effort(joint_handle_effort, joint_limits,
soft_limits);
eff_jnt_soft_limits_.registerHandle(soft_handle_effort);
}
else // Use saturation limits
{
ROS_DEBUG_STREAM_NAMED(name_, "Using saturation limits (not soft limits)");
const joint_limits_interface::PositionJointSaturationHandle sat_handle_position(joint_handle_position, joint_limits);
pos_jnt_sat_interface_.registerHandle(sat_handle_position);
const joint_limits_interface::VelocityJointSaturationHandle sat_handle_velocity(joint_handle_velocity, joint_limits);
vel_jnt_sat_interface_.registerHandle(sat_handle_velocity);
const joint_limits_interface::EffortJointSaturationHandle sat_handle_effort(joint_handle_effort, joint_limits);
eff_jnt_sat_interface_.registerHandle(sat_handle_effort);
}
}
void GenericHWInterface::reset()
{
// Reset joint limits state, in case of mode switch or e-stop
pos_jnt_sat_interface_.reset();
pos_jnt_soft_limits_.reset();
}
void GenericHWInterface::printState()
{
// WARNING: THIS IS NOT REALTIME SAFE
// FOR DEBUGGING ONLY, USE AT YOUR OWN ROBOT's RISK!
ROS_INFO_STREAM_THROTTLE(1, std::endl
<< printStateHelper());
}
std::string GenericHWInterface::printStateHelper()
{
std::stringstream ss;
std::cout.precision(15);
for (std::size_t i = 0; i < num_joints_; ++i)
{
ss << "j" << i << ": " << std::fixed << joint_position_[i] << "\t ";
ss << std::fixed << joint_velocity_[i] << "\t ";
ss << std::fixed << joint_effort_[i] << std::endl;
}
return ss.str();
}
std::string GenericHWInterface::printCommandHelper()
{
std::stringstream ss;
std::cout.precision(15);
ss << " position velocity effort \n";
for (std::size_t i = 0; i < num_joints_; ++i)
{
ss << "j" << i << ": " << std::fixed << joint_position_command_[i] << "\t ";
ss << std::fixed << joint_velocity_command_[i] << "\t ";
ss << std::fixed << joint_effort_command_[i] << std::endl;
}
return ss.str();
}
void GenericHWInterface::loadURDF(ros::NodeHandle &nh, std::string param_name)
{
std::string urdf_string;
urdf_model_ = new urdf::Model();
// search and wait for robot_description on param server
while (urdf_string.empty() && ros::ok())
{
std::string search_param_name;
if (nh.searchParam(param_name, search_param_name))
{
ROS_INFO_STREAM_NAMED(name_, "Waiting for model URDF on the ROS param server at location: " <<
nh.getNamespace() << search_param_name);
nh.getParam(search_param_name, urdf_string);
}
else
{
ROS_INFO_STREAM_NAMED(name_, "Waiting for model URDF on the ROS param server at location: " <<
nh.getNamespace() << param_name);
nh.getParam(param_name, urdf_string);
}
usleep(100000);
}
if (!urdf_model_->initString(urdf_string))
ROS_ERROR_STREAM_NAMED(name_, "Unable to load URDF model");
else
ROS_DEBUG_STREAM_NAMED(name_, "Received URDF from param server");
}
} // namespace
|
/*
Copyright (c) 2014-2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "variant.h"
/*
* Pins descriptions
*/
const PinDescription g_APinDescription[]=
{
// 0..13 - Digital pins
// ----------------------
// 0/1 - SERCOM/UART (Serial1)
{ PORTB, 17, PIO_SERCOM, PIN_ATTR_PWM_G, No_ADC_Channel, TCC0_CH5, NOT_ON_TIMER, EXTERNAL_INT_1 },
{ PORTB, 16, PIO_SERCOM, PIN_ATTR_PWM_G, No_ADC_Channel, TCC0_CH4, NOT_ON_TIMER, EXTERNAL_INT_0 },
// 2..12
// Digital Low
{ PORTB, 3, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel15, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_3 },
{ PORTB, 2, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel14, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_2 },
{ PORTA, 14, PIO_SERCOM, PIN_ATTR_PWM_E, No_ADC_Channel, TC3_CH0, TC3_CH0, EXTERNAL_INT_14 },
{ PORTA, 16, PIO_DIGITAL, PIN_ATTR_DIGITAL, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_0 },
{ PORTA, 18, PIO_SERCOM, PIO_SERCOM, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_2 },
{ PORTB, 14, PIO_DIGITAL, PIN_ATTR_PWM_F, No_ADC_Channel, TCC4_CH0, TC5_CH0, EXTERNAL_INT_14 },
// Digital High
{ PORTA, 15, PIO_DIGITAL, PIN_ATTR_PWM_E, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_15 }, // D8 - NEOPIXEL
{ PORTA, 19, PIO_DIGITAL, PIN_ATTR_PWM_E, No_ADC_Channel, TC3_CH1, TC3_CH1, EXTERNAL_INT_3 },
{ PORTA, 20, PIO_DIGITAL, PIN_ATTR_DIGITAL, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_4 },
{ PORTA, 21, PIO_DIGITAL, PIN_ATTR_DIGITAL, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_5 },
{ PORTA, 22, PIO_SERCOM, PIN_ATTR_PWM_G, No_ADC_Channel, TCC0_CH2, TC4_CH0, EXTERNAL_INT_6 },
// 13 (LED)
{ PORTA, 23, PIO_SERCOM, PIN_ATTR_PWM_G, No_ADC_Channel, TCC0_CH3, TC4_CH1, EXTERNAL_INT_7 },
// 14..25 - Analog pins
// --------------------
{ PORTA, 2, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel0, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_2 },
{ PORTA, 5, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel5, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_5 },
{ PORTB, 8, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel2, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_8 },
{ PORTB, 9, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel3, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_9 },
{ PORTA, 4, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel4, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_4 },
{ PORTA, 6, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel6, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_6 },
{ PORTB, 1, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel13, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_1 }, // A6, D20 - vbatt
{ PORTB, 4, PIO_ANALOG, PIN_ATTR_ANALOG_ALT, ADC_Channel6, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_4 }, // A7, D21 - Light
{ PORTB, 3, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel15, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_3 }, // A8 / D2
{ PORTB, 2, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel14, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_2 }, // A9 / D3
{ PORTB, 6, PIO_ANALOG, PIN_ATTR_ANALOG_ALT, ADC_Channel8, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_6 }, // A10 / JOYY
{ PORTB, 7, PIO_ANALOG, PIN_ATTR_ANALOG_ALT, ADC_Channel9, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_7 }, // A11 / JOYX
// 26..27 I2C pins (SDA/SCL)
// ----------------------
{ PORTA, 12, PIO_SERCOM, PIN_ATTR_PWM_E, No_ADC_Channel, TC2_CH0, TC2_CH0, EXTERNAL_INT_12 }, // SDA
{ PORTA, 13, PIO_SERCOM, PIN_ATTR_PWM_E, No_ADC_Channel, TC2_CH1, TC2_CH1, EXTERNAL_INT_13 }, // SCL
// 28..30 - SPI pins (MISO,MOSI,SCK)
// ----------------------
{ PORTB, 22, PIO_SERCOM, (PIN_ATTR_DIGITAL), No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_6 }, // MISO: SERCOM1/PAD[2]
{ PORTB, 23, PIO_SERCOM, (PIN_ATTR_DIGITAL), No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_7 }, // MOSI: SERCOM1/PAD[3]
{ PORTA, 17, PIO_SERCOM, (PIN_ATTR_DIGITAL), No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_1 }, // SCK: SERCOM1/PAD[1]
// 31..33 - USB
// --------------------
{ NOT_A_PORT, PIN_NOT_A_PIN, PIO_NOT_A_PIN, PIN_ATTR_NONE, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE }, // USB Host enable DOES NOT EXIST ON THIS BOARD
{ PORTA, 24, PIO_COM, PIN_ATTR_NONE, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE }, // USB/DM
{ PORTA, 25, PIO_COM, PIN_ATTR_NONE, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE }, // USB/DP
// 34 (AREF)
{ PORTA, 3, PIO_ANALOG, PIN_ATTR_ANALOG, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE }, // DAC/VREFP
// ----------------------
// 35..40 QSPI (SCK, CS, IO0, IO1, IO2, IO3)
{ PORTB, 10, PIO_COM, PIN_ATTR_NONE, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE },
{ PORTB, 11, PIO_COM, PIN_ATTR_NONE, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE },
{ PORTA, 8, PIO_COM, PIN_ATTR_NONE, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE },
{ PORTA, 9, PIO_COM, PIN_ATTR_NONE, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE },
{ PORTA, 10, PIO_COM, PIN_ATTR_NONE, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE },
{ PORTA, 11, PIO_COM, PIN_ATTR_NONE, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE },
// 41..46 - TFT SPI port + control pins
// --------------------
{ PORTB, 15, PIO_SERCOM, PIN_ATTR_DIGITAL, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_15 }, // SERCOM 4.3 MOSI
{ PORTB, 13, PIO_SERCOM, PIN_ATTR_DIGITAL, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_13 }, // SERCOM 4.1 SCK
{ PORTB, 12, PIO_SERCOM, PIN_ATTR_DIGITAL, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_12 }, // SERCOM 4.0 'miso' (NC)
{ PORTB, 12, PIO_DIGITAL, PIN_ATTR_DIGITAL, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_12 }, // D44 TFT CS
{ PORTB, 5, PIO_DIGITAL, PIN_ATTR_DIGITAL, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_5 }, // D45 TFT DC
{ PORTA, 0, PIO_DIGITAL, PIN_ATTR_PWM_E, No_ADC_Channel, TC2_CH0, TC2_CH0, EXTERNAL_INT_0 }, // D46 TFT RST
// 47 - backlight
{ PORTA, 1, PIO_DIGITAL, PIN_ATTR_PWM_E, No_ADC_Channel, TC2_CH1, TC2_CH1, EXTERNAL_INT_1 }, // D47 TFT BACKLITE
// 48 - button control
{ PORTB, 31, PIO_DIGITAL, PIN_ATTR_DIGITAL, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_15 }, // D48 button clock
{ PORTB, 30, PIO_DIGITAL, PIN_ATTR_DIGITAL, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_14 }, // D49 button data
{ PORTB, 0, PIO_DIGITAL, PIN_ATTR_DIGITAL, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_0 }, // D50 button latch
// D51 Speaker enable
{ PORTA, 27, PIO_DIGITAL, PIN_ATTR_NONE, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE },
// ----------------------
// D52..D53 - Alternate use of A0 (DAC outputs)
{ PORTA, 2, PIO_ANALOG, PIN_ATTR_ANALOG, DAC_Channel0, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE }, // DAC/VOUT0
{ PORTA, 5, PIO_ANALOG, PIN_ATTR_ANALOG, DAC_Channel1, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE }, // DAC/VOUT1
} ;
const void* g_apTCInstances[TCC_INST_NUM+TC_INST_NUM]={ TCC0, TCC1, TCC2, TCC3, TCC4, TC0, TC1, TC2, TC3, TC4, TC5 } ;
const uint32_t GCLK_CLKCTRL_IDs[TCC_INST_NUM+TC_INST_NUM] = { TCC0_GCLK_ID, TCC1_GCLK_ID, TCC2_GCLK_ID, TCC3_GCLK_ID, TCC4_GCLK_ID, TC0_GCLK_ID, TC1_GCLK_ID, TC2_GCLK_ID, TC3_GCLK_ID, TC4_GCLK_ID, TC5_GCLK_ID } ;
// Multi-serial objects instantiation
SERCOM sercom0( SERCOM0 ) ;
SERCOM sercom1( SERCOM1 ) ;
SERCOM sercom2( SERCOM2 ) ;
SERCOM sercom3( SERCOM3 ) ;
SERCOM sercom4( SERCOM4 ) ;
SERCOM sercom5( SERCOM5 ) ;
Uart Serial1( &sercom5, PIN_SERIAL1_RX, PIN_SERIAL1_TX, PAD_SERIAL1_RX, PAD_SERIAL1_TX ) ;
void SERCOM5_0_Handler()
{
Serial1.IrqHandler();
}
void SERCOM5_1_Handler()
{
Serial1.IrqHandler();
}
void SERCOM5_2_Handler()
{
Serial1.IrqHandler();
}
void SERCOM5_3_Handler()
{
Serial1.IrqHandler();
}
|
; A181995: a(n) = if n mod 2 = 1 then n*(n - 1) else (n - 1)^2 + (n - 2)/2.
; 0,0,1,6,10,20,27,42,52,72,85,110,126,156,175,210,232,272,297,342,370,420,451,506,540,600,637,702,742,812,855,930,976,1056,1105,1190,1242,1332,1387,1482,1540,1640,1701,1806,1870,1980,2047,2162,2232,2352,2425,2550,2626,2756,2835,2970,3052,3192,3277,3422,3510,3660,3751,3906,4000,4160,4257,4422
mov $2,4
mov $3,$0
mul $0,2
sub $3,1
lpb $0,1
trn $0,$2
add $1,$3
add $1,$0
lpe
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1b201, %rsi
lea addresses_WC_ht+0x19761, %rdi
nop
cmp $40576, %r11
mov $16, %rcx
rep movsw
nop
nop
nop
nop
nop
and $44924, %r9
lea addresses_normal_ht+0x1e766, %rsi
lea addresses_normal_ht+0x14da1, %rdi
clflush (%rdi)
nop
nop
inc %rax
mov $88, %rcx
rep movsq
nop
nop
nop
dec %rcx
lea addresses_WT_ht+0x1db89, %r11
inc %r14
mov (%r11), %ecx
nop
nop
dec %rax
lea addresses_D_ht+0x179a1, %rsi
lea addresses_A_ht+0x1b4e1, %rdi
nop
nop
nop
nop
nop
cmp $51218, %rax
mov $31, %rcx
rep movsb
nop
nop
sub %rsi, %rsi
lea addresses_WT_ht+0x19a1, %r14
cmp %rsi, %rsi
movb $0x61, (%r14)
sub $37925, %rdi
lea addresses_WT_ht+0x68c9, %r11
nop
nop
nop
cmp $8276, %rdi
movb $0x61, (%r11)
add %rcx, %rcx
lea addresses_UC_ht+0x2d83, %rsi
clflush (%rsi)
cmp %r11, %r11
mov $0x6162636465666768, %r9
movq %r9, %xmm6
vmovups %ymm6, (%rsi)
nop
nop
xor %rcx, %rcx
lea addresses_A_ht+0x102a1, %rax
clflush (%rax)
nop
nop
nop
add %rcx, %rcx
movb (%rax), %r11b
nop
and %rsi, %rsi
lea addresses_A_ht+0xdd01, %r9
nop
nop
inc %r14
mov $0x6162636465666768, %r11
movq %r11, (%r9)
nop
nop
nop
nop
nop
inc %r11
lea addresses_D_ht+0x135a1, %r11
sub $45725, %r9
mov (%r11), %rax
nop
nop
nop
nop
nop
inc %r14
lea addresses_WC_ht+0x119a1, %rsi
lea addresses_WC_ht+0x1e9a1, %rdi
nop
nop
nop
nop
add %r11, %r11
mov $120, %rcx
rep movsq
nop
nop
nop
nop
xor $56256, %r11
lea addresses_WC_ht+0xbda1, %r9
nop
nop
sub $28602, %r14
movw $0x6162, (%r9)
nop
cmp %rdi, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r8
push %r9
push %rbx
push %rdi
// Store
lea addresses_normal+0x19284, %r9
add %rdi, %rdi
movl $0x51525354, (%r9)
nop
inc %r12
// Load
lea addresses_UC+0x10d21, %r10
nop
nop
nop
xor $22131, %rbx
mov (%r10), %r8w
nop
nop
nop
nop
nop
sub $51450, %rbx
// Faulty Load
lea addresses_UC+0xf9a1, %rbx
nop
nop
nop
and %r13, %r13
movb (%rbx), %r10b
lea oracles, %r8
and $0xff, %r10
shlq $12, %r10
mov (%r8,%r10,1), %r10
pop %rdi
pop %rbx
pop %r9
pop %r8
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_normal', 'AVXalign': False, 'size': 4}}
{'src': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_UC', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_WC_ht'}}
{'src': {'same': False, 'congruent': 0, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_normal_ht'}}
{'src': {'NT': False, 'same': True, 'congruent': 3, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 10, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32}}
{'src': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8}}
{'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 7, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2}}
{'00': 21829}
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 00 00 00 00 00 00 00 00
*/
|
; A138988: a(n) = Frobenius number for 8 successive numbers = F(n+1,n+2,n+3,n+4,n+5,n+6,n+7,n+8).
; 1,2,3,4,5,6,7,17,19,21,23,25,27,29,47,50,53,56,59,62,65,91,95,99,103,107,111,115,149,154,159,164,169,174,179,221,227,233,239,245,251,257,307,314,321,328,335,342,349,407,415,423,431,439,447,455,521,530,539
mov $1,$0
add $0,2
div $1,7
mul $1,$0
add $1,$0
sub $1,1
|
; A105209: Nearest integer to the cube root of n.
; 1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5
add $0,2
mov $1,4
mov $2,6
mov $3,3
lpb $0
sub $0,1
trn $0,$3
add $1,1
add $2,5
add $3,$2
add $2,2
sub $3,3
lpe
sub $1,4
|
; A170260: Number of reduced words of length n in Coxeter group on 11 generators S_i with relations (S_i)^2 = (S_i S_j)^41 = I.
; 1,11,110,1100,11000,110000,1100000,11000000,110000000,1100000000,11000000000,110000000000,1100000000000,11000000000000,110000000000000,1100000000000000,11000000000000000,110000000000000000
seq $0,3953 ; Expansion of g.f.: (1+x)/(1-10*x).
|
/* /////////////////////////////////////////////////////////////////////////
* File: stlsoft/util/std/iterator_generators.hpp (derived in part from stlsoft_iterator.h)
*
* Purpose: Iterator generator classes, and helper macros.
*
* Created: 2nd January 2000
* Updated: 10th August 2009
*
* Home: http://stlsoft.org/
*
* Copyright (c) 2000-2009, Matthew Wilson and Synesis Software
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* - Neither the name(s) of Matthew Wilson and Synesis Software nor the names of
* any contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* ////////////////////////////////////////////////////////////////////// */
/** \file stlsoft/util/std/iterator_generators.hpp
*
* \brief [C++ only] Definition of the stlsoft::reverse_iterator_generator
* and stlsoft::const_reverse_iterator_generator iterator
* \ref group__pattern__type_generator "generator" templates
* (\ref group__library__utility "Utility" Library).
*/
#ifndef STLSOFT_INCL_STLSOFT_UTIL_STD_HPP_ITERATOR_GENERATORS
#define STLSOFT_INCL_STLSOFT_UTIL_STD_HPP_ITERATOR_GENERATORS
#ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
# define STLSOFT_VER_STLSOFT_UTIL_STD_HPP_ITERATOR_GENERATORS_MAJOR 3
# define STLSOFT_VER_STLSOFT_UTIL_STD_HPP_ITERATOR_GENERATORS_MINOR 3
# define STLSOFT_VER_STLSOFT_UTIL_STD_HPP_ITERATOR_GENERATORS_REVISION 1
# define STLSOFT_VER_STLSOFT_UTIL_STD_HPP_ITERATOR_GENERATORS_EDIT 93
#endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */
/* /////////////////////////////////////////////////////////////////////////
* Auto-generation and compatibility
*/
/*
[<[STLSOFT-AUTO:NO-UNITTEST]>]
*/
/* /////////////////////////////////////////////////////////////////////////
* Includes
*/
#ifndef STLSOFT_INCL_STLSOFT_H_STLSOFT
# include <stlsoft/stlsoft.h>
#endif /* !STLSOFT_INCL_STLSOFT_H_STLSOFT */
#ifndef STLSOFT_INCL_STLSOFT_UTIL_STD_HPP_ITERATOR_HELPER
# include <stlsoft/util/std/iterator_helper.hpp>
#endif /* !STLSOFT_INCL_STLSOFT_UTIL_STD_HPP_ITERATOR_HELPER */
/* /////////////////////////////////////////////////////////////////////////
* Namespace
*/
#ifndef _STLSOFT_NO_NAMESPACE
namespace stlsoft
{
#endif /* _STLSOFT_NO_NAMESPACE */
/* /////////////////////////////////////////////////////////////////////////
* Generator classes
*/
#ifdef STLSOFT_LF_BIDIRECTIONAL_ITERATOR_SUPPORT
template< ss_typename_param_k I /* iterator */
, ss_typename_param_k V /* value type */
, ss_typename_param_k R /* reference */
, ss_typename_param_k P /* pointer */
, ss_typename_param_k D /* distance type */
>
struct reverse_iterator_generator
{
public:
#if defined(STLSOFT_COMPILER_IS_COMO)
typedef std::reverse_iterator<I> type;
#elif 0
typedef reverse_iterator_base<I, V, R, P, D> type;
#else /* ? compiler */
typedef ss_typename_type_k reverse_iterator_base<I, V, R, P, D>::parent_class_type type;
#endif /* compiler */
};
template< ss_typename_param_k I /* iterator */
, ss_typename_param_k V /* value type */
, ss_typename_param_k R /* reference */
, ss_typename_param_k P /* pointer */
, ss_typename_param_k D /* distance type */
>
struct const_reverse_iterator_generator
{
public:
#if defined(STLSOFT_COMPILER_IS_COMO)
typedef std::reverse_iterator<I> type;
#elif 0
typedef const_reverse_iterator_base<I, V, R, P, D> type;
#else /* ? compiler */
typedef ss_typename_type_k const_reverse_iterator_base<I, V, R, P, D>::parent_class_type type;
#endif /* compiler */
};
#endif /* STLSOFT_LF_BIDIRECTIONAL_ITERATOR_SUPPORT */
/* ////////////////////////////////////////////////////////////////////// */
#ifndef _STLSOFT_NO_NAMESPACE
} // namespace stlsoft
#endif /* _STLSOFT_NO_NAMESPACE */
/* ////////////////////////////////////////////////////////////////////// */
#endif /* !STLSOFT_INCL_STLSOFT_UTIL_STD_HPP_ITERATOR_GENERATORS */
/* ///////////////////////////// end of file //////////////////////////// */
|
/*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <AzCore/Serialization/SerializeContext.h>
#include <Atom/RHI.Reflect/ShaderInputNameIndex.h>
#include <Atom/RHI.Reflect/ShaderResourceGroupLayout.h>
namespace AZ
{
namespace RHI
{
// --- Constructors, assignment and reflection ---
ShaderInputNameIndex::ShaderInputNameIndex(Name name)
{
*this = name;
}
ShaderInputNameIndex::ShaderInputNameIndex(const char* name)
{
*this = name;
}
void ShaderInputNameIndex::operator=(Name name)
{
Reset();
m_name = name;
}
void ShaderInputNameIndex::operator=(const char* name)
{
Reset();
m_name = Name(name);
}
void ShaderInputNameIndex::Reflect(AZ::ReflectContext* context)
{
if (auto* serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
{
// Only serialize the Name field since the rest of the members are derived from the name at runtime
serializeContext->Class<ShaderInputNameIndex>()
->Version(0)
->Field("Name", &ShaderInputNameIndex::m_name);
}
}
// --- Functions for initializing the index ---
void ShaderInputNameIndex::Initialize(IndexType indexType)
{
AssertHasName();
m_initialized = true;
m_inputType = indexType;
}
void ShaderInputNameIndex::FindBufferIndex(const ShaderResourceGroupLayout* srgLayout)
{
Initialize(IndexType::ShaderBuffer);
m_index = Handle<>(srgLayout->FindShaderInputBufferIndex(m_name).GetIndex());
}
void ShaderInputNameIndex::FindImageIndex(const ShaderResourceGroupLayout* srgLayout)
{
Initialize(IndexType::ShaderImage);
m_index = Handle<>(srgLayout->FindShaderInputImageIndex(m_name).GetIndex());
}
void ShaderInputNameIndex::FindSamplerIndex(const ShaderResourceGroupLayout* srgLayout)
{
Initialize(IndexType::ShaderSampler);
m_index = Handle<>(srgLayout->FindShaderInputSamplerIndex(m_name).GetIndex());
}
void ShaderInputNameIndex::FindConstantIndex(const ShaderResourceGroupLayout* srgLayout)
{
Initialize(IndexType::ShaderConstant);
m_index = Handle<>(srgLayout->FindShaderInputConstantIndex(m_name).GetIndex());
}
// --- Functions for checking if the index is initialized and retrieving it if not
bool ShaderInputNameIndex::ValidateOrFindBufferIndex(const ShaderResourceGroupLayout* srgLayout)
{
if (IsValid()) // 99% use case, check this first for a quick early out
{
return true;
}
if (!m_initialized)
{
FindBufferIndex(srgLayout);
return IsValid();
}
return false;
}
bool ShaderInputNameIndex::ValidateOrFindImageIndex(const ShaderResourceGroupLayout* srgLayout)
{
if (IsValid()) // 99% use case, check this first for a quick early out
{
return true;
}
if (!m_initialized)
{
FindImageIndex(srgLayout);
return IsValid();
}
return false;
}
bool ShaderInputNameIndex::ValidateOrFindSamplerIndex(const ShaderResourceGroupLayout* srgLayout)
{
if (IsValid()) // 99% use case, check this first for a quick early out
{
return true;
}
if (!m_initialized)
{
FindSamplerIndex(srgLayout);
return IsValid();
}
return false;
}
bool ShaderInputNameIndex::ValidateOrFindConstantIndex(const ShaderResourceGroupLayout* srgLayout)
{
if (IsValid()) // 99% use case, check this first for a quick early out
{
return true;
}
if (!m_initialized)
{
FindConstantIndex(srgLayout);
return IsValid();
}
return false;
}
// --- Index getters with assertions ---
u32 ShaderInputNameIndex::GetIndex() const
{
AssertValid();
return m_index.GetIndex();
}
template<typename T>
T ShaderInputNameIndex::GetIndexAs() const
{
return static_cast<T>(GetIndex());
}
ShaderInputBufferIndex ShaderInputNameIndex::GetBufferIndex() const
{
AZ_Assert(m_inputType == IndexType::ShaderBuffer, "ShaderInputNameIndex [%s] being cast as BufferIndex but is not of Buffer type!", m_name.GetCStr());
return GetIndexAs<ShaderInputBufferIndex>();
}
ShaderInputImageIndex ShaderInputNameIndex::GetImageIndex() const
{
AZ_Assert(m_inputType == IndexType::ShaderImage, "ShaderInputNameIndex [%s] being cast as ImageIndex but is not of Image type!", m_name.GetCStr());
return GetIndexAs<ShaderInputImageIndex>();
}
ShaderInputSamplerIndex ShaderInputNameIndex::GetSamplerIndex() const
{
AZ_Assert(m_inputType == IndexType::ShaderSampler, "ShaderInputNameIndex [%s] being cast as SamplerIndex but is not of Sampler type!", m_name.GetCStr());
return GetIndexAs<ShaderInputSamplerIndex>();
}
ShaderInputConstantIndex ShaderInputNameIndex::GetConstantIndex() const
{
AZ_Assert(m_inputType == IndexType::ShaderConstant, "ShaderInputNameIndex [%s] being cast as ConstantIndex but is not of Constant type!", m_name.GetCStr());
return GetIndexAs<ShaderInputConstantIndex>();
}
ShaderInputStaticSamplerIndex ShaderInputNameIndex::GetStaticSamplerIndex() const
{
AZ_Assert(m_inputType == IndexType::ShaderSampler, "ShaderInputNameIndex [%s] being cast as SamplerIndex but is not of Sampler type!", m_name.GetCStr());
return GetIndexAs<ShaderInputStaticSamplerIndex>();
}
// --- Reset & Clear ---
void ShaderInputNameIndex::Reset()
{
m_index.Reset();
m_initialized = false;
m_inputType = IndexType::InvalidIndex;
}
// --- Checks and asserts ---
bool ShaderInputNameIndex::HasName() const
{
return !m_name.IsEmpty();
}
void ShaderInputNameIndex::AssertHasName() const
{
AZ_Assert(HasName(), "ShaderInputNameIndex does not have a valid Name. Please initialize with a valid Name.");
}
bool ShaderInputNameIndex::IsValid() const
{
return m_index.IsValid();
}
void ShaderInputNameIndex::AssertValid() const
{
AZ_Assert(IsValid(), "ShaderInputNameIndex [%s] does not have a valid index. Please initialize with the Shader Resource Group.", m_name.GetCStr());
}
bool ShaderInputNameIndex::IsInitialized() const
{
return m_initialized;
}
void ShaderInputNameIndex::AssetInialized() const
{
AZ_Assert(IsInitialized(), "ShaderInputNameIndex [%s] has not been initialized. Please initialize with the Shader Resource Group.", m_name.GetCStr());
}
}
}
|
;
; Generic pseudo graphics routines for text-only platforms
;
; Written by Stefano Bodrato 30/01/2002
;
;
; Plot pixel at (x,y) coordinate.
;
;
; $Id: plotpixl.asm $
;
INCLUDE "graphics/grafix.inc"
SECTION code_clib
PUBLIC plotpixel
EXTERN textpixl
EXTERN __gfx_coords
EXTERN base_graphics
.plotpixel
ld a,h
cp maxx
ret nc
ld a,l
cp maxy
ret nc ; y0 out of range
ld (__gfx_coords),hl
push bc
ld c,a
ld b,h
push bc
srl b
srl c
ld hl,(base_graphics)
ld a,c
ld c,b ; !!
and a
ld b,a
ld de,maxx/2
jr z,r_zero
.r_loop
add hl,de
djnz r_loop
.r_zero ; hl = char address
ld e,c
add hl,de
ld a,(hl) ; get current symbol
ld e,a
push hl
ld hl,textpixl
ld e,0
ld b,16
.ckmap cp (hl)
jr z,chfound
inc hl
inc e
djnz ckmap
ld e,0
.chfound ld a,e
pop hl
ex (sp),hl ; save char address <=> restore x,y
ld b,a
ld a,1 ; the bit we want to draw
bit 0,h
jr z,iseven
add a,a ; move right the bit
.iseven
bit 0,l
jr z,evenrow
add a,a
add a,a ; move down the bit
.evenrow
or b
ld hl,textpixl
ld d,0
ld e,a
add hl,de
ld a,(hl)
pop hl
ld (hl),a
pop bc
ret
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x7bb5, %rsi
lea addresses_WT_ht+0x14439, %rdi
nop
nop
inc %r10
mov $24, %rcx
rep movsb
nop
nop
nop
nop
nop
cmp $63030, %r10
lea addresses_UC_ht+0x74b5, %rsi
clflush (%rsi)
xor $41188, %rdi
movw $0x6162, (%rsi)
nop
nop
nop
inc %rcx
lea addresses_WT_ht+0x1beb5, %rsi
lea addresses_WC_ht+0xf835, %rdi
nop
nop
nop
nop
nop
dec %r10
mov $42, %rcx
rep movsq
nop
nop
nop
nop
nop
inc %r10
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r9
push %rbp
push %rcx
push %rdx
// Store
lea addresses_WT+0xfab5, %rcx
nop
nop
xor $6664, %rbp
movw $0x5152, (%rcx)
nop
nop
nop
xor $663, %r9
// Faulty Load
lea addresses_D+0x16b5, %r9
sub $26205, %rdx
mov (%r9), %r12
lea oracles, %r9
and $0xff, %r12
shlq $12, %r12
mov (%r9,%r12,1), %r12
pop %rdx
pop %rcx
pop %rbp
pop %r9
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}}
{'36': 7746}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
|
; A195173: a(n) = 5*n - floor(2n*r), where r=(1+sqrt(5))/2 (the golden ratio).
; 0,2,4,6,8,9,11,13,15,16,18,20,22,23,25,27,29,30,32,34,36,38,39,41,43,45,46,48,50,52,53,55,57,59,60,62,64,66,68,69,71,73,75,76,78,80,82,83,85,87,89,90,92,94,96,98,99,101,103,105,106,108,110,112,113,115,117,119,120,122,124,126,128,129,131,133,135,136,138,140,142,143,145,147,149,150,152,154,156,157,159,161,163,165,166,168,170,172,173,175
mov $1,$0
mul $1,2
seq $1,189663 ; Partial sums of A189661.
add $0,$1
|
[map symbols app_c.map]
[SECTION .s32]
BITS 32
call main
mov edx, 4 ;返回内核
int 02Dh
api_putchar:
mov edx, 1
mov al, [esp + 4]
int 02Dh
ret
api_putstr: ;void api_putstr(char* s)
push ebx
mov edx, 2
mov ebx, [ESP+8]
int 02Dh
pop ebx
ret
api_openwin: ;int api_openwin(char*buf, int xsiz, int ysiz, int col_inv, char*title)
push edi
push esi
push ebx
mov edx, 5
mov ebx, [esp+16] ;buf
mov esi, [esp+20] ;xsiz
mov edi, [esp+24] ;ysiz
mov eax, [esp+28] ;col_inv
mov ecx, [esp+32] ;title
int 02Dh
pop ebx
pop esi
pop edi
ret
api_putstrwin: ;void api_putstrwin(int win, int x, int y, int col, int len, char* str)
push edi
push esi
push ebp
push ebx
mov edx, 6
mov ebx, [esp+20] ;win
mov esi, [esp+24] ;x
mov edi, [esp+28] ;y
mov eax, [esp+32] ;col
mov ecx, [esp+36] ;len
mov ebp, [esp+40] ;str
int 02Dh
pop ebx
pop ebp
pop esi
pop edi
ret
api_boxfilwin: ;void api_boxfilwin(int win, int x0, int y0,int x1, int y1, int col)
push edi
push esi
push ebp
push ebx
mov edx, 7
mov ebx, [esp+20] ;win
mov eax, [esp+24] ;x0
mov ecx, [esp+28] ;y0
mov esi, [esp+32] ;x1
mov edi, [esp+36] ;y1
mov ebp, [esp+40] ;col
int 02DH
pop ebx
pop ebp
pop esi
pop edi
ret
api_point: ;void api_point(int win, int x, int y, int col)
push edi
push esi
push ebx
mov edx, 11
mov ebx, [esp+16] ;win
mov esi, [esp+20] ;x
mov edi, [esp+24] ;y
mov eax, [esp+28] ;col
int 02Dh
pop ebx
pop esi
pop edi
ret
api_refreshwin: ;void api_refreshwin(int win, int x0, int y0, int x1, int y1)
push edi
push esi
push ebx
mov edx, 12
mov ebx, [esp+16] ; win
mov eax, [esp+20] ;x0
mov ecx, [esp+24] ;y0
mov esi, [esp+28] ;x1
mov edi, [esp+32] ;y1
int 02Dh
pop ebx
pop esi
pop edi
ret
api_linewin: ;void api_linewin(int win, int x0, int y0, int x1, int y1, int col)
push edi
push esi
push ebp
push ebx
mov edx, 13
mov ebx, [esp+20] ;win
mov eax, [esp+24] ;x0
mov ecx, [esp+28] ;y0
mov esi, [esp+32] ;x1
mov edi, [esp+36] ;y1
mov ebp, [esp+40] ;col
int 02Dh
pop ebx
pop ebp
pop esi
pop edi
ret
api_closewin: ;void api_closewin(int win);
push ebx
mov edx, 14
mov ebx, [esp+8]
int 02Dh
pop ebx
ret
api_getkey: ;int api_getkey(int mode)
mov edx, 15
mov eax, [esp+4] ;mode
int 02Dh
ret
%include "app.asm" |
; A135516: a(0)=1; a(n) = (Product_{i=1..n} prime(i)^2) - 1, where prime(i) is the i-th prime.
; 1,3,35,899,44099,5336099,901800899,260620460099,94083986096099,49770428644836899,41856930490307832899,40224510201185827416899,55067354465423397733736099,92568222856376731590410384099,171158644061440576710668800200899,378089444731722233953867379643788099,1062053250251407755176413469419400772899,3697007364125150395769095287048934090464899,13756564401909684622656803563109083750619892899,61753217600172574271106391194796676956532699228099,311297969922469946900647318012970048537881336808852099
seq $0,2110 ; Primorial numbers (first definition): product of first n primes. Sometimes written prime(n)#.
pow $0,2
trn $0,2
add $0,1
|
[SECTION .text]
[GLOBAL read_cr0]
read_cr0:
push ebp
mov ebp, esp
mov eax, cr0
pop ebp
retn
[GLOBAL write_cr0]
write_cr0:
push ebp
mov ebp, esp
mov eax, dword[ebp+8]
mov cr0, eax
pop ebp
retn
[GLOBAL read_cr3]
read_cr3:
push ebp
mov ebp, esp
mov eax, cr3
pop ebp
retn
[GLOBAL write_cr3]
write_cr3:
push ebp
mov ebp, esp
mov eax, dword[ebp+8]
mov cr3, eax
pop ebp
retn
|
; A154621: Primes congruent to 32 mod 67.
; Submitted by Jon Maiga
; 233,367,769,1171,1439,2243,2377,3181,3449,3583,3851,4253,4789,5861,6263,6397,7603,8273,9479,9613,11087,11489,12829,13499,13633,13901,14303,14437,15107,15241,15643,16447,17117,17519,17921,18457,18859,20333,21673,22343,23549,24889,25693,26497,28909,29311,30517,31321,31723,31991,33331,33599,34403,34537,34939,36011,37217,37619,38557,38959,39227,40031,40433,42443,42577,42979,43649,43783,44453,44587,45659,46061,48473,49009,49277,49411,51287,51421,52627,53699,54101,54503,55441,55843,57719,57853,58657
mov $1,2
mov $2,$0
add $2,2
pow $2,2
lpb $2
add $1,29
sub $2,1
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,38
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
mov $0,$1
sub $0,37
|
.model small
.data
.code
mov ah, 1h ; 01h DOS interrupt for READ CHARACTER FROM STANDARD INPUT, WITH ECHO, character stored in al not ah! ah is for read only!
int 21h ; execute the 21h interrupt
mov dl, al ; move the character from al to dl
mov ah, 2h ; 02h DOS interrupt for WRITE CHARACTER TO STANDARD OUTPUT, goes to dl register for the character, that's why we moved
; the content from al to dl
int 21h ; exectue the 21h interrupt
end ; end
|
/*
* Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Copyright (c) 2016-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#include "arm_compute/core/CL/kernels/CLBinaryLogicalOpKernel.h"
#include "arm_compute/core/CL/CLHelpers.h"
#include "arm_compute/core/CL/CLKernelLibraryEx.h"
#include "arm_compute/core/CL/ICLTensor.h"
#include "support/StringSupport.h"
using namespace arm_compute;
namespace
{
constexpr unsigned int num_elems_processed_per_iteration = 16;
Status validate_parameters(const ITensorInfo *input1, const ITensorInfo *input2,
const ITensorInfo *output)
{
const TensorShape &out_shape =
TensorShape::broadcast_shape(input1->tensor_shape(), input2->tensor_shape());
ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input1, 1, DataType::U8, DataType::QASYMM8);
ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input2, 1, DataType::U8, DataType::QASYMM8);
ARM_COMPUTE_RETURN_ERROR_ON_MSG(out_shape.total_size() == 0,
"Inputs are not broadcast compatible");
// Validate in case of configured output
if (output->total_size() > 0)
{
ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(output, 1, DataType::U8,
DataType::QASYMM8);
ARM_COMPUTE_RETURN_ERROR_ON_MSG(
detail::have_different_dimensions(out_shape, output->tensor_shape(), 0),
"Wrong shape for output");
}
return Status{};
}
} // namespace
CLBinaryLogicalOpKernel::CLBinaryLogicalOpKernel()
: _input1(nullptr), _input2(nullptr), _output(nullptr)
{
}
void CLBinaryLogicalOpKernel::configure(const ICLTensor *input1, const ICLTensor *input2,
ICLTensor *output, BinaryLogicalOperation op)
{
ARM_COMPUTE_ERROR_ON_MISMATCHING_DATA_TYPES(input1, input2);
ARM_COMPUTE_ERROR_ON_MISMATCHING_DATA_TYPES(input1, output);
ARM_COMPUTE_ERROR_THROW_ON(validate_parameters(input1->info(), input2->info(), output->info()));
_input1 = input1;
_input2 = input2;
_output = output;
// Create kernel
std::string kernel_name = "binary_logical_op";
std::set<std::string> build_opts;
build_opts.emplace(("-DDATA_TYPE=" + get_cl_type_from_data_type(input1->info()->data_type())));
int op_code = 0;
switch (op)
{
case BinaryLogicalOperation::AND:
op_code = 1;
break;
case BinaryLogicalOperation::OR:
op_code = 2;
break;
default:
throw std::runtime_error("Operation not supported, yet");
}
build_opts.emplace(("-DOP_CODE=" + support::cpp11::to_string(op_code)));
build_opts.emplace(
("-DVEC_SIZE=" + support::cpp11::to_string(num_elems_processed_per_iteration)));
_kernel =
static_cast<cl::Kernel>(CLKernelLibraryEx::get().create_kernel(kernel_name, build_opts));
const std::pair<TensorShape, ValidRegion> broadcast_pair =
ITensorInfo::broadcast_shape_and_valid_region(*input1->info(), *input2->info());
const ValidRegion &valid_region = broadcast_pair.second;
Window win = calculate_max_window(valid_region, Steps(num_elems_processed_per_iteration));
Window win_input1 = win.broadcast_if_dimension_le_one(*input1->info());
Window win_input2 = win.broadcast_if_dimension_le_one(*input2->info());
AccessWindowHorizontal input1_access(input1->info(), 0, num_elems_processed_per_iteration);
AccessWindowHorizontal input2_access(input2->info(), 0, num_elems_processed_per_iteration);
AccessWindowHorizontal output_access(output->info(), 0, num_elems_processed_per_iteration);
update_window_and_padding(win_input1, input1_access) ||
update_window_and_padding(win_input2, input2_access) ||
update_window_and_padding(win, output_access);
output_access.set_valid_region(win, valid_region);
ICLKernel::configure_internal(win);
}
void CLBinaryLogicalOpKernel::run(const Window &window, cl::CommandQueue &queue)
{
ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(this);
ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(ICLKernel::window(), window);
const TensorShape &in_shape1 = _input1->info()->tensor_shape();
const TensorShape &in_shape2 = _input2->info()->tensor_shape();
const TensorShape &out_shape = _output->info()->tensor_shape();
bool can_collapse = true;
if (std::min(in_shape1.total_size(), in_shape2.total_size()) > 1)
{
can_collapse =
(std::min(in_shape1.num_dimensions(), in_shape2.num_dimensions()) > Window::DimZ);
for (size_t d = Window::DimZ; can_collapse && (d < out_shape.num_dimensions()); d++)
{
can_collapse = (in_shape1[d] == in_shape2[d]);
}
}
bool has_collapsed = false;
Window collapsed =
can_collapse ? window.collapse_if_possible(ICLKernel::window(), Window::DimZ, &has_collapsed)
: window;
const TensorShape &in_shape1_collapsed =
has_collapsed ? in_shape1.collapsed_from(Window::DimZ) : in_shape1;
const TensorShape &in_shape2_collapsed =
has_collapsed ? in_shape2.collapsed_from(Window::DimZ) : in_shape2;
Window slice = collapsed.first_slice_window_3D();
Window slice_input1 = slice.broadcast_if_dimension_le_one(in_shape1_collapsed);
Window slice_input2 = slice.broadcast_if_dimension_le_one(in_shape2_collapsed);
do
{
unsigned int idx = 0;
add_3D_tensor_argument(idx, _input1, slice_input1);
add_3D_tensor_argument(idx, _input2, slice_input2);
add_3D_tensor_argument(idx, _output, slice);
enqueue(queue, *this, slice);
collapsed.slide_window_slice_3D(slice_input1);
collapsed.slide_window_slice_3D(slice_input2);
} while (collapsed.slide_window_slice_3D(slice));
}
BorderSize CLBinaryLogicalOpKernel::border_size() const
{
const unsigned int replicateSize =
_output->info()->dimension(0) -
std::min(_input1->info()->dimension(0), _input2->info()->dimension(0));
const unsigned int border =
std::min<unsigned int>(num_elems_processed_per_iteration - 1U, replicateSize);
return BorderSize(0, border, 0, 0);
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.