JsonParserByLeo/Src/DLL/Main.mqh
2026-09-18 14:11:09 -05:00
55 lines
1.8 KiB
MQL4
//+------------------------------------------------------------------+
//| 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
int64_t* m_cinta, // cinta de datos
int* m_index, // array de indices structurales
const int len, // tamaño de raw
const int m_offset, // offset de inicio para pos
//--- 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[],
int64_t& m_cinta[],
int& m_index[],
const int len,
const int m_offset,
int& m_last_err,
int& m_cinta_pos,
int& m_pos
);
#import
//---
#endif // JSONPARSERBYLEO_DLL_AVX2
//---
#endif // JSONPARSERBYLEO_SRC_DLL_MAIN_MQH
//+------------------------------------------------------------------+