com.github.unidbg.ios.struct.kernel.IOServiceGetMatchingServiceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unidbg Show documentation
Show all versions of unidbg Show documentation
Allows you to emulate an Android ARM32 and/or ARM64 native library
package com.github.unidbg.ios.struct.kernel;
import com.github.unidbg.pointer.UnicornStructure;
import com.sun.jna.Pointer;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.List;
public class IOServiceGetMatchingServiceRequest extends UnicornStructure {
public IOServiceGetMatchingServiceRequest(Pointer p) {
super(p);
}
public NDR_record NDR;
public int pad;
public int size;
public String getMatching() {
Pointer pointer = getPointer().share(size());
return new String(pointer.getByteArray(0, size), StandardCharsets.UTF_8).trim();
}
@Override
protected List getFieldOrder() {
return Arrays.asList("NDR", "pad", "size");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy