JsonParserByLeo/Src/DLL/Main.mqh
Nique_372 Nique_372 87f98380ae
2026-10-19 13:26:09 -05:00
55 lines
1.8 KiB
MQL5
//+------------------------------------------------------------------+
//| Main.mqh |
//| Copyright 2026, Niquel Mendoza |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2026, Niquel Mendoza"
#property link "https://www.mql5.com"
#property strict
#ifndef JSONPARSERBYLEO_SRC_DLL_MAIN_MQH
#define JSONPARSERBYLEO_SRC_DLL_MAIN_MQH
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
#ifdef JSONPARSERBYLEO_DLL_AVX2
/*
extern "C" __declspec(dllexport)
// array ya allocado tambein raw solo hace falta rellenar
bool __stdcall JsonParserResolve(
const uint8_t* m_raw, // datos de entrada
uint64_t* m_cinta, // cinta de datos
int* m_index, // array de indices structurales
const int len, // tamaño de raw
const uint64_t jit_enabled, // valor del 2do slot de los objetos (JIT habilitado o no)
//--- salida
int* m_last_err, // ultimo err
int* m_cinta_pos, // posicion actul en la cinta
int* m_pos // ultima posicion en la lecutra de raw
) // retorna true en caso de exito, false de lo contrario..
*/
//----
#import "JsonParserByLeo-Avx2.dll"
bool JsonParserResolve(
const uint8_t& m_raw[],
uint64_t& m_cinta[],
int& m_index[],
const int len,
const uint64_t jit_enabled,
int& m_last_err,
int& m_cinta_pos,
int& m_pos
);
#import
//---
#endif // JSONPARSERBYLEO_DLL_AVX2
//---
#endif // JSONPARSERBYLEO_SRC_DLL_MAIN_MQH
//+------------------------------------------------------------------+