Top Description Inners Fields Constructors Methods
org.lwjgl.util.hwloc

public Class hwloc_pcidev_attr_s

extends Struct<hwloc_pcidev_attr_s>
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

Layout


struct hwloc_pcidev_attr_s {
    unsigned int domain;
    unsigned char bus;
    unsigned char dev;
    unsigned char func;
    unsigned char prog_if;
    unsigned short class_id;
    unsigned short vendor_id;
    unsigned short device_id;
    unsigned short subvendor_id;
    unsigned short subdevice_id;
    unsigned char revision;
    float linkspeed;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BUS

The struct member offsets.

public static final int
CLASS_ID

The struct member offsets.

public static final int
DEV

The struct member offsets.

public static final int
DEVICE_ID

The struct member offsets.

public static final int
DOMAIN

The struct member offsets.

public static final int
FUNC

The struct member offsets.

public static final int
LINKSPEED

The struct member offsets.

public static final int
PROG_IF

The struct member offsets.

public static final int
REVISION

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SUBDEVICE_ID

The struct member offsets.

public static final int
SUBVENDOR_ID

The struct member offsets.

public static final int
VENDOR_ID

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
hwloc_pcidev_attr_s(long address, ByteBuffer container)

public
hwloc_pcidev_attr_s(ByteBuffer container)

Creates a hwloc_pcidev_attr_s instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public byte

Returns:

the value of the bus field.
bus
()

public short

Returns:

the value of the class_id field.
class_id
()

protected hwloc_pcidev_attr_s
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static hwloc_pcidev_attr_s
create(long address)

Returns a new hwloc_pcidev_attr_s instance for the specified memory address.

public static hwloc_pcidev_attr_s.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a hwloc_pcidev_attr_s.Buffer instance at the specified memory.

public static hwloc_pcidev_attr_s
createSafe(long address)

Like create, but returns null if address is NULL.

public static hwloc_pcidev_attr_s.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public byte

Returns:

the value of the dev field.
dev
()

public short

Returns:

the value of the device_id field.
device_id
()

public int

Returns:

the value of the domain field.
domain
()

public byte

Returns:

the value of the func field.
func
()

public float

Returns:

the value of the linkspeed field.
linkspeed
()

public static byte
nbus(long struct)

Unsafe version of bus.

public static short
nclass_id(long struct)

Unsafe version of class_id.

public static byte
ndev(long struct)

Unsafe version of dev.

public static short
ndevice_id(long struct)

Unsafe version of device_id.

public static int
ndomain(long struct)

Unsafe version of domain.

public static byte
nfunc(long struct)

Unsafe version of func.

public static float
nlinkspeed(long struct)

Unsafe version of linkspeed.

public static byte
nprog_if(long struct)

Unsafe version of prog_if.

public static byte
nrevision(long struct)

Unsafe version of revision.

public static short
nsubdevice_id(long struct)

Unsafe version of subdevice_id.

public static short
nsubvendor_id(long struct)

Unsafe version of subvendor_id.

public static short
nvendor_id(long struct)

Unsafe version of vendor_id.

public byte

Returns:

the value of the prog_if field.
prog_if
()

public byte

Returns:

the value of the revision field.
revision
()

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public short

Returns:

the value of the subdevice_id field.
subdevice_id
()

public short

Returns:

the value of the subvendor_id field.
subvendor_id
()

public short

Returns:

the value of the vendor_id field.
vendor_id
()

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

BUSback to summary
public static final int BUS

The struct member offsets.

CLASS_IDback to summary
public static final int CLASS_ID

The struct member offsets.

DEVback to summary
public static final int DEV

The struct member offsets.

DEVICE_IDback to summary
public static final int DEVICE_ID

The struct member offsets.

DOMAINback to summary
public static final int DOMAIN

The struct member offsets.

FUNCback to summary
public static final int FUNC

The struct member offsets.

LINKSPEEDback to summary
public static final int LINKSPEED

The struct member offsets.

PROG_IFback to summary
public static final int PROG_IF

The struct member offsets.

REVISIONback to summary
public static final int REVISION

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

SUBDEVICE_IDback to summary
public static final int SUBDEVICE_ID

The struct member offsets.

SUBVENDOR_IDback to summary
public static final int SUBVENDOR_ID

The struct member offsets.

VENDOR_IDback to summary
public static final int VENDOR_ID

The struct member offsets.

Constructor Detail

hwloc_pcidev_attr_sback to summary
protected hwloc_pcidev_attr_s(long address, ByteBuffer container)
hwloc_pcidev_attr_sback to summary
public hwloc_pcidev_attr_s(ByteBuffer container)

Creates a hwloc_pcidev_attr_s instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

The created instance holds a strong reference to the container object.

Method Detail

busback to summary
public byte bus()
Returns:byte

the value of the bus field.

Annotations
@NativeType:unsigned char
class_idback to summary
public short class_id()
Returns:short

the value of the class_id field.

Annotations
@NativeType:unsigned short
createback to summary
protected hwloc_pcidev_attr_s create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static hwloc_pcidev_attr_s create(long address)

Returns a new hwloc_pcidev_attr_s instance for the specified memory address.

createback to summary
public static hwloc_pcidev_attr_s.Buffer create(long address, int capacity)

Create a hwloc_pcidev_attr_s.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static hwloc_pcidev_attr_s createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static hwloc_pcidev_attr_s.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
devback to summary
public byte dev()
Returns:byte

the value of the dev field.

Annotations
@NativeType:unsigned char
device_idback to summary
public short device_id()
Returns:short

the value of the device_id field.

Annotations
@NativeType:unsigned short
domainback to summary
public int domain()
Returns:int

the value of the domain field.

Annotations
@NativeType:unsigned int
funcback to summary
public byte func()
Returns:byte

the value of the func field.

Annotations
@NativeType:unsigned char
linkspeedback to summary
public float linkspeed()
Returns:float

the value of the linkspeed field.

nbusback to summary
public static byte nbus(long struct)

Unsafe version of bus.

nclass_idback to summary
public static short nclass_id(long struct)

Unsafe version of class_id.

ndevback to summary
public static byte ndev(long struct)

Unsafe version of dev.

ndevice_idback to summary
public static short ndevice_id(long struct)

Unsafe version of device_id.

ndomainback to summary
public static int ndomain(long struct)

Unsafe version of domain.

nfuncback to summary
public static byte nfunc(long struct)

Unsafe version of func.

nlinkspeedback to summary
public static float nlinkspeed(long struct)

Unsafe version of linkspeed.

nprog_ifback to summary
public static byte nprog_if(long struct)

Unsafe version of prog_if.

nrevisionback to summary
public static byte nrevision(long struct)

Unsafe version of revision.

nsubdevice_idback to summary
public static short nsubdevice_id(long struct)

Unsafe version of subdevice_id.

nsubvendor_idback to summary
public static short nsubvendor_id(long struct)

Unsafe version of subvendor_id.

nvendor_idback to summary
public static short nvendor_id(long struct)

Unsafe version of vendor_id.

prog_ifback to summary
public byte prog_if()
Returns:byte

the value of the prog_if field.

Annotations
@NativeType:unsigned char
revisionback to summary
public byte revision()
Returns:byte

the value of the revision field.

Annotations
@NativeType:unsigned char
sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
subdevice_idback to summary
public short subdevice_id()
Returns:short

the value of the subdevice_id field.

Annotations
@NativeType:unsigned short
subvendor_idback to summary
public short subvendor_id()
Returns:short

the value of the subvendor_id field.

Annotations
@NativeType:unsigned short
vendor_idback to summary
public short vendor_id()
Returns:short

the value of the vendor_id field.

Annotations
@NativeType:unsigned short
org.lwjgl.util.hwloc back to summary

public Class hwloc_pcidev_attr_s.Buffer

extends StructBuffer<hwloc_pcidev_attr_s, hwloc_pcidev_attr_s.Buffer>
Class Inheritance

An array of hwloc_pcidev_attr_s structs.

Field Summary

Modifier and TypeField and Description
private static final hwloc_pcidev_attr_s

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new hwloc_pcidev_attr_s.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public byte

Returns:

the value of the bus field.
bus
()

public short

Returns:

the value of the class_id field.
class_id
()

public byte

Returns:

the value of the dev field.
dev
()

public short

Returns:

the value of the device_id field.
device_id
()

public int

Returns:

the value of the domain field.
domain
()

public byte

Returns:

the value of the func field.
func
()

protected hwloc_pcidev_attr_s
public float

Returns:

the value of the linkspeed field.
linkspeed
()

public byte

Returns:

the value of the prog_if field.
prog_if
()

public byte

Returns:

the value of the revision field.
revision
()

protected hwloc_pcidev_attr_s.Buffer
public short

Returns:

the value of the subdevice_id field.
subdevice_id
()

public short

Returns:

the value of the subvendor_id field.
subvendor_id
()

public short

Returns:

the value of the vendor_id field.
vendor_id
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final hwloc_pcidev_attr_s ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new hwloc_pcidev_attr_s.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by hwloc_pcidev_attr_s#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

busback to summary
public byte bus()
Returns:byte

the value of the bus field.

Annotations
@NativeType:unsigned char
class_idback to summary
public short class_id()
Returns:short

the value of the class_id field.

Annotations
@NativeType:unsigned short
devback to summary
public byte dev()
Returns:byte

the value of the dev field.

Annotations
@NativeType:unsigned char
device_idback to summary
public short device_id()
Returns:short

the value of the device_id field.

Annotations
@NativeType:unsigned short
domainback to summary
public int domain()
Returns:int

the value of the domain field.

Annotations
@NativeType:unsigned int
funcback to summary
public byte func()
Returns:byte

the value of the func field.

Annotations
@NativeType:unsigned char
getElementFactoryback to summary
protected hwloc_pcidev_attr_s getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
linkspeedback to summary
public float linkspeed()
Returns:float

the value of the linkspeed field.

prog_ifback to summary
public byte prog_if()
Returns:byte

the value of the prog_if field.

Annotations
@NativeType:unsigned char
revisionback to summary
public byte revision()
Returns:byte

the value of the revision field.

Annotations
@NativeType:unsigned char
selfback to summary
protected hwloc_pcidev_attr_s.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
subdevice_idback to summary
public short subdevice_id()
Returns:short

the value of the subdevice_id field.

Annotations
@NativeType:unsigned short
subvendor_idback to summary
public short subvendor_id()
Returns:short

the value of the subvendor_id field.

Annotations
@NativeType:unsigned short
vendor_idback to summary
public short vendor_id()
Returns:short

the value of the vendor_id field.

Annotations
@NativeType:unsigned short