mi_integer mi_lo_specset_maxbytes(LO_spec, maxbytes) MI_LO_SPEC *LO_spec; mi_int8 *maxbytes;
Valid in Client LIBMI Application? | Valid in User-Defined Routine? |
---|---|
Yes | Yes |
The mi_lo_specset_maxbytes( ) function is the LO-specification accessor function that sets the maximum size of a new smart large object. When you set a maximum size, the smart-large-object optimizer does not allow the size of a smart large object to exceed the maxbytes value. Most applications do not need to specify a maximum size.
After you set the maximum size in an LO-specification structure, you pass this structure to a smart-large-object creation function (such as mi_lo_create( )) to provide the maximum size as a user-supplied storage characteristic for a new smart large object.
See also the descriptions of mi_lo_copy( ), mi_lo_create( ), mi_lo_from_file( ), mi_lo_spec_free( ), mi_lo_spec_init( ), and mi_lo_specget_maxbytes( ).
For more information on the maximum size of a smart large object or on how to use the mi_lo_specset_maxbytes( ) function, see the IBM Informix: DataBlade API Programmer's Guide.