org.rococoa.cocoa.osservices
Class TOption

java.lang.Object
  extended by com.sun.jna.Structure
      extended by com.ochafik.lang.jnaerator.runtime.Structure
          extended by org.rococoa.cocoa.osservices.TOption
Direct Known Subclasses:
TOption.ByReference, TOption.ByValue

public class TOption
extends com.ochafik.lang.jnaerator.runtime.Structure

This structure describes the contents of a single option in a buffer.
It differs from TOptionHeader in that it includes the value field,
which acts as an unbounded array representing the value of the option.
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static class TOption.ByReference
           
static class TOption.ByValue
           
 
Field Summary
 int level
          of option value in bytes
protocol affected
 int name
           
 int status
           
 int[] value
           
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
Constructor Summary
TOption()
           
TOption(int level, int name, int status, int[] value)
           
 
Method Summary
 TOption.ByReference byReference()
           
 TOption.ByValue byValue()
           
 TOption clone()
           
 
Methods inherited from class com.ochafik.lang.jnaerator.runtime.Structure
setupClone
 
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, cacheTypeInfo, clear, ensureAllocated, equals, getAutoRead, getAutoWrite, getFieldOrder, getNativeAlignment, getPointer, getStructAlignment, hashCode, newInstance, read, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setTypeMapper, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

level

public int level
of option value in bytes
protocol affected


name

public int name

status

public int status

value

public int[] value
Constructor Detail

TOption

public TOption()

TOption

public TOption(int level,
               int name,
               int status,
               int[] value)
Parameters:
level - of option value in bytes
protocol affected
name - option name
status - status value
value - data goes here
Method Detail

byReference

public TOption.ByReference byReference()

byValue

public TOption.ByValue byValue()

clone

public TOption clone()
Overrides:
clone in class Object