All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.unidbg.ios.struct.kernel.IOServiceAddNotificationRequest Maven / Gradle / Ivy

The newest version!
package com.github.unidbg.ios.struct.kernel;

import com.github.unidbg.pointer.UnidbgStructure;
import com.sun.jna.Pointer;

import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.List;

public class IOServiceAddNotificationRequest extends UnidbgStructure {

    public IOServiceAddNotificationRequest(Pointer p) {
        super(p);
    }

    public MachMsgBody body;
    public int name;
    public int v26;
    public int v27;
    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("body", "name", "v26", "v27", "NDR", "pad", "size");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy