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

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

Reads a specified number of shorts and copies them into the destination pointer.
protected ReadShorts ( 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 ReadShorts( BinaryReader reader, int count, IntPtr dest )
		{
			// blast the data into the buffer
			unsafe
			{
				short* pointer = (short*)dest.ToPointer();
				for ( int i = 0; i < count; i++ )
				{
					pointer[ i ] = ReadShort( reader );
				}
			}
		}