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

com.github.unidbg.linux.struct.Dirent Maven / Gradle / Ivy

package com.github.unidbg.linux.struct;

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

import java.util.Arrays;
import java.util.List;

public class Dirent extends UnidbgStructure {

    public static final byte DT_DIR = 4;
    public static final byte DT_REG = 8;

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

    public long d_ino;
    public long d_off;
    public short d_reclen;
    public byte d_type;
    public byte[] d_name = new byte[256];

    @Override
    protected List getFieldOrder() {
        return Arrays.asList("d_ino", "d_off", "d_reclen", "d_type", "d_name");
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy