[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Writes data from the stream to the buffer
Source position: classesh.inc line 598
public procedure TStream.WriteBuffer( |
const Buffer; |
Count: LongInt |
); |
WriteBufferwrites Countbytes to the stream from Buffer. If the stream does not allow Countbytes to be written, then an exception is raised.
WriteBuffershould be used to read in a fixed number of bytes, such as when writing structures or the content of variables. If the number of bytes is not determined, use TStream.Writeinstead. WriteBufferuses Writeinternally to do the actual reading.
If the stream does not allow to write Countbytes, then an exception is raised.
|
Writes data from a buffer to the stream and returns the number of bytes written. |
|
|
Reads data from the stream to a buffer |