Links
dtSearch Text Retrieval Engine Programmer's Reference 7.70
dtssIntArrayGetItems Function
Functions | Send Feedback

Get the contents of an integer array represented by a dtsStringHandle

long DLLFUNC dtssIntArrayGetItems(dtsIntArrayHandle hArray, long * pDest, long maxItems);
File

dtsearch.h

Parameters
Parameters 
Description 
long * pDest 
Buffer to receive the integer data 
long maxItems 
Size of the pDest buffer, in 32-bit integers 
hStr 
Handle to the array 
Returns

Length of the array.

Remarks

dtsIntArrayHandles are used to return variable-length integer arrays from certain dtSearch Engine API functions. To obtain the contents of the array:

  1. Use dtssIntArrayGetLength to get the length of the array,
  2. Allocate a buffer large enough for the array,
  3. Call dtssIntArrayGetItems to obtain the contents of the array, and
  4. Call dtssIntArrayDelete to free the memory that was allocated for the string.
Group
Links
You are here: C++ API > Functions > dtssIntArrayGetItems Function
Copyright (c) 1995-2012 dtSearch Corp. All rights reserved.