INFORMIX
DataBlade API Programmer's Manual
Chapter 12: DataBlade API Function Descriptions
Home Contents Index Master Index New Book

mi_put_smallint()

The mi_put_smallint() function copies a smallint value to a buffer regardless of alignment.

Syntax

Usage

The mi_put_smallint() function is useful for implementing send and receive functions for user-defined data types when aligned values such as an mi_smallint need to be written to possibly unaligned data buffers.

For maximum portability, this function accepts a fully promoted mi_integer value instead of an mi_smallint value. This argument might therefore require casting.

Return Values

An address in the datap buffer, advanced by the size of an mi_integer value to permit a subsequent copy. In other words, if n is the length of the value in datap, the returned address is n bytes advanced from the original buffer address in datap.

Related Topics

For additional information, see the descriptions of the following functions: mi_fix_integer(), mi_fix_smallint(), mi_get_bytes(), mi_get_double_precision(), mi_get_integer(), mi_get_smallint(), mi_put_bytes(), mi_put_double_precision(), and mi_put_integer().




DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.