|
| | FileReader (Stream stream, bool leaveOpen=false) |
| |
| | FileReader (Stream stream, Encoding encoding, bool leaveOpen=false) |
| |
| | FileReader (string fileName, bool leaveOpen=false) |
| |
| | FileReader (byte[] data) |
| |
| bool | CheckSignature (int length, string Identifier, long position=0) |
| |
| bool | CheckSignature (uint Identifier, long position=0) |
| |
| UnityEngine.Vector3 | ReadVec3 () |
| |
| UnityEngine.Vector4 | ReadVec4 () |
| |
| UnityEngine.Vector2 | ReadVec2 () |
| |
| int | ReadInt32 (int position) |
| |
| uint | ReadUInt32 (int position) |
| |
| string | ReadNameOffset (bool IsRelative, Type OffsetType, bool ReadNameLength=false, bool IsNameLengthShort=false) |
| |
| List< string > | ReadNameOffsets (uint Count, bool IsRelative, Type OffsetType, bool ReadNameLength=false) |
| |
| string | ReadString (int length, bool removeSpaces) |
| |
| string | ReadZeroTerminatedString (Encoding encoding=null) |
| |
| string[] | ReadZeroTerminatedStrings (uint count, Encoding encoding=null) |
| |
| string | ReadUTF16String () |
| |
| void | CheckByteOrderMark (uint ByteOrderMark) |
| | Checks the byte order mark to determine the endianness of the reader.
|
| |
| void | SetByteOrder (bool IsBigEndian) |
| |
| string | ReadSignature (int length) |
| |
| string | ReadSignature (int length, string ExpectedSignature, bool TrimEnd=false) |
| |
| float | ReadByteAsFloat () |
| |
| void | SeekBegin (uint Offset) |
| |
| void | SeekBegin (int Offset) |
| |
| void | SeekBegin (long Offset) |
| |
| void | SeekBegin (ulong Offset) |
| |
| long | ReadOffset (bool IsRelative, Type OffsetType) |
| |
| string | LoadString (bool IsRelative, Type OffsetType, Encoding encoding=null, uint ReadStringLength=0) |
| |
| byte[] | getSection (uint offset, uint size) |
| |
| byte[] | getSection (int offset, int size) |
| |
| string | ReadMagic (int Offset, int Length) |
| |
◆ FileReader() [1/4]
| FileReader.FileReader |
( |
Stream | stream, |
|
|
bool | leaveOpen = false ) |
◆ FileReader() [2/4]
| FileReader.FileReader |
( |
Stream | stream, |
|
|
Encoding | encoding, |
|
|
bool | leaveOpen = false ) |
◆ FileReader() [3/4]
| FileReader.FileReader |
( |
string | fileName, |
|
|
bool | leaveOpen = false ) |
◆ FileReader() [4/4]
| FileReader.FileReader |
( |
byte[] | data | ) |
|
◆ CheckByteOrderMark()
| void FileReader.CheckByteOrderMark |
( |
uint | ByteOrderMark | ) |
|
Checks the byte order mark to determine the endianness of the reader.
- Parameters
-
| ByteOrderMark | The byte order value being read. 0xFFFE = Little, 0xFEFF = Big. |
- Returns
◆ CheckSignature() [1/2]
| bool FileReader.CheckSignature |
( |
int | length, |
|
|
string | Identifier, |
|
|
long | position = 0 ) |
◆ CheckSignature() [2/2]
| bool FileReader.CheckSignature |
( |
uint | Identifier, |
|
|
long | position = 0 ) |
◆ getSection() [1/2]
| byte[] FileReader.getSection |
( |
int | offset, |
|
|
int | size ) |
◆ getSection() [2/2]
| byte[] FileReader.getSection |
( |
uint | offset, |
|
|
uint | size ) |
◆ InflateZLIB()
| static byte[] FileReader.InflateZLIB |
( |
byte[] | i | ) |
|
|
static |
◆ LoadString()
| string FileReader.LoadString |
( |
bool | IsRelative, |
|
|
Type | OffsetType, |
|
|
Encoding | encoding = null, |
|
|
uint | ReadStringLength = 0 ) |
◆ ReadByteAsFloat()
| float FileReader.ReadByteAsFloat |
( |
| ) |
|
◆ ReadInt32()
| int FileReader.ReadInt32 |
( |
int | position | ) |
|
◆ ReadMagic()
| string FileReader.ReadMagic |
( |
int | Offset, |
|
|
int | Length ) |
◆ ReadNameOffset()
| string FileReader.ReadNameOffset |
( |
bool | IsRelative, |
|
|
Type | OffsetType, |
|
|
bool | ReadNameLength = false, |
|
|
bool | IsNameLengthShort = false ) |
◆ ReadNameOffsets()
| List< string > FileReader.ReadNameOffsets |
( |
uint | Count, |
|
|
bool | IsRelative, |
|
|
Type | OffsetType, |
|
|
bool | ReadNameLength = false ) |
◆ ReadOffset()
| long FileReader.ReadOffset |
( |
bool | IsRelative, |
|
|
Type | OffsetType ) |
◆ ReadSignature() [1/2]
| string FileReader.ReadSignature |
( |
int | length | ) |
|
◆ ReadSignature() [2/2]
| string FileReader.ReadSignature |
( |
int | length, |
|
|
string | ExpectedSignature, |
|
|
bool | TrimEnd = false ) |
◆ ReadString()
| string FileReader.ReadString |
( |
int | length, |
|
|
bool | removeSpaces ) |
◆ ReadUInt32()
| uint FileReader.ReadUInt32 |
( |
int | position | ) |
|
◆ ReadUTF16String()
| string FileReader.ReadUTF16String |
( |
| ) |
|
◆ ReadVec2()
| UnityEngine.Vector2 FileReader.ReadVec2 |
( |
| ) |
|
◆ ReadVec3()
| UnityEngine.Vector3 FileReader.ReadVec3 |
( |
| ) |
|
◆ ReadVec4()
| UnityEngine.Vector4 FileReader.ReadVec4 |
( |
| ) |
|
◆ ReadZeroTerminatedString()
| string FileReader.ReadZeroTerminatedString |
( |
Encoding | encoding = null | ) |
|
◆ ReadZeroTerminatedStrings()
| string[] FileReader.ReadZeroTerminatedStrings |
( |
uint | count, |
|
|
Encoding | encoding = null ) |
◆ SeekBegin() [1/4]
| void FileReader.SeekBegin |
( |
int | Offset | ) |
|
◆ SeekBegin() [2/4]
| void FileReader.SeekBegin |
( |
long | Offset | ) |
|
◆ SeekBegin() [3/4]
| void FileReader.SeekBegin |
( |
uint | Offset | ) |
|
◆ SeekBegin() [4/4]
| void FileReader.SeekBegin |
( |
ulong | Offset | ) |
|
◆ SetByteOrder()
| void FileReader.SetByteOrder |
( |
bool | IsBigEndian | ) |
|
◆ IsBigEndian
| bool FileReader.IsBigEndian |
|
get |
◆ ReverseMagic
| bool FileReader.ReverseMagic = false |
|
getset |
The documentation for this class was generated from the following file: