[fpc-pascal] How to use pipes ?
nc-gaertnma at netcologne.de
Wed Feb 1 13:22:14 CET 2017
On Wed, 1 Feb 2017 05:02:05 -0700 (MST)
fredvs <fiens at hotmail.com> wrote:
> I have done lot of search on internet about pipes without success.
> Even for Delphi. no demo nor explanation.
> The same in fpc wki page.
> For example, how to use bytesavailable with pipes ?
> CreatePipeHandles(InHandle, OutHandle, APipeBufferSize);
> What is the the ratio with APipeBufferSize vs BPipeBufferSize ?
APipeBufferSize is how much the other process can produce before
BPipeBufferSize is how much you want to process/eat each
Usually APipeBufferSize >= BPipeBufferSize.
> And length of Bufferout vs APipeBufferSize vs BPipeBufferSize ?
Bufferout is just the first value. The whole Bufferout can be
written by InPipe.Read. Therefore Bufferout must be >= BPipeBufferSize.
> In short, a demo will be welcome.
More information about the fpc-pascal