Synced
AssetSourceStore.Save
Section titled “AssetSourceStore.Save”
- Atomically saves bytes after checking the source fingerprint; import is a separate operation.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets.Pipeline
Declaration
Section titled “Declaration”public string Inno.Assets.Pipeline.AssetSourceStore.Save(Inno.Assets.AssetPath path, byte[] bytes, string? expectedHash)Parameters
Section titled “Parameters”Parameter path: Writable mounted destination.
Parameter bytes: Complete serializable source, including invalid authoring states.
Parameter expectedHash: Last read/save fingerprint; null requires a nonexistent destination.
Returns
Section titled “Returns”The saved fingerprint.