Print Thread
What's the idea behind OracleToDelphiData() function?
#62750 11/10/21 04:44 PM
Joined: Feb 2018
Posts: 16
M
Member
OP Offline
Member
M
Joined: Feb 2018
Posts: 16
This is an extract from OracleToDelphiData, found in Oracle.pas.

Code
    otInteger,
     otCursor,
       otCLOB,
       otBLOB,
      otBFile,
  otReference,
     otObject : begin
                  L := PLongInt(buf)^;
                  Result := L;
                end;

In case of otInteger this makes sense, assuming that the variable value is fixed 32-bit signed integer.

In case of the other types, the buffer is a pointer. The dereference operation will just take 4 bytes of whatever is at the memory location and interpret it as an integer. This value cannot be used to find where it came from.

Why are you doing this for all the object types?

Last edited by Matt Ors; 11/10/21 04:45 PM.
Re: What's the idea behind OracleToDelphiData() function?
Matt Ors #62751 11/11/21 10:12 AM
Joined: Aug 1999
Posts: 22,173
Member
Offline
Member
Joined: Aug 1999
Posts: 22,173
This is an internal function that is not publicly documented.


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.023s Queries: 15 (0.005s) Memory: 2.4958 MB (Peak: 3.0378 MB) Data Comp: Off Server Time: 2024-03-28 13:44:20 UTC
Valid HTML 5 and Valid CSS