|
The mi_lo_spec_init() function allocates and initializes the default system storage characteristics that are used to create a new smart large object.
The mi_lo_spec_init() function is a constructor for the LO-specification structure. It performs the following steps to initialize an LO-specification structure:
The mi_lo_spec_init() function allocates a new LO-specification structure in the current memory duration.
Important: Before you use an LO-specification structure in a DataBlade API module, you must either allocate a new one with the mi_lo_spec_init() function or obtain one from an existing smart large object with the mi_lo_stat_cspec() function. You can use the mi_lo_colinfo_by_ids() or mi_lo_colinfo_by_name() function to obtain storage characteristics that are associated with a particular column.
Do not use system memory-allocation calls (such as malloc() or mi_alloc()) to perform memory management for LO-specification structures. Use the mi_lo_spec_init() function to create a new LO-specification structure and the mi_lo_spec_free() function to free an LO-specification structure.
MI_OK | indicates that the function was successful. |
MI_ERROR | indicates that the function was not successful. |
See the descriptions of the following functions: mi_lo_open(), mi_lo_spec_free(), mi_lo_specget_estbytes(), mi_lo_specget_extsz(), mi_lo_specget_flags(), mi_lo_specget_maxbytes(), mi_lo_specget_sbspace(), mi_lo_specset_estbytes(), mi_lo_specset_extsz(), mi_lo_specset_flags(), mi_lo_specset_maxbytes(), mi_lo_specset_sbspace(), and mi_lo_stat_cspec().
For more information, see The LO-Specification Structure, Initializing an LO-Specification Structure, and Choosing Storage Characteristics.