Axiom.Serialization.Serializer.ReadFloats C# (CSharp) Метод

ReadFloats() защищенный Метод

Reads a specified number of floats and copies them into the destination pointer.
This overload will also copy the values into the specified destination array.
protected ReadFloats ( BinaryReader reader, int count, IntPtr dest, float destArray ) : void
reader System.IO.BinaryReader
count int Number of values to read.
dest System.IntPtr Pointer to copy the values into.
destArray float A float array that is to have the values copied into it at the same time as 'dest'.
Результат void
	    protected void ReadFloats( BinaryReader reader, int count, IntPtr dest, float[] destArray )
		{
			// blast the data into the buffer
			unsafe
			{
				float* pointer = (float*)dest.ToPointer();

				for ( int i = 0; i < count; i++ )
				{
					float val = ReadFloat( reader );
					pointer[ i ] = val;
					destArray[ i ] = val;
				}
			}
		}

Same methods

Serializer::ReadFloats ( BinaryReader reader, int count, IntPtr dest ) : void