summaryrefslogtreecommitdiffstats
path: root/awlsim/core/datastructure.pxd.in
blob: 01e795647561cee37ada6a9742e6a464bc976369 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from awlsim.core.memory cimport *
from awlsim.core.offset cimport *

cdef class AwlStructField(object):
	cdef public object name
	cdef public AwlOffset offset
	cdef public object dataType
	cdef public object initBytes
	cdef public AwlStructField override
	cdef public AwlStructField finalOverride
	cdef public uint32_t bitSize
	cdef public uint32_t byteSize
	cdef public _Bool compound
	cdef public _Bool callByRef

	cdef __eq(self, other)

cdef class AwlStruct(object):
	cdef public list fields
	cdef public dict name2field

	cdef __eq(self, other)

cdef class AwlStructInstance(object):
	cdef public AwlStruct _struct
	cdef public AwlMemory memory

	cdef object getFieldData(self, AwlStructField field, AwlOffset baseOffset)
	cdef setFieldData(self, AwlStructField field, object value, AwlOffset baseOffset)
bues.ch cgit interface