Dennis Poon wrote / napĂsal(a):
Also, how do I use the procedure LoadFromStream(AStream : TStream;
Format: TDataPacketFormat = dfAny)?
Especially, I don't understand the TDataPacketFormat parameter.
Using Format parameter you can signal to DatapacketReader in which
format expect data (dfBinary, dfXML etc)
It is not required , when not set there is procedure which tests
"incoming" data using RecognizeStream method and select those
DatapacketReader, which is able handle "incoming" data.
In other words each registered DataPacketReader is able say if is able
handle data in stream or not.
(examines begining of stream and looks for own "format identification")
-Laco.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal