SbeFileBodies

StockSharp.Sbe

Puts back together the file bodies that arrive a frame at a time.

Constructores

SbeFileBodies
public SbeFileBodies(int maxLength)
sbeFileBodies = SbeFileBodies(maxLength)

Initializes a new instance of the SbeFileBodies.

maxLength
The longest body taken, and the most that is held at once of the bodies still being collected.

Métodos

Clear
public void Clear()
sbeFileBodies.Clear()

Lets go of everything collected, for a connection that is over.

Collect
public byte[] Collect(string requestId, int bodyLength, int bodyOffset, byte[] part)
result = sbeFileBodies.Collect(requestId, bodyLength, bodyOffset, part)

Takes one part of a body.

requestId
The id of the request the body travels under.
bodyLength
How long the whole body is.
bodyOffset
Where in the body the part starts.
part
The part.

Devuelve: The whole body once its last part is in; while more is to come.