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

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

Writes a specified number of shorts.
protected WriteShorts ( BinaryWriter writer, int count, IntPtr src ) : void
writer System.IO.BinaryWriter
count int Number of values to write.
src System.IntPtr Pointer that holds the values.
Результат void
	    protected void WriteShorts( BinaryWriter writer, int count, IntPtr src )
		{
			// blast the data into the buffer
			unsafe
			{
				short* pointer = (short*)src.ToPointer();

				for ( int i = 0; i < count; i++ )
				{
					writer.Write( pointer[ i ] );
				}
			}
		}