Home |
Previous Page | Next Page DataBlade API Overview > Accessing SQL Data Types > Byte Data Types >
The DataBlade API provides the following support for byte data:
- ESQL/C functions that operate on byte data
- DataBlade API functions that transfer byte data
Manipulating
Byte Data
The DataBlade API supports the following byte functions
from the ESQL/C library to perform operations on byte data.
Function Name |
Description |
bycmpr( ) |
Compares two groups of contiguous bytes |
bycopy( ) |
Copies bytes from one area to another |
byfill( ) |
Fills the specified area with a character |
byleng( ) |
Counts the number of bytes in a string |
Transferring
Byte Data (Server)
To transfer byte data between different
computer architectures, the DataBlade API provides the following functions
that handle type alignment and byte order.
DataBlade API Function |
Description |
mi_get_bytes( ) |
Copies an aligned number of bytes,
converting any difference in alignment or byte order on the client
computer to that of the server computer |
mi_put_bytes( ) |
Copies an aligned number of bytes,
converting any difference in alignment or byte order on the server
computer to that of the client computer |
The mi_get_bytes( ) and mi_put_bytes( ) functions
are useful in the send and receive support function of an opaque
data type that contains uninterpreted bytes. They ensure that byte
data remain aligned when transferred to and from client applications. For
more information, see Conversion
of Opaque-Type Data Between Text and Binary Representations.
Home |
[ Top of Page | Previous Page | Next Page | Contents |
Index ]