mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 21:59:47 +02:00
* allow making of a TValue out of a record or object (TP style) value
git-svn-id: trunk@36973 -
This commit is contained in:
parent
762211dd06
commit
2d226e5db5
@ -553,6 +553,8 @@ begin
|
||||
tkAString : result.FData.FValueData := TValueDataIntImpl.CreateRef(ABuffer, ATypeInfo, True);
|
||||
tkDynArray : result.FData.FValueData := TValueDataIntImpl.CreateRef(ABuffer, ATypeInfo, True);
|
||||
tkArray : result.FData.FValueData := TValueDataIntImpl.CreateCopy(ABuffer, Result.TypeData^.ArrayData.Size, ATypeInfo, False);
|
||||
tkObject,
|
||||
tkRecord : result.FData.FValueData := TValueDataIntImpl.CreateCopy(ABuffer, Result.TypeData^.RecSize, ATypeInfo, False);
|
||||
tkClass : result.FData.FAsObject := PPointer(ABuffer)^;
|
||||
tkClassRef : result.FData.FAsClass := PClass(ABuffer)^;
|
||||
tkInterface: result.FData.FValueData := TValueDataIntImpl.CreateRef(ABuffer, ATypeInfo, True);
|
||||
|
Loading…
Reference in New Issue
Block a user