function WriteBuffer(const Buffer; const Count: integer): integer; overload;
function WriteBuffer(const Buffer: TBytes; const Offset, Count: integer): integer; overload;
Call WriteBuffer to transfer Count bytes from Buffer through an existent connection. The function returns bytes count that was actually transferred.
This method works only if the Direct property is set to True. Otherwise, an exception is raised.