NWNFiles.GFFFieldTypes
Class FieldTypeDWORD64

java.lang.Object
  |
  +--NWNFiles.GFFFieldTypes.FieldType
        |
        +--NWNFiles.GFFFieldTypes.FieldTypeDWORD64

public class FieldTypeDWORD64
extends FieldType

DWORD data type


Nested Class Summary
static class FieldTypeDWORD64.DWORD64
          Represents a DWORD
 
Field Summary
 
Fields inherited from class NWNFiles.GFFFieldTypes.FieldType
BYTE_TYPE, CExoLocString_TYPE, CExoString_TYPE, CHAR_TYPE, CurrentLanguage, DOUBLE_TYPE, DWORD_TYPE, DWORD64_TYPE, FLOAT_TYPE, INT_TYPE, INT64_TYPE, List_TYPE, RESREF_TYPE, SHORT_TYPE, Struct_TYPE, VOID_TYPE, WORD_TYPE
 
Method Summary
 byte[] getData(Object data)
          Returns an array containing the DWORD64 value.
 Object interpretData(ByteBuffer buffer)
          Returns a DWORD64 containing the DWORD64 value.
 
Methods inherited from class NWNFiles.GFFFieldTypes.FieldType
cloneData, getCurrentLanguage, GetInstance, getTypeName, GetTypeName, getTypeNumber, isCplx, setCurrentLanguage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

interpretData

public Object interpretData(ByteBuffer buffer)
Returns a DWORD64 containing the DWORD64 value.

Specified by:
interpretData in class FieldType
Parameters:
buffer - A buffer containing the data. The current position of the buffer should be the biginning of the data.
Returns:
A DWORD64 object.

getData

public byte[] getData(Object data)
Returns an array containing the DWORD64 value.

Specified by:
getData in class FieldType
Parameters:
data - Should be a DWORD64 object.