ContentChunk Class
Namespace: Stride.Core.StreamingAssembly: Stride.Core.Serialization.dll
Content storage data chunk.
public sealed class ContentChunk
Name | Description | |
---|---|---|
Properties | ||
ExistsInFile | Gets a value indicating whether this exists in file. |
|
IsLoaded | Gets a value indicating whether this chunk is loaded. |
|
IsMissing | Gets a value indicating whether this chunk is not loaded. |
|
LastAccessTime | Gets the last access time. |
|
Location | Gets the chunk location in file (adress of the first byte). |
|
Size | Gets the chunk size in file (in bytes). |
|
Storage | Gets the parent storage container. |
|
Methods | ||
GetData(DatabaseFileProvider) | Loads chunk data from the storage container. |
|
RegisterUsage() | Registers the usage operation of chunk data. |
Properties
ExistsInFile
Gets a value indicating whether this exists in file.
public bool ExistsInFile { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsLoaded
Gets a value indicating whether this chunk is loaded.
public bool IsLoaded { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsMissing
Gets a value indicating whether this chunk is not loaded.
public bool IsMissing { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LastAccessTime
Gets the last access time.
public DateTime LastAccessTime { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Location
Gets the chunk location in file (adress of the first byte).
public int Location { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Size
Gets the chunk size in file (in bytes).
public int Size { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Storage
Gets the parent storage container.
public ContentStorage Storage { get; }
Property Value
Type | Description |
---|---|
ContentStorage |
Methods
GetData(DatabaseFileProvider)
Loads chunk data from the storage container.
public IntPtr GetData(DatabaseFileProvider fileProvider)
Parameters
Type | Name | Description |
---|---|---|
DatabaseFileProvider | fileProvider | Database file provider. |
Returns
Type | Description |
---|---|
System.IntPtr |
RegisterUsage()
Registers the usage operation of chunk data.
public void RegisterUsage()