Added custom DataPointer transforms

This commit is contained in:
kevstone 2023-11-08 18:52:32 +00:00
parent 689fd1a10c
commit 78da6c24f7
16 changed files with 256 additions and 0 deletions

View File

@ -0,0 +1,16 @@
from accessor_specific.default import AccessorSpecific
import arg
class BitsDataAccessorSpecific(AccessorSpecific):
def __init__(self) -> None:
super().__init__()
custom_arg_transforms = {
arg.Arg("unsigned char*","p") : arg.Arg("DataPointer","p"),
}
def add_custom_transforms(self, transforms):
for carg, cpparg in self.custom_arg_transforms.items():
transforms.add_custom_args(carg, cpparg)
return transforms

View File

@ -0,0 +1,16 @@
from accessor_specific.default import AccessorSpecific
import arg
class CountMissingDataAccessorSpecific(AccessorSpecific):
def __init__(self) -> None:
super().__init__()
custom_arg_transforms = {
arg.Arg("unsigned char*","p") : arg.Arg("DataPointer","p"),
}
def add_custom_transforms(self, transforms):
for carg, cpparg in self.custom_arg_transforms.items():
transforms.add_custom_args(carg, cpparg)
return transforms

View File

@ -0,0 +1,16 @@
from accessor_specific.default import AccessorSpecific
import arg
class DataG1secondOrderConstantWidthPackingDataAccessorSpecific(AccessorSpecific):
def __init__(self) -> None:
super().__init__()
custom_arg_transforms = {
arg.Arg("unsigned char*","buf") : arg.Arg("DataPointer","buf"),
}
def add_custom_transforms(self, transforms):
for carg, cpparg in self.custom_arg_transforms.items():
transforms.add_custom_args(carg, cpparg)
return transforms

View File

@ -0,0 +1,16 @@
from accessor_specific.default import AccessorSpecific
import arg
class DataG1secondOrderGeneralPackingDataAccessorSpecific(AccessorSpecific):
def __init__(self) -> None:
super().__init__()
custom_arg_transforms = {
arg.Arg("unsigned char*","buf") : arg.Arg("DataPointer","buf"),
}
def add_custom_transforms(self, transforms):
for carg, cpparg in self.custom_arg_transforms.items():
transforms.add_custom_args(carg, cpparg)
return transforms

View File

@ -0,0 +1,16 @@
from accessor_specific.default import AccessorSpecific
import arg
class DataRawPackingDataAccessorSpecific(AccessorSpecific):
def __init__(self) -> None:
super().__init__()
custom_arg_transforms = {
arg.Arg("unsigned char*","buf") : arg.Arg("DataPointer","buf"),
}
def add_custom_transforms(self, transforms):
for carg, cpparg in self.custom_arg_transforms.items():
transforms.add_custom_args(carg, cpparg)
return transforms

View File

@ -0,0 +1,16 @@
from accessor_specific.default import AccessorSpecific
import arg
class DataRunLengthPackingDataAccessorSpecific(AccessorSpecific):
def __init__(self) -> None:
super().__init__()
custom_arg_transforms = {
arg.Arg("unsigned char*","buf") : arg.Arg("DataPointer","buf"),
}
def add_custom_transforms(self, transforms):
for carg, cpparg in self.custom_arg_transforms.items():
transforms.add_custom_args(carg, cpparg)
return transforms

View File

@ -0,0 +1,16 @@
from accessor_specific.default import AccessorSpecific
import arg
class DataShPackedDataAccessorSpecific(AccessorSpecific):
def __init__(self) -> None:
super().__init__()
custom_arg_transforms = {
arg.Arg("unsigned char*","buf") : arg.Arg("DataPointer","buf"),
}
def add_custom_transforms(self, transforms):
for carg, cpparg in self.custom_arg_transforms.items():
transforms.add_custom_args(carg, cpparg)
return transforms

View File

@ -0,0 +1,16 @@
from accessor_specific.default import AccessorSpecific
import arg
class DataShUnpackedDataAccessorSpecific(AccessorSpecific):
def __init__(self) -> None:
super().__init__()
custom_arg_transforms = {
arg.Arg("unsigned char*","buf") : arg.Arg("DataPointer","buf"),
}
def add_custom_transforms(self, transforms):
for carg, cpparg in self.custom_arg_transforms.items():
transforms.add_custom_args(carg, cpparg)
return transforms

