JsonParserByLeo/Src/DLL/Main.mqh
55 lines
1.8 KiB
MQL4
Nique_372
2026-08-03 09:31:50 -05:00
//+------------------------------------------------------------------+
//| 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
Nique_372
2026-08-03 12:14:49 -05:00
/*
Nique_372
2026-09-18 14:11:09 -05:00
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..
Nique_372
2026-08-03 12:14:49 -05:00
*/
Nique_372
2026-08-03 09:31:50 -05:00
//----
#import "JsonParserByLeo-Avx2.dll"
Nique_372
2026-09-18 14:11:09 -05:00
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
);
Nique_372
2026-08-03 09:31:50 -05:00
#import
Nique_372
2026-09-18 14:11:09 -05:00
//---
Nique_372
2026-08-03 09:31:50 -05:00
#endif // JSONPARSERBYLEO_DLL_AVX2
//---
#endif // JSONPARSERBYLEO_SRC_DLL_MAIN_MQH
//+------------------------------------------------------------------+