org.rococoa.cocoa.security
Class SecAsn1Template_struct

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

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

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 SecAsn1Template_struct.ByReference
           
static class SecAsn1Template_struct.ByValue
           
 
Field Summary
 int kind
           
 int offset
          This value is the offset from the base of the structure (i.e., the
(void *) passed as 'src' to SecAsn1EncodeItem, or the 'dst' argument
passed to SecAsn1CoderRef()) to the field that holds the value being
decoded/encoded.
 int size
          In the first element of a template array, the value is the size
of the structure to allocate when this template is being referenced
by another template via SEC_ASN1_POINTER or SEC_ASN1_GROUP.
 Pointer sub
          When kind suggests it (e.g., SEC_ASN1_POINTER, SEC_ASN1_GROUP,
SEC_ASN1_INLINE, or a component that is *not* a SEC_ASN1_UNIVERSAL),
this points to a sub-template for nested encoding/decoding.
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
Constructor Summary
SecAsn1Template_struct()
           
SecAsn1Template_struct(int kind, int offset, Pointer sub, int size)
           
 
Method Summary
 SecAsn1Template_struct.ByReference byReference()
           
 SecAsn1Template_struct.ByValue byValue()
           
 SecAsn1Template_struct 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

kind

public int kind

offset

public int offset
This value is the offset from the base of the structure (i.e., the
(void *) passed as 'src' to SecAsn1EncodeItem, or the 'dst' argument
passed to SecAsn1CoderRef()) to the field that holds the value being
decoded/encoded.


sub

public Pointer sub
When kind suggests it (e.g., SEC_ASN1_POINTER, SEC_ASN1_GROUP,
SEC_ASN1_INLINE, or a component that is *not* a SEC_ASN1_UNIVERSAL),
this points to a sub-template for nested encoding/decoding.
OR, iff SEC_ASN1_DYNAMIC is set, then this is a pointer to a pointer
to a function which will return the appropriate template when called
at runtime. NOTE! that explicit level of indirection, which is
necessary because ANSI does not allow you to store a function
pointer directly as a "void *" so we must store it separately and
dereference it to get at the function pointer itself.


size

public int size
In the first element of a template array, the value is the size
of the structure to allocate when this template is being referenced
by another template via SEC_ASN1_POINTER or SEC_ASN1_GROUP.
In all other cases, the value is ignored.

Constructor Detail

SecAsn1Template_struct

public SecAsn1Template_struct()

SecAsn1Template_struct

public SecAsn1Template_struct(int kind,
                              int offset,
                              Pointer sub,
                              int size)
Parameters:
kind - Kind of item being decoded/encoded, including tags and modifiers.
offset - This value is the offset from the base of the structure (i.e., the
(void *) passed as 'src' to SecAsn1EncodeItem, or the 'dst' argument
passed to SecAsn1CoderRef()) to the field that holds the value being
decoded/encoded.
sub - When kind suggests it (e.g., SEC_ASN1_POINTER, SEC_ASN1_GROUP,
SEC_ASN1_INLINE, or a component that is *not* a SEC_ASN1_UNIVERSAL),
this points to a sub-template for nested encoding/decoding.
OR, iff SEC_ASN1_DYNAMIC is set, then this is a pointer to a pointer
to a function which will return the appropriate template when called
at runtime. NOTE! that explicit level of indirection, which is
necessary because ANSI does not allow you to store a function
pointer directly as a "void *" so we must store it separately and
dereference it to get at the function pointer itself.
size - In the first element of a template array, the value is the size
of the structure to allocate when this template is being referenced
by another template via SEC_ASN1_POINTER or SEC_ASN1_GROUP.
In all other cases, the value is ignored.
Method Detail

byReference

public SecAsn1Template_struct.ByReference byReference()

byValue

public SecAsn1Template_struct.ByValue byValue()

clone

public SecAsn1Template_struct clone()
Overrides:
clone in class Object