Summary

This overload of Create method family allows to initialize TBinaryData instance with TStream object, which contains real binary data.

Syntax

class function Create(AStream: TStream): TBinaryData; overload; static;

Parameters

AStream

Type: TStream

A reference to stream object, which contains real data.

Return Value

Initialized TBinaryData instance.

Remarks

Underlaying binary data, stored in AStream object is not copied into TBinaryData; thus, the stream object should remains valid all the time TBinaryData instance is used.