View File

@ -0,0 +1,16 @@
from accessor_specific.default import AccessorSpecific
import arg
class DataSimplePackingDataAccessorSpecific(AccessorSpecific):
def __init__(self) -> None:
super().__init__()
custom_arg_transforms = {
arg.Arg("unsigned char*","buf") : arg.Arg("DataPointer","buf"),
}
def add_custom_transforms(self, transforms):
for carg, cpparg in self.custom_arg_transforms.items():
transforms.add_custom_args(carg, cpparg)
return transforms

View File

@ -0,0 +1,16 @@
from accessor_specific.default import AccessorSpecific
import arg
class G1HalfByteCodeflagDataAccessorSpecific(AccessorSpecific):
def __init__(self) -> None:
super().__init__()
custom_arg_transforms = {
arg.Arg("unsigned char*","dat") : arg.Arg("DataPointer","dat"),
}
def add_custom_transforms(self, transforms):
for carg, cpparg in self.custom_arg_transforms.items():
transforms.add_custom_args(carg, cpparg)
return transforms

View File

@ -0,0 +1,16 @@
from accessor_specific.default import AccessorSpecific
import arg
class G1BitmapDataAccessorSpecific(AccessorSpecific):
def __init__(self) -> None:
super().__init__()
custom_arg_transforms = {
arg.Arg("unsigned char*","buf") : arg.Arg("DataPointer","buf"),
}
def add_custom_transforms(self, transforms):
for carg, cpparg in self.custom_arg_transforms.items():
transforms.add_custom_args(carg, cpparg)
return transforms

View File

@ -0,0 +1,16 @@
from accessor_specific.default import AccessorSpecific
import arg
class Md5DataAccessorSpecific(AccessorSpecific):
def __init__(self) -> None:
super().__init__()
custom_arg_transforms = {
arg.Arg("unsigned char*","mess") : arg.Arg("DataPointer","mess"),
}
def add_custom_transforms(self, transforms):
for carg, cpparg in self.custom_arg_transforms.items():
transforms.add_custom_args(carg, cpparg)
return transforms

View File

@ -0,0 +1,16 @@
from accessor_specific.default import AccessorSpecific
import arg
class MessageCopyDataAccessorSpecific(AccessorSpecific):
def __init__(self) -> None:
super().__init__()
custom_arg_transforms = {
arg.Arg("unsigned char*","v") : arg.Arg("DataPointer","v"),
}
def add_custom_transforms(self, transforms):
for carg, cpparg in self.custom_arg_transforms.items():
transforms.add_custom_args(carg, cpparg)
return transforms

View File

@ -0,0 +1,16 @@
from accessor_specific.default import AccessorSpecific
import arg
class Uint64DataAccessorSpecific(AccessorSpecific):
def __init__(self) -> None:
super().__init__()
custom_arg_transforms = {
arg.Arg("unsigned char*","data") : arg.Arg("DataPointer","data"),
}
def add_custom_transforms(self, transforms):
for carg, cpparg in self.custom_arg_transforms.items():
transforms.add_custom_args(carg, cpparg)
return transforms

View File

@ -0,0 +1,16 @@
from accessor_specific.default import AccessorSpecific
import arg
class Uint64LittleEndianDataAccessorSpecific(AccessorSpecific):
def __init__(self) -> None:
super().__init__()
custom_arg_transforms = {
arg.Arg("unsigned char*","data") : arg.Arg("DataPointer","data"),
}
def add_custom_transforms(self, transforms):
for carg, cpparg in self.custom_arg_transforms.items():
transforms.add_custom_args(carg, cpparg)
return transforms

View File

@ -0,0 +1,16 @@
from accessor_specific.default import AccessorSpecific
import arg
class Uint8DataAccessorSpecific(AccessorSpecific):
def __init__(self) -> None:
super().__init__()
custom_arg_transforms = {
arg.Arg("unsigned char*","data") : arg.Arg("DataPointer","data"),
}
def add_custom_transforms(self, transforms):
for carg, cpparg in self.custom_arg_transforms.items():
transforms.add_custom_args(carg, cpparg)
return transforms