Drag[en]gine Script Module DragonScript
1.21
|
Public Member Functions | |
Management | |
String | getFilename () |
File name. More... | |
int | getStreamVersion () |
Stream version used by writeToFile of native classes. More... | |
void | setStreamVersion (int version) |
Set stream version used by writeToFile of native classes. More... | |
void | writeChar (int value) |
Write one byte (1 byte). More... | |
void | writeByte (int value) |
Write one unsigned byte (1 byte). More... | |
void | writeShort (int value) |
Write one short (2 bytes). More... | |
void | writeUShort (int value) |
Write one unsigned short (2 bytes). More... | |
void | writeInt (int value) |
Write one int (4 bytes). More... | |
void | writeUInt (int value) |
Write one unsigned int (4 bytes). More... | |
void | writeFloat (float value) |
Write one float (4 bytes). More... | |
void | writeString8 (String string) |
Write a string prefixed by a 1-byte length field. More... | |
void | writeString16 (String string) |
Write a string prefixed by a 2-byte2 length field. More... | |
void | writeString (String data) |
Write string without length field. More... | |
void | writeData (FileReader reader) |
Write data from file reader. More... | |
void | writeData (FileReader reader, int size) |
Write data from file reader. More... | |
void | writeTimeDate (TimeDate timeDate) |
Write TimeDate instance. More... | |
Constructors | |
FileWriter | new (String filename) |
Create file writer writing to virtual file system file. More... | |
static FileWriter | newZCompressed (String filename) |
Create Z-Compressing file writer writing to virtual file system file. More... | |
File writer.
This is a native class.
String Dragengine.FileWriter.getFilename | ( | ) |
File name.
int Dragengine.FileWriter.getStreamVersion | ( | ) |
Stream version used by writeToFile of native classes.
FileWriter Dragengine.FileWriter.new | ( | String | filename | ) |
Create file writer writing to virtual file system file.
|
static |
Create Z-Compressing file writer writing to virtual file system file.
void Dragengine.FileWriter.setStreamVersion | ( | int | version | ) |
Set stream version used by writeToFile of native classes.
void Dragengine.FileWriter.writeByte | ( | int | value | ) |
Write one unsigned byte (1 byte).
void Dragengine.FileWriter.writeChar | ( | int | value | ) |
Write one byte (1 byte).
void Dragengine.FileWriter.writeData | ( | FileReader | reader | ) |
Write data from file reader.
void Dragengine.FileWriter.writeData | ( | FileReader | reader, |
int | size | ||
) |
Write data from file reader.
void Dragengine.FileWriter.writeFloat | ( | float | value | ) |
Write one float (4 bytes).
void Dragengine.FileWriter.writeInt | ( | int | value | ) |
Write one int (4 bytes).
void Dragengine.FileWriter.writeShort | ( | int | value | ) |
Write one short (2 bytes).
void Dragengine.FileWriter.writeString | ( | String | data | ) |
Write string without length field.
void Dragengine.FileWriter.writeString16 | ( | String | string | ) |
Write a string prefixed by a 2-byte2 length field.
void Dragengine.FileWriter.writeString8 | ( | String | string | ) |
Write a string prefixed by a 1-byte length field.
void Dragengine.FileWriter.writeTimeDate | ( | TimeDate | timeDate | ) |
Write TimeDate instance.
void Dragengine.FileWriter.writeUInt | ( | int | value | ) |
Write one unsigned int (4 bytes).
void Dragengine.FileWriter.writeUShort | ( | int | value | ) |
Write one unsigned short (2 bytes).