71 lines
1.7 KiB
C#
71 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace ExitGames.Client.Photon.Voice
|
|
{
|
|
// Token: 0x02000575 RID: 1397
|
|
public class BMJKMEMIOPE<T>
|
|
{
|
|
// Token: 0x0600DC95 RID: 56469 RVA: 0x0041C584 File Offset: 0x0041A784
|
|
public BMJKMEMIOPE(int JEFHDMHEMAH)
|
|
{
|
|
this.KPMMDGIAGPC = new T[JEFHDMHEMAH];
|
|
T[] array = new T[1];
|
|
if (array[0] is byte)
|
|
{
|
|
this.EMPDKCALDOI = 1;
|
|
}
|
|
else if (array[0] is short)
|
|
{
|
|
this.EMPDKCALDOI = 2;
|
|
}
|
|
else
|
|
{
|
|
if (!(array[0] is float))
|
|
{
|
|
throw new Exception("Input data type is not supported: " + array[0].GetType());
|
|
}
|
|
this.EMPDKCALDOI = 4;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600DC96 RID: 56470 RVA: 0x0041C634 File Offset: 0x0041A834
|
|
public IEnumerable<T[]> DNHCGCDCEGD(T[] OBKBOLEFCNO)
|
|
{
|
|
int num = this.KPMMDGIAGPC.Length;
|
|
if (num == OBKBOLEFCNO.Length && this.NKHCKHKBNOJ == 0)
|
|
{
|
|
yield return OBKBOLEFCNO;
|
|
}
|
|
else
|
|
{
|
|
int num2 = 0;
|
|
while (num2 + num - this.NKHCKHKBNOJ <= OBKBOLEFCNO.Length)
|
|
{
|
|
int num3 = num - this.NKHCKHKBNOJ;
|
|
Buffer.BlockCopy(OBKBOLEFCNO, num2 * this.EMPDKCALDOI, this.KPMMDGIAGPC, this.NKHCKHKBNOJ * this.EMPDKCALDOI, num3 * this.EMPDKCALDOI);
|
|
num2 += num3;
|
|
this.NKHCKHKBNOJ = 0;
|
|
yield return this.KPMMDGIAGPC;
|
|
}
|
|
if (num2 != OBKBOLEFCNO.Length)
|
|
{
|
|
int num4 = OBKBOLEFCNO.Length - num2;
|
|
Buffer.BlockCopy(OBKBOLEFCNO, num2 * this.EMPDKCALDOI, this.KPMMDGIAGPC, this.NKHCKHKBNOJ * this.EMPDKCALDOI, num4 * this.EMPDKCALDOI);
|
|
this.NKHCKHKBNOJ += num4;
|
|
}
|
|
}
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x04002034 RID: 8244
|
|
private T[] KPMMDGIAGPC;
|
|
|
|
// Token: 0x04002035 RID: 8245
|
|
private int EMPDKCALDOI;
|
|
|
|
// Token: 0x04002036 RID: 8246
|
|
private int NKHCKHKBNOJ;
|
|
}
|
|
}
|