ContentStorageHeader Struct
Namespace: Stride.Core.StreamingAssembly: Stride.Core.Serialization.dll
Header with description of streamable resource data storage.
public struct ContentStorageHeader
| Name | Description | |
|---|---|---|
| Fields | ||
| Chunks | The data chunks. |
|
| DataUrl | The data container url. |
|
| HashCode | The hash code for the package header. Used to ensure data consistency. |
|
| InitialImage | True if data is followed by initial low resolution image. |
|
| PackageTime | Time when package has been created (in UTC). |
|
| Properties | ||
| ChunksCount | Gets the amount of data chunks. |
|
| Methods | ||
| Read(SerializationStream, out ContentStorageHeader) | Reads header instance from a stream. |
|
| Write(SerializationStream) | Writes this instance to a stream. |
|
Fields
Chunks
The data chunks.
public ContentStorageHeader.ChunkEntry[] Chunks
Field Value
| Type | Description |
|---|---|
| ContentStorageHeader.ChunkEntry[] |
DataUrl
The data container url.
public string DataUrl
Field Value
| Type | Description |
|---|---|
| System.String |
HashCode
The hash code for the package header. Used to ensure data consistency.
public int HashCode
Field Value
| Type | Description |
|---|---|
| System.Int32 |
InitialImage
True if data is followed by initial low resolution image.
public bool InitialImage
Field Value
| Type | Description |
|---|---|
| System.Boolean |
PackageTime
Time when package has been created (in UTC).
public DateTime PackageTime
Field Value
| Type | Description |
|---|---|
| System.DateTime |
Properties
ChunksCount
Gets the amount of data chunks.
public readonly int ChunksCount { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
Read(SerializationStream, out ContentStorageHeader)
Reads header instance from a stream.
public static void Read(SerializationStream stream, out ContentStorageHeader result)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationStream | stream | The source stream. |
| ContentStorageHeader | result | Result data |
Write(SerializationStream)
Writes this instance to a stream.
public void Write(SerializationStream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationStream | stream | The destination stream. |