Format SElibpointer bufferVar Table 120 describes the arguments for the Siebel

Format selibpointer buffervar table 120 describes the

This preview shows page 209 - 212 out of 334 pages.

Format SElib.pointer( bufferVar ]) Table 120 describes the arguments for the Siebel Library Get Pointer Address method. Example The following example includes the Siebel Library Get Pointer Address method: TheApplication().TraceOn("c:\\eScript_trace.txt","allocation","all"); var v = new Buffer("Now"); // Collect "Now", the original value, for display. TheApplication().Trace(v); // Get the address of the first byte of v, "N" var vPtr = SElib.pointer(v); // Get the "N" var p = SElib.peek(vPtr); // Convert "N" to "P" SElib.poke(vPtr,p+2); // Display "Pow" TheApplication().Trace(v); TheApplication().TraceOff(); This example produces the following output: COMMENT,Now COMMENT,Pow Related Topics For more information, see the following topics: “BLOB Methods” on page 104 “Clib Get Memory Method” on page 265 Table 120. Arguments for the Siebel Library Get Pointer Address Method Argument Description bufferVar The name of a buffer variable.
Image of page 209
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference Siebel Library Methods 210 Siebel Library Peek Method The Siebel Library Peek method reads and then returns data from a position in memory. Format SElib.peek( address [, dataType ]) Table 121 describes the arguments for the Siebel Library Peek method. Example The following example uses the Siebel Library Peek method: Table 121. Arguments for the Siebel Library Peek Method Argument Description address Identifies the address in memory from which this method reads data. dataType The type of data that this method returns. You can specify one of the following types: UWORD8 SWORD8 UWORD16 SWORD16 UWORD24 SWORD24 UWORD32 SWORD32 FLOAT32 FLOAT64 FLOAT80 The default value is UWORD8. You can add the following prefix on some types: S for signed U for unsigned The numeric suffix specifies the number of bytes to get. An example of a numeric suffix is 8 or 16. FLOAT80 is not available in Win32.
Image of page 210
Methods Reference Siebel Library Methods Siebel eScript Language Reference Version 8.1, Rev. A 211 TheApplication().TraceOn("c:\\eScript_trace.txt","allocation","all"); var v = new Buffer("Now"); // Collect "Now", the original value, for display. TheApplication().Trace(v); // Get the address of the first byte of v, "N" var vPtr = SElib.pointer(v); // Get the "N" var p = SElib.peek(vPtr); // Convert "N" to "P" SElib.poke(vPtr,p+2); // Display "Pow" TheApplication().Trace(v); TheApplication().TraceOff(); This example produces the following output: COMMENT,Now COMMENT,Pow Related Topics For more information, see the following topics: “Get BLOB Data Method” on page 106 “Clib Get Memory Method” on page 265 “Clib Read From File Method” on page 243 Siebel Library Write Data Method The Siebel Library Write Data method writes data to a specific position in memory. It returns the address of the byte that immediately follows the data that it writes. CAUTION: If your code directly accesses memory, then you must use this code with caution. To avoid moving data unexpectedly, you must clearly understand how the Siebel Library Write Data method affects memory.
Image of page 211
Image of page 212

You've reached the end of your free preview.

Want to read all 334 pages?

  • Summer '16
  • Oracle
  • Type system, Siebel, Siebel eScript

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors