Terraria v1.4.4.9
Terraria source code documentation
|
Classes | |
class | ResourceEnumerator |
Public Member Functions | |
void | GetResourceData (string resourceName, out string resourceType, out byte[] resourceData) |
ResourceReader (string fileName) | |
ResourceReader (Stream stream) | |
void | Close () |
void | Dispose () |
IDictionaryEnumerator | GetEnumerator () |
Package Functions | |
ResourceReader (Stream stream, Dictionary< string, ResourceLocator > resCache, bool permitDeserialization) | |
ResourceEnumerator | GetEnumeratorInternal () |
int | FindPosForResource (string name) |
string | LoadString (int pos) |
object | LoadObject (int pos) |
object | LoadObject (int pos, out ResourceTypeCode typeCode) |
object | LoadObjectV1 (int pos) |
object | LoadObjectV2 (int pos, out ResourceTypeCode typeCode) |
Static Package Functions | |
static unsafe int | ReadUnalignedI4 (int *p) |
Package Attributes | |
Dictionary< string, ResourceLocator > | _resCache |
Properties | |
static bool | AllowCustomResourceTypes = !AppContext.TryGetSwitch("System.Resources.ResourceManager.AllowCustomResourceTypes", out var isEnabled) || isEnabled [get] |
Private Member Functions | |
object | DeserializeObject (int typeIndex) |
bool | InitializeBinaryFormatter () |
unsafe void | Dispose (bool disposing) |
void | SkipString () |
unsafe int | GetNameHash (int index) |
unsafe int | GetNamePosition (int index) |
IEnumerator IEnumerable. | GetEnumerator () |
unsafe bool | CompareStringEqualsName (string name) |
unsafe string | AllocateStringForNameIndex (int index, out int dataOffset) |
object | GetValueForNameIndex (int index) |
object | _LoadObjectV1 (int pos) |
unsafe object | _LoadObjectV2 (int pos, out ResourceTypeCode typeCode) |
void | ReadResources () |
unsafe void | _ReadResources () |
Type | FindType (int typeIndex) |
Type | UseReflectionToGetType (int typeIndex) |
string | TypeNameFromTypeCode (ResourceTypeCode typeCode) |
Static Private Member Functions | |
static Func< object, Stream, object > | CreateUntypedDelegate< TInstance > (MethodInfo method) |
static bool | ValidateReaderType (string readerType) |
Private Attributes | |
readonly bool | _permitDeserialization |
object | _binaryFormatter |
BinaryReader | _store |
long | _nameSectionOffset |
long | _dataSectionOffset |
int[] | _nameHashes |
unsafe int * | _nameHashesPtr |
int[] | _namePositions |
unsafe int * | _namePositionsPtr |
Type[] | _typeTable |
int[] | _typeNamePositions |
int | _numResources |
UnmanagedMemoryStream | _ums |
int | _version |
Static Private Attributes | |
static Type | s_binaryFormatterType |
static Func< object, Stream, object > | s_deserializeMethod |
Definition at line 12 of file ResourceReader.cs.