WriteBuffer

Declaration: TFileStream.WriteBuffer(Buffer: TBytes; Count: longint);
The method WriteBuffer writes Count bytes of the Buffer to the stream starting at the current position. The Position in the stream is advanced by the number of bytes written.