System.Classes.TStream.WriteBufferData

From RAD Studio API Documentation
Jump to: navigation, search

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 to Count bytes 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 to 4 four bytes to the stream, starting at the current position, and then advances the current position in the stream until Count number of bytes from the initial position that was before the starting of WriteBufferData execution.

See Also