Struct ObjectInfo
Contains information for a block of raw serialized object data.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: AssetRipper.IO.Files.dll
Syntax
public struct ObjectInfo : ISerializedReadable, ISerializedWritable
Properties
|
Improve this Doc
View Source
ByteSize
Declaration
public int ByteSize { readonly get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ByteStart
Offset to the object data.
Add to AssetRipper.IO.Files.SerializedFiles.Parser.SerializedFileHeader.DataOffset to get the absolute offset within the serialized file.
Declaration
public long ByteStart { readonly get; set; }
Property Value
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
ClassID
Declaration
public short ClassID { readonly get; set; }
Property Value
Type |
Description |
System.Int16 |
|
|
Improve this Doc
View Source
FileID
ObjectID
Unique ID that identifies the object. Can be used as a key for a map.
Declaration
public long FileID { readonly get; set; }
Property Value
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
IsDestroyed
Declaration
public ushort IsDestroyed { readonly get; set; }
Property Value
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
ObjectData
Declaration
public byte[] ObjectData { readonly get; set; }
Property Value
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
ScriptTypeIndex
Declaration
public short ScriptTypeIndex { readonly get; set; }
Property Value
Type |
Description |
System.Int16 |
|
|
Improve this Doc
View Source
SerializedTypeIndex
Type index in Types array
Declaration
public int SerializedTypeIndex { readonly get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Stripped
Declaration
public bool Stripped { readonly get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TypeID
Type ID of the object, which is mapped to
Equals to classID if the object is not MonoBehaviour"/>
Declaration
public int TypeID { readonly get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
GetSerializedType(ReadOnlySpan<SerializedType>)
Declaration
public readonly SerializedType GetSerializedType(ReadOnlySpan<SerializedType> types)
Parameters
Returns
|
Improve this Doc
View Source
Less than 5.5.0 / Format Version less than 16
Declaration
public static bool HasClassID(FormatVersion generation)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Less than 5.0.0unk / Format Version less than 11
Declaration
public static bool HasIsDestroyed(FormatVersion generation)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
2020.1.0 and greater / Format Version at least 22
Declaration
public static bool HasLargeFilesSupport(FormatVersion generation)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
5.0.0unk to 5.5.0unk exclusive / Format Version at least 11 but less than 17
Declaration
public static bool HasScriptID(FormatVersion generation)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
5.0.1 to 5.5.0unk exclusive / Format Version at least 15 but less than 17
Declaration
public static bool HasStripped(FormatVersion generation)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Initialize(ReadOnlySpan<SerializedType>)
Declaration
public void Initialize(ReadOnlySpan<SerializedType> types)
Parameters
|
Improve this Doc
View Source
5.0.0unk and greater / Format Version at least 14
Declaration
public static bool IsLongID(FormatVersion generation)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Read(SerializedReader)
Declaration
public void Read(SerializedReader reader)
Parameters
|
Improve this Doc
View Source
ToString()
Declaration
public override readonly string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
|
Improve this Doc
View Source
Write(SerializedWriter)
Declaration
public readonly void Write(SerializedWriter writer)
Parameters
Implements