public static void ReadFloats(AnimationStream stream, NativeArray <PropertyStreamHandle> handles, NativeArray <float> buffer) { stream.CheckIsValid(); int count = AnimationSceneHandleUtility.ValidateAndGetArrayCount(ref stream, handles, buffer); if (count == 0) { return; } ReadStreamFloatsInternal(ref stream, handles.GetUnsafePtr(), buffer.GetUnsafePtr(), count); }
public static void WriteInts(AnimationStream stream, NativeArray <PropertyStreamHandle> handles, NativeArray <int> buffer, bool useMask) { stream.CheckIsValid(); int count = AnimationSceneHandleUtility.ValidateAndGetArrayCount(ref stream, handles, buffer); if (count == 0) { return; } WriteStreamIntsInternal(ref stream, handles.GetUnsafePtr(), buffer.GetUnsafePtr(), count, useMask); }