System.Classes.TStream.WriteBufferData
Delphi
procedure WriteBufferData(var Buffer: Integer; Count: NativeInt); overload;
C++
void __fastcall WriteBufferData(int &Buffer, NativeInt Count)/* overload */;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | System.Classes.pas System.Classes.hpp |
System.Classes | TStream |
Description
Writes up to 4 four or Count bytes from Buffer onto the stream.
WriteBufferData works using the following algorithms:
- If
Count<= 4, then WriteBufferData tries to write up toCountbytes to the stream starting at the current position and advances the current position in the stream by the number of bytes transferred. - If
Count> 4, then WriteBufferData tries to write up to4four bytes to the stream, starting at the current position, and then advances the current position in the stream untilCountnumber of bytes from the initial position that was before the starting of WriteBufferData execution.