Created
July 11, 2013 13:05
-
-
Save tomatolog/5975281 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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