Synced
ContentEntry.Constructor
Section titled “ContentEntry.Constructor”
- Freezes a portable key, byte length, and SHA-256 identity.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Content
Declaration
Section titled “Declaration”public Inno.Content.ContentEntry.ContentEntry(Inno.Content.ContentKey key, long length, string contentHash)Parameters
Section titled “Parameters”Parameter key: The assigned logical content key.
Parameter length: The exact nonnegative decoded byte count.
Parameter contentHash: The hexadecimal SHA-256 of decoded bytes, normalized to uppercase.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: The key is unassigned or the hash is malformed.