This repository has been archived on 2026-04-01. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
original-mcpe-0.6.1/handheld/project/lib_projects/raknet/jni/RaknetSources/VariadicSQLParser.h
2026-04-01 23:13:15 +02:00

25 lines
831 B
C++

#ifndef __VARIADIC_SQL_PARSER_H
#define __VARIADIC_SQL_PARSER_H
#include "DS_List.h"
#include <stdarg.h>
namespace VariadicSQLParser
{
struct IndexAndType
{
unsigned int strIndex;
unsigned int typeMappingIndex;
};
const char* GetTypeMappingAtIndex(int i);
void GetTypeMappingIndices( const char *format, DataStructures::List<IndexAndType> &indices );
// Given an SQL string with variadic arguments, allocate argumentBinary and argumentLengths, and hold the parameters in binary format
// Last 2 parameters are out parameters
void ExtractArguments( va_list argptr, const DataStructures::List<IndexAndType> &indices, char ***argumentBinary, int **argumentLengths );
void FreeArguments(const DataStructures::List<IndexAndType> &indices, char **argumentBinary, int *argumentLengths);
}
#endif