Reads data from the offset position Note the following If the value that the

Reads data from the offset position note the

This preview shows page 121 - 124 out of 334 pages.

Reads data from the offset position. Note the following: If the value that the offset argument contains is less than 0, then this method uses 0. If the value that the offset argument contains is greater than the length of the buffer, then this method uses null bytes to increase the size of the buffer.
Image of page 121
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference Buffer Methods 122 Buffer Size Property The Buffer Size property is the size of the buffer object. You can set a value for the Buffer Size property. For example: inBuffer.size = 5 Siebel CRM does the following: If the buffer size increases beyond the current maximum size of the buffer, then it uses null bytes to fill the additional positions. If the buffer size decreases so that the cursor position is beyond the end of the buffer, then it moves the cursor position to the end of the modified buffer. For more information, see “Cursor Position in Buffer Property” on page 122 . Format bufferVar .size Cursor Position in Buffer Property The Cursor Position in Buffer property stores the current position of the buffer cursor. Note the following: The value of the cursor position is always between 0 and the value that the Buffer Size property contains. If you use Siebel eScript to set the cursor beyond the end of a buffer, then it increases the buffer to accommodate the new position. It fills the new positions with null bytes. If you use Siebel eScript to set the cursor to a value that is less than 0, then it places the cursor at position 0 of the buffer. Format bufferVar .cursor Example For examples, see “Get String From Buffer Method” on page 118 and “Create Buffer Method” on page 114 . Data in Buffer Property The Data in Buffer property is a reference to the internal data of a buffer. You can use it as a temporary value to pass buffer data to a function that does not recognize a buffer object.
Image of page 122
Methods Reference Buffer Methods Siebel eScript Language Reference Version 8.1, Rev. A 123 Format bufferVar .data Use Big Endian in Buffer Property The Use Big Endian in Buffer property is a Boolean flag that specifies to use big endian byte ordering if Siebel CRM calls the Get Cursor Position Value From Buffer method or the Put Value in Buffer method. Siebel CRM stores bytes according to the following settings: Use Big Endian in Buffer property is true. Stores the bytes in descending order of significance. Use Big Endian in Buffer property is false. Stores the bytes in ascending order of significance. Siebel CRM sets this value when it creates a buffer. You can configure it to change this value at any time. The Use Big Endian in Buffer property defaults to the state of the operating system and processor. If a data value includes more than one byte, then the following occurs: The byte that contains the smallest units of the value is the least significant byte.
Image of page 123
Image of page 124

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