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

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

Reads a specified number of floats and copies them into the destination pointer.
protected ReadFloats ( BinaryReader reader, int count, IntPtr dest ) : void
reader System.IO.BinaryReader
count int Number of values to read.
dest System.IntPtr Pointer to copy the values into.
Результат void
	    protected void ReadFloats( BinaryReader reader, int count, IntPtr dest )
		{
			// blast the data into the buffer
			unsafe
			{
				float* pointer = (float*)dest.ToPointer();

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

Same methods

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