public class NativeTemplate
extends com.sun.jna.Structure
The native templates are the objects used to transport data from native code to java virtual machine
Modifier and Type | Class and Description |
---|---|
static class |
NativeTemplate.ByReference
Native template passed to the native layer by reference
|
static class |
NativeTemplate.ByValue
Native template passed to the native layer by value
|
Modifier and Type | Field and Description |
---|---|
com.sun.jna.Pointer |
buffer
Buffer
|
int |
encoding
The template encoding
|
int |
format
The template format
|
int |
quality
The template Quality
|
int |
size
The template size
|
Constructor and Description |
---|
NativeTemplate()
Default constructor
|
NativeTemplate(byte[] buffer,
int format,
int encoding)
Complete constructor
|
NativeTemplate(com.sun.jna.Pointer p)
Structure constructor
|
NativeTemplate(Template template)
Shallow copy constructor
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBuffer()
Gets the template byte array
|
int |
getEncoding()
Gets the template encoding
|
int |
getFormat()
Gets the template format
|
int |
getQuality()
Gets the quality
|
int |
getSize()
Gets the template size
|
autoRead, autoRead, autoWrite, autoWrite, clear, equals, getAutoRead, getAutoWrite, getPointer, hashCode, newInstance, newInstance, read, readField, setAutoRead, setAutoSynch, setAutoWrite, size, toArray, toArray, toString, toString, write, writeField, writeField
public com.sun.jna.Pointer buffer
Buffer
public int size
The template size
public int format
The template format
public int quality
The template Quality
public int encoding
The template encoding
public NativeTemplate()
Default constructor
public NativeTemplate(com.sun.jna.Pointer p)
Structure constructor
p
- public NativeTemplate(byte[] buffer, int format, int encoding)
Complete constructor
buffer
- format
- encoding
- public NativeTemplate(Template template)
Shallow copy constructor
template
- public byte[] getBuffer()
Gets the template byte array
public int getSize()
Gets the template size
public int getQuality()
Gets the quality
public int getFormat()
Gets the template format
public int getEncoding()
Gets the template encoding