Пример #1
0
        public static void ReadFloats(AnimationStream stream, NativeArray <PropertySceneHandle> handles, NativeArray <float> buffer)
        {
            int  num  = AnimationSceneHandleUtility.ValidateAndGetArrayCount <PropertySceneHandle, float>(ref stream, handles, buffer);
            bool flag = num == 0;

            if (!flag)
            {
                AnimationSceneHandleUtility.ReadSceneFloatsInternal(ref stream, handles.GetUnsafePtr <PropertySceneHandle>(), buffer.GetUnsafePtr <float>(), num);
            }
        }
        public static void ReadInts(AnimationStream stream, NativeArray <PropertyStreamHandle> handles, NativeArray <int> buffer)
        {
            stream.CheckIsValid();
            int  num  = AnimationSceneHandleUtility.ValidateAndGetArrayCount <PropertyStreamHandle, int>(ref stream, handles, buffer);
            bool flag = num == 0;

            if (!flag)
            {
                AnimationStreamHandleUtility.ReadStreamIntsInternal(ref stream, handles.GetUnsafePtr <PropertyStreamHandle>(), buffer.GetUnsafePtr <int>(), num);
            }
        }
        public static void WriteFloats(AnimationStream stream, NativeArray <PropertyStreamHandle> handles, NativeArray <float> buffer, bool useMask)
        {
            stream.CheckIsValid();
            int  num  = AnimationSceneHandleUtility.ValidateAndGetArrayCount <PropertyStreamHandle, float>(ref stream, handles, buffer);
            bool flag = num == 0;

            if (!flag)
            {
                AnimationStreamHandleUtility.WriteStreamFloatsInternal(ref stream, handles.GetUnsafePtr <PropertyStreamHandle>(), buffer.GetUnsafePtr <float>(), num, useMask);
            }
        }
        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);
        }