Skip to content

Instantly share code, notes, and snippets.

@tomatolog
Created July 11, 2013 13:05
Show Gist options
  • Save tomatolog/5975281 to your computer and use it in GitHub Desktop.
Save tomatolog/5975281 to your computer and use it in GitHub Desktop.
// check if key matches
int iNameLen = sphJsonUnpackInt ( &p );
if ( iNameLen==tKey.m_iLen && !memcmp ( tKey.m_sKey.cstr(), p, tKey.m_iLen ) )
vs
return JSON_EOF;
}
ESphJsonType sphJsonFindByIndex ( ESphJsonType eType, const BYTE ** ppValue, int iIndex )
{
if ( iIndex<0 )
return JSON_EOF;
const BYTE * p = *ppValue;
switch ( eType )
{
case JSON_INT32_VECTOR:
case JSON_INT64_VECTOR:
case JSON_DOUBLE_VECTOR:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment