Home How To Online Documentation Support Download Order

 

 

 

SACommand
SAConnection
SAException
SAField
SAParam

SAString
SADateTime
SANumeric
SAInterval

Enums and Typedefs

  

Usage

Class Members

Examples

SAString::GetBinaryBuffer

void *GetBinaryBuffer( size_t nMinBufLengthInBytes );

Parameters

nMinBufLengthInBytes.    The minimum size of the binary data buffer in bytes.

Return value

A pointer to the binary data contained in the SAString object.

Remarks

GetBinaryBuffer method was implemented specially for working with binary data. This method is specially usefull for Unicode build (SA_UNICODE is defined) where character size is not equal to one byte. For non-Unicode build (default, SA_UNICODE is not defined) GetBinaryBuffer behaves identically to GetBuffer, except it casts the result to void*.

If you use the pointer returned by GetBinaryBuffer to change the string contents, you must call ReleaseBinaryBuffer before using any other SAString member functions.

The buffer memory will be freed automatically when the SAString object is destroyed.

Server specific notes

No specific information.

See also

ReleaseBinaryBuffer

Problems and Questions

If you haven't found the answer to your questions or have some problems on using the Library, please, send e-mail to howto@sqlapi.com.