For more information see Usage of the Term Put on page 78 Format A Blobput

For more information see usage of the term put on

This preview shows page 108 - 111 out of 334 pages.

For more information, see “Usage of the Term Put” on page 78 . Format A Blob.put( blobVar [, offset ], data, dataType ) Table 46. Arguments for the Get BLOB Size Method Argument Description blobVar The name of the binary large object that this method examines. setSize An integer that determines the size of the BLOB. If you specify the SetSize argument, then this method does the following work: Changes the size of the BLOB that you identify in the blobVar argument to the value you specify in the SetSize argument Returns a value in the setSize argument dataType An integer value that describes the format of the data in the BLOB. The dataType argument must include one of the values that you use with a BLOB descriptor. For more information, see “Values You Must Use with a BLOB Descriptor” on page 105 . bufferLen An integer that describes the number of bytes in the buffer. blobDescriptor dataDefinition A blobDescriptor object that describes the format of the data in the BLOB.
Image of page 108
Methods Reference BLOB Methods Siebel eScript Language Reference Version 8.1, Rev. A 109 Format B Blob.put(b lobVar [, offse t], buffer, bufferLen ) Format C Blob.put( blobVar [ , offset ], srcStruct, blobDescriptor dataDefinition ) To pass the contents of an existing BLOB that resides in the srcStruct argument to the blobVar argument, you can use format C. Arguments Table 47 describes the arguments for the Write BLOB Data method. Example Assume you send a data pointer to an external C library. Assume the library expects data in the following packed C structure: Table 47. Arguments for the Write BLOB Data Method Argument Description blobVar The name of the binary large object that this method manipulates. offset The position in the BLOB at which this method adds data. If you do not provide a value for the offset argument, then this method does one of the following depending on if the BLOB is defined: BLOB is defined. Adds data at the end of the BLOB. BLOB is not defined. Adds data at offset 0. data The data that this method writes. dataType The format of the data in the BLOB. This method converts the data to the format that you specify in the dataType argument, and then copies this data to the position that you specify in the offset argument. If the value that you specify in the dataType argument is not the length of a byte buffer, then the dataType argument must include one of the values you use with a BLOB descriptor. For more information, see “Values You Must Use with a BLOB Descriptor” on page 105 . buffer A variable that contains a buffer. bufferLen An integer that specifies the buffer length. srcStruct A BLOB that contains the data that this method writes. blobDescriptor dataDefinition A blobDescriptor object that describes the format of the data in the BLOB.
Image of page 109
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference Buffer Methods 110 struct foo { signed char a; unsigned int b; double c; }; The following example creates a structure from three corresponding variables and returns the offset of the next available byte: function BuildFooBlob(a, b, c) { var offset = Blob.put(foo, 0, a, SWORD8);
Image of page 110
Image of page 111

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

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes