Changeset 61708 in vbox for trunk/src/VBox/Runtime/common/misc/json.cpp
- Timestamp:
- Jun 15, 2016 10:10:57 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/json.cpp
r61707 r61708 134 134 * @param pcbRead Where to store the amount of data read on succcess. 135 135 */ 136 typedef DECLCALLBACK(int) FNRTJSONTOKENIZERREAD(void *pvUser, uint32_t offInput, void *pvBuf, size_t cbBuf,136 typedef DECLCALLBACK(int) FNRTJSONTOKENIZERREAD(void *pvUser, size_t offInput, void *pvBuf, size_t cbBuf, 137 137 size_t *pcbRead); 138 138 /** Pointer to a tokenizer read buffer callback. */ … … 153 153 size_t cbBuf; 154 154 /* Current offset into the input buffer. */ 155 uint32_toffBuf;155 size_t offBuf; 156 156 /** Input cache buffer. */ 157 157 char achBuf[512]; … … 288 288 * @param cchSkip The amount of characters to skip. 289 289 */ 290 static int rtJsonTokenizerSkip(PRTJSONTOKENIZER pTokenizer, unsignedcchSkip)290 static int rtJsonTokenizerSkip(PRTJSONTOKENIZER pTokenizer, size_t cchSkip) 291 291 { 292 292 int rc = VINF_SUCCESS; … … 1001 1001 * Read callback for RTJsonParseFromBuf(). 1002 1002 */ 1003 static DECLCALLBACK(int) rtJsonTokenizerParseFromBuf(void *pvUser, uint32_t offInput,1003 static DECLCALLBACK(int) rtJsonTokenizerParseFromBuf(void *pvUser, size_t offInput, 1004 1004 void *pvBuf, size_t cbBuf, 1005 1005 size_t *pcbRead) … … 1019 1019 * Read callback for RTJsonParseFromString(). 1020 1020 */ 1021 static DECLCALLBACK(int) rtJsonTokenizerParseFromString(void *pvUser, uint32_t offInput,1021 static DECLCALLBACK(int) rtJsonTokenizerParseFromString(void *pvUser, size_t offInput, 1022 1022 void *pvBuf, size_t cbBuf, 1023 1023 size_t *pcbRead) … … 1038 1038 * Read callback for RTJsonParseFromFile(). 1039 1039 */ 1040 static DECLCALLBACK(int) rtJsonTokenizerParseFromFile(void *pvUser, uint32_t offInput,1040 static DECLCALLBACK(int) rtJsonTokenizerParseFromFile(void *pvUser, size_t offInput, 1041 1041 void *pvBuf, size_t cbBuf, 1042 1042 size_t *pcbRead)
Note:
See TracChangeset
for help on using the changeset viewer.