public static void Cleanup(ref DependencyValidator data) { fixed(DependencyValidator *_data = &data) { DependencyValidator_Cleanup(_data); } }
// Allocate memory for resources with known usage semantics. // Excludes dynamic safety handles which are unknown and determined at runtime. public static void AllocateKnown(ref DependencyValidator data, int numReadOnly, int numWritable, int numDeallocate) { fixed(DependencyValidator *_data = &data) { DependencyValidator_AllocateKnown(_data, numReadOnly, numWritable, numDeallocate); } }
// Checks deferred array ownership public static void ValidateDeferred(ref DependencyValidator data, void *deferredHandle) { fixed(DependencyValidator *_data = &data) { DependencyValidator_ValidateDeferred(_data, deferredHandle); } ExceptionReporter.Check(); }
public static void UpdateDependencies(ref DependencyValidator data, ref JobHandle handle, int jobNameOffset) { fixed(DependencyValidator *_data = &data) { fixed(JobHandle *_handle = &handle) { DependencyValidator_UpdateDependencies(_data, _handle, jobNameOffset); } } ExceptionReporter.Check(); }
// Checks dependencies and aliasing public static void ValidateScheduleSafety(ref DependencyValidator data, ref JobHandle dependsOn, int jobNameOffset) { fixed(DependencyValidator *_data = &data) { fixed(JobHandle *_dependsOn = &dependsOn) { DependencyValidator_ValidateScheduleSafety(_data, _dependsOn, jobNameOffset); } } ExceptionReporter.Check(); }
public static void RecordAndSanityCheckDynamic(ref DependencyValidator data, ref AtomicSafetyHandle firstHandle, int fieldNameBlobOffset, int jobNameOffset, int handleCountReadOnly, int handleCountWritable, int handleCountForceReadOnly) { fixed(DependencyValidator *_data = &data) { fixed(AtomicSafetyHandle *_firstHandle = &firstHandle) { DependencyValidator_RecordAndSanityCheckDynamic(_data, _firstHandle, fieldNameBlobOffset, jobNameOffset, handleCountReadOnly, handleCountWritable, handleCountForceReadOnly); } } ExceptionReporter.Check(); }
public static void RecordAndSanityCheckWritable(ref DependencyValidator data, ref AtomicSafetyHandle handle, int fieldNameBlobOffset, int jobNameOffset) { fixed(DependencyValidator *_data = &data) { fixed(AtomicSafetyHandle *_handle = &handle) { DependencyValidator_RecordAndSanityCheckWritable(_data, _handle, fieldNameBlobOffset, jobNameOffset); } } ExceptionReporter.Check(); }
public static void RecordDeallocate(ref DependencyValidator data, ref AtomicSafetyHandle handle) { data.DeallocateNodePtr[data.DeallocateNodeCount++] = handle.nodePtr; }