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

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

There is a newer version: 0.9.8
Show newest version
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