TBuffer class
procedure AssignTo(Destin: TObject); virtual;
The AssignTo method can assign the buffer to a TMemoryStream.