<reponame>smarek/ci_targets
from construct import *
from construct.lib import *

non_standard = Struct(
	'foo' / Int8ub,
	'bar' / Switch(this.foo, {42: Int16ul, 43: Int32ul, }),
	'vi' / Computed(lambda this: this.foo),
	'pi' / Pointer(0, Int8ub),
)

_schema = non_standard

from construct import *
from construct.lib import *

non_standard = Struct(
	'foo' / Int8ub,
	'bar' / Switch(this.foo, {42: Int16ul, 43: Int32ul, }),
	'vi' / Computed(lambda this: this.foo),
	'pi' / Pointer(0, Int8ub),
)

_schema = non_standard