Table of Contents

Class ContentChunk

Namespace
Stride.Core.Streaming
Assembly
Stride.Core.Serialization.dll

Content storage data chunk.

public sealed class ContentChunk
Inheritance
ContentChunk

Properties

ExistsInFile

Gets a value indicating whether this exists in file.

public bool ExistsInFile { get; }

Property Value

bool

IsLoaded

Gets a value indicating whether this chunk is loaded.

public bool IsLoaded { get; }

Property Value

bool

IsMissing

Gets a value indicating whether this chunk is not loaded.

public bool IsMissing { get; }

Property Value

bool

LastAccessTime

Gets the last access time.

public DateTime LastAccessTime { get; }

Property Value

DateTime

Location

Gets the chunk location in file (adress of the first byte).

public int Location { get; }

Property Value

int

Size

Gets the chunk size in file (in bytes).

public int Size { get; }

Property Value

int

Storage

Gets the parent storage container.

public ContentStorage Storage { get; }

Property Value

ContentStorage

Methods

GetData(DatabaseFileProvider)

Loads chunk data from the storage container.

public nint GetData(DatabaseFileProvider fileProvider)

Parameters

fileProvider DatabaseFileProvider

Database file provider.

Returns

nint

RegisterUsage()

Registers the usage operation of chunk data.

public void RegisterUsage()