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 raw interface
git-svn-id: trunk@36974 -
This commit is contained in:
parent
2d226e5db5
commit
3b27c39934
@ -557,6 +557,7 @@ begin
|
||||
tkRecord : result.FData.FValueData := TValueDataIntImpl.CreateCopy(ABuffer, Result.TypeData^.RecSize, ATypeInfo, False);
|
||||
tkClass : result.FData.FAsObject := PPointer(ABuffer)^;
|
||||
tkClassRef : result.FData.FAsClass := PClass(ABuffer)^;
|
||||
tkInterfaceRaw : result.FData.FAsPointer := PPointer(ABuffer)^;
|
||||
tkInterface: result.FData.FValueData := TValueDataIntImpl.CreateRef(ABuffer, ATypeInfo, True);
|
||||
tkInt64 : result.FData.FAsSInt64 := PInt64(ABuffer)^;
|
||||
tkQWord : result.FData.FAsUInt64 := PQWord(ABuffer)^;
|
||||
|
Loading…
Reference in New Issue
Block a user