TStream.WriteBuffer procedure
Writes data from a buffer to the stream.
Declaration
procedure WriteBuffer(const Buffer; Count: NativeInt)
procedure WriteBuffer(const Buffer: TBytes; Count: NativeInt); overload
procedure WriteBuffer(const Buffer: TBytes; Offset: NativeInt;
Count: NativeInt); overloadDescription
WriteBuffer writes
Count bytes to the stream from
Buffer. If the stream does not allow
Count bytes to be
written, then an exception is raised.
WriteBuffer should be used to write a fixed number of bytes,
such as when writing structures or the content of variables. If the number
of bytes is not determined, use
Write instead.
WriteBuffer uses
Write internally to do the actual
writing.
Errors
If the stream does not allow to write
Count bytes, then an
exception is raised.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
