CRIWARE Unity Plugin Manual  Last Updated: 2024-07-12
ICriMemoryAssetImpl Interface Reference

Actual data storage destination interface (in-memory) More...

Inheritance diagram for ICriMemoryAssetImpl:
ICriAssetImpl CriSerializedBytesAssetImpl

Public Member Functions

void OnEnable ()
 Processing when an asset is enabled More...
 
void OnDisable ()
 Processing when an asset is disabled More...
 

Properties

System.IntPtr PinnedAddress [get]
 Pointer to in-memory data More...
 
System.Int32 Size [get]
 Data size More...
 
System.Byte[] Data [get]
 In-memory data More...
 
bool IsReady [get]
 Whether the data is available
 

Detailed Description

Actual data storage destination interface (in-memory)

Description:
Provides an interface to get information about in-memory data.
You can customize the storage destination of the CRIWARE assets by inheriting this interface.

Member Function Documentation

void OnEnable ( )
inherited

Processing when an asset is enabled

Description:
Called when the corresponding CRI asset becomes Enabled.
The data reference setup process etc. will be performed.

Implemented in CriAddressableAssetImpl, CriSerializedBytesAssetImpl, and CriStreamingFolderAssetImpl.

void OnDisable ( )
inherited

Processing when an asset is disabled

Description:
Called when the corresponding CRI asset becomes Disable.
The resources allocated in the instance will be destroyed.

Implemented in CriAddressableAssetImpl, CriSerializedBytesAssetImpl, and CriStreamingFolderAssetImpl.

Property Documentation

System.IntPtr PinnedAddress
get

Pointer to in-memory data

Description:
Return a pointer of the start of the data in memory.
It can be used when passing data to the native module's API .
System.Int32 Size
get

Data size

Description:
Data size in memory.
Use this when passing a pointer via PinnedAddress.
System.Byte [] Data
get

In-memory data

Description:
Data expressed as a byte array.

The documentation for this interface was generated from the following file